执行 Agentflow 接口
英飞团队···132 字·浏览量 704
接口描述
执行已发布的Agentflow智能体,当前仅支持异步执行模式。
请求信息
● 请求方式: POST
● 请求地址: https://api.infi.cn/bsg/ai/agentflow/run/v1/execute
请求头参数
请求体参数
请求示例
text
curl --location 'https://devc2c.plaso.cn/bsg/ai/agentflow/run/v1/execute' \
--header 'Authorization: Bearer app-7G4btVDy9HTwsmeSiQBDzh' \
--header 'Content-Type: application/json' \
--data '{
"inputs":{
"targetcity": "南京",
"daterange": "3天"
}
}'响应信息
响应参数
响应示例
text
{
"code": 0,
"reqId": "board_server_go_ae49bdb318c54d3793f66d90bdc6a320",
"reqTime": 1757582046966,
"obj": {
"taskId": "68c292ded69900000157b3ba"
}
}错误响应
text
{
"code": 8,
"reqId": "board_server_go_9de34421bf144e05af0260cb1116eff2",
"reqTime": 1759213597673,
"errMsg": "no perm"
}