对智能体运行测试
对智能体运行测试
使用提供的配置对智能体运行选定测试。若提供智能体配置,将覆盖默认智能体配置。
路径参数
agent_id
智能体 ID。创建智能体时返回此值。
请求头
xi-api-key
请求
This endpoint expects an object.
tests
要对智能体运行的测试列表
agent_config_override
Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.
branch_id
要运行测试的分支 ID。未提供时,将在智能体主分支上运行测试。
repeat_count
每项测试的运行次数。大于 1 时,结果会分组并汇总。
响应
成功响应
id
test_runs
agent_id
branch_id
version_id
ran_against_draft
created_at
folder_id
repeat_count
cancelled
bucketing_status
当 repeat_count==1 时为 None(不分桶)。否则跟踪分桶生命周期。
允许的值:
result_groups
错误
422
Unprocessable Entity Error