列表 run
开发环境
开发环境
GET
/v1/threads/run/list
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://dev-cn.your-api-server.com/v1/threads/run/list?GroupId=${GroupId}' \
--header 'Authorization: Bearer ${API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"thread_id": "$Thread_Id"
}'
响应示例响应示例
{
"object": "list",
"data": [
{
"id": "run_abc123",
"object": "thread.run",
"created_at": 1703230944,
"assistant_id": "asst_abc123",
"thread_id": "thread_abc123",
"status": "completed",
"started_at": 1703230944,
"expires_at": 0,
"cancelled_at": 0,
"failed_at": 1703230944,
"completed_at": 0,
"last_error": null,
"model": "abab5.5-chat",
"instructions": "Follow the instructions carefully\n回答中若参考了函数返回结果中的信息,请在该句末尾用【1†source】【2†source】【3†source】的形式标注信息来源。严禁使用其他的引用格式(如[1],【1】,²等等)。",
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "get weather",
"parameters": {
"type": "object",
"required": [
"city"
],
"properties": {
"city": {
"type": "string"
}
}
}
}
},
{
"type": "web_search"
},
{
"type": "retrieval"
}
],
"file_ids": [
"88731293343809",
"88786681311296"
],
"metadata": null,
"required_action": {
"type": "",
"submit_tool_outputs": null
},
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
},
{
"id": "run_abc123",
"object": "thread.run",
"created_at": 1703231952,
"assistant_id": "asst_abc123",
"thread_id": "thread_abc123",
"status": "completed",
"started_at": 1703231952,
"expires_at": 0,
"cancelled_at": 0,
"failed_at": 1703231953,
"completed_at": 0,
"last_error": null,
"model": "abab5.5-chat",
"instructions": "Follow the instructions carefully\n回答中若参考了函数返回结果中的信息,请在该句末尾用【1†source】【2†source】【3†source】的形式标注信息来源。严禁使用其他的引用格式(如[1],【1】,²等等)。",
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "get weather",
"parameters": {
"type": "object",
"required": [
"city"
],
"properties": {
"city": {
"type": "string"
}
}
}
}
},
{
"type": "web_search"
},
{
"type": "retrieval"
}
],
"file_ids": [
"88731293343809",
"88786681311296"
],
"metadata": null,
"required_action": {
"type": "",
"submit_tool_outputs": null
},
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}
],
"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:57