模拟对话

Deprecated

已弃用。此端点将于 2026 年 10 月 31 日移除。请使用 /v1/convai/agent-testing/create 和 /v1/convai/agents/:agent_id/run-tests 端点创建并运行模拟。运行智能体与模拟用户之间的对话。

路径参数

agent_idstring必需

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

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
simulation_specificationobject必需

详细说明如何模拟对话的规范

extra_evaluation_criterialist of objects or null可选

要测试的评估标准列表。

new_turns_limitinteger可选<=100默认为 100

对话模拟中要生成的最大新轮数

响应

成功响应

simulated_conversationlist of objects
analysisobject

错误

422
Unprocessable Entity Error