对智能体运行测试

使用提供的配置对智能体运行选定测试。若提供智能体配置,将覆盖默认智能体配置。

路径参数

agent_idstring必需

智能体 ID。创建智能体时返回此值。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
testslist of objects必需

要对智能体运行的测试列表

agent_config_overrideobject or null可选
Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.
branch_idstring or null可选

要运行测试的分支 ID。未提供时,将在智能体主分支上运行测试。

repeat_countinteger可选1-50默认为 1

每项测试的运行次数。大于 1 时,结果会分组并汇总。

响应

成功响应

idstring
test_runslist of objects
agent_idstring or null可选
branch_idstring or null可选
version_idstring or null可选
ran_against_draftboolean可选默认为 false
created_atinteger可选
folder_idstring or null可选
repeat_countinteger可选默认为 1
cancelledboolean可选默认为 false
bucketing_statusenum or null可选

当 repeat_count==1 时为 None(不分桶)。否则跟踪分桶生命周期。

允许的值:
result_groupslist of objects可选

错误

422
Unprocessable Entity Error