| 参数 | 类型 | 描述 |
|---|---|---|
| id | string | 标识符,可以在API端点中引用 |
| object | string | 对象类型,总是thread.run |
| created_at | integer | 创建运行的Unix时间戳(秒) |
| thread_id | string | 作为此运行一部分在其上执行的线程的ID |
| assistant_id | string | 用于执行此运行的助手的ID |
| status | string | 运行状态,可以是queued、in_progress、requires_action、cancelling、cancelled、failed、completed或expired |
| required_action | object 或 null | 继续运行所需操作的详细信息。如果不需要操作,将为null |
| last_error | object 或 null | 与此运行关联的最后一个错误。如果没有错误,将为null |
| expires_at | integer | 运行将过期的Unix时间戳(秒) |
| started_at | integer 或 null | 开始运行的Unix时间戳(秒) |
| cancelled_at | integer 或 null | 取消运行的Unix时间戳(秒) |
| failed_at | integer 或 null | 运行失败的Unix时间戳(秒) |
| completed_at | integer 或 null | 运行完成的Unix时间戳(秒) |
| model | string | 助手对此运行使用的模型 |
| instructions | string | 助手对此运行使用的说明 |
| tools | array | 助手对此运行使用的工具列表 |
| file_ids | array | 助手对此运行使用的文件ID列表 |
| metadata | map | 最多可以设置16对键值对,以便以结构化格式将其他信息附加到对象。键的最大长度为64个字符,值的最大长度为512个字符 |
{
"id": "run_example123",
"object": "thread.run",
"created_at": 1698107661,
"assistant_id": "asst_gZ1aOomboBuYWPcXJx4vAYB0",
"thread_id": "thread_adOpf7Jbb5Abymz0QbwxAh3c",
"status": "completed",
"started_at": 1699073476,
"expires_at": null,
"cancelled_at": null,
"failed_at": null,
"completed_at": 1699073498,
"last_error": null,
"model": "gpt-4",
"instructions": null,
"tools": [{"type": "retrieval"}, {"type": "code_interpreter"}],
"file_ids": [],
"metadata": {}
}