查询异步执行结果
英飞团队···198 字·浏览量 654
接口描述
查询异步执行Agentflow任务的执行状态和结果。
重要提示: Agentflow执行时间可能较长,建议采用轮询方式查询结果,推荐轮询间隔为10秒,避免频繁请求对系统造成压力。
请求信息
● 请求方式: POST
● 请求地址: https://api.infi.cn/bsg/ai/agentflow/run/v1/result
请求头参数
请求体参数
请求示例
text
curl --location 'https://devc2c.plaso.cn/bsg/ai/agentflow/run/v1/execute' \
--header 'Authorization: Bearer app-7G4btVDy9HTwsmeSiQBDzh' \
--header 'Content-Type: application/json' \
--data '{
"taskId":"68c292ded69900000157b3ba"
}'响应信息
响应参数
响应示例-进行中
text
{
"code": 0,
"reqId": "board_server_go_7efacafd8a1b4c4cba7750e7cb2cfac2",
"reqTime": 1757582127990,
"obj": {
"taskId": "68c292ded69900000157b3ba",
"taskState": 1
}
}响应示例-成功
text
{
"code": 0,
"reqId": "board_server_go_bc5a4b3270cb4e2a8fcbd80aeba6626f",
"reqTime": 1757582176282,
"obj": {
"taskId": "68c292ded69900000157b3ba",
"taskState": 2,
"taskResult": {
"output": {
"shangxi": "...."
}
}
}
}错误响应
text
{
"code": 8,
"reqId": "board_server_go_9de34421bf144e05af0260cb1116eff2",
"reqTime": 1759213597673,
"errMsg": "no perm"
}