Submit tool outputs to run
开发环境
开发环境
POST
/v1/threads/run/submit_tool_outputs
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v1/threads/run/submit_tool_outputs?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"thread_id": "thread_abc123",
"run_id": "run_abc123",
"tool_outputs": [
{
"tool_call_id": "call_abc123",
"output": "内容"
}
]
}'
响应示例响应示例
{
"id": "run_abc123",
"object": "thread.run",
"created_at": 1703239536,
"assistant_id": "asst_abc123",
"thread_id": "thread_abc123",
"run_id": "",
"status": "queued",
"started_at": 1703239536,
"expires_at": 0,
"cancelled_at": 0,
"failed_at": 0,
"completed_at": 0,
"last_error": null,
"model": "abab5.5-chat",
"instructions": "Follow the instructions carefully",
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "get weather",
"parameters": {
"type": "object",
"required": [
"city"
],
"properties": {
"city": {
"type": "string"
}
}
}
}
},
{
"type": "code_interpreter"
}
],
"file_ids": [
"${file id}"
],
"metadata": null,
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}
请求参数
Query 参数
GroupId
string
必需
示例值:
${Groupid}
Header 参数
Authorization
string
必需
示例值:
Bearer ${API KEY}
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
返回响应
修改于 2024-01-03 09:40:59