ThreadRun interface
表示代理线程的单个评估运行的数据。
属性
| assistant |
与此运行所针对的线程关联的代理的 ID。 |
| cancelled |
Unix 时间戳(以秒为单位)表示何时取消。 |
| completed |
Unix 时间戳(以秒为单位)表示此时间。 |
| created |
Unix 时间戳(以秒为单位)表示创建此对象的时间。 |
| expires |
Unix 时间戳(以秒为单位)表示此项过期的时间。 |
| failed |
Unix 时间戳(以秒为单位)表示此时间戳失败的时间。 |
| id | 可以在 API 终结点中引用的标识符。 |
| incomplete |
有关运行为何不完整的详细信息。 如果运行不完整,将 |
| instructions | 用于此代理线程运行的重写的系统指令。 |
| last |
此代理线程运行的最后一个错误(如果有)。 |
| max |
指定的在运行过程中已使用完成令牌的最大数目。 |
| max |
指定的在运行过程中已使用提示令牌的最大数目。 |
| metadata | 一组最多可以附加到对象的 16 个键/值对,用于以结构化格式存储有关该对象的其他信息。 键长度可能最多为 64 个字符,值长度可能最多为 512 个字符。 |
| model | 要使用的模型的 ID。 |
| object | 对象类型,始终为“thread.run”。 |
| parallel |
确定是否可以在运行中并行执行工具。 |
| required |
代理线程运行继续所需的操作的详细信息。 |
| response |
此运行中使用的工具调用的响应格式。 |
| started |
Unix 时间戳(以秒为单位)表示此项的启动时间。 |
| status | 代理线程运行的状态。 |
| temperature | 用于此运行的采样温度。 如果未设置,则默认值为 1。 |
| thread |
与此运行关联的线程的 ID。 |
| tool |
控制模型是否调用了哪个工具。 |
| tool |
重写代理可用于此运行的工具。 这对于按运行修改行为非常有用 |
| tools | 用于此代理线程运行的已启用重写的工具。 |
| topP | 用于此运行的核心采样值。 如果未设置,则默认值为 1。 |
| truncation |
在上下文窗口向前移动时用于删除消息的策略。 |
| usage | 与运行相关的使用情况统计信息。 如果运行不处于终端状态(即 |
属性详细信息
assistantId
与此运行所针对的线程关联的代理的 ID。
assistantId: string
属性值
string
cancelledAt
Unix 时间戳(以秒为单位)表示何时取消。
cancelledAt: null | Date
属性值
null | Date
completedAt
Unix 时间戳(以秒为单位)表示此时间。
completedAt: null | Date
属性值
null | Date
createdAt
Unix 时间戳(以秒为单位)表示创建此对象的时间。
createdAt: Date
属性值
Date
expiresAt
Unix 时间戳(以秒为单位)表示此项过期的时间。
expiresAt: null | Date
属性值
null | Date
failedAt
Unix 时间戳(以秒为单位)表示此时间戳失败的时间。
failedAt: null | Date
属性值
null | Date
id
可以在 API 终结点中引用的标识符。
id: string
属性值
string
incompleteDetails
有关运行为何不完整的详细信息。 如果运行不完整,将 null。
incompleteDetails: null | IncompleteRunDetails
属性值
null | IncompleteRunDetails
instructions
用于此代理线程运行的重写的系统指令。
instructions: string
属性值
string
lastError
maxCompletionTokens
指定的在运行过程中已使用完成令牌的最大数目。
maxCompletionTokens: null | number
属性值
null | number
maxPromptTokens
指定的在运行过程中已使用提示令牌的最大数目。
maxPromptTokens: null | number
属性值
null | number
metadata
一组最多可以附加到对象的 16 个键/值对,用于以结构化格式存储有关该对象的其他信息。 键长度可能最多为 64 个字符,值长度可能最多为 512 个字符。
metadata: null | Record<string, string>
属性值
null | Record<string, string>
model
要使用的模型的 ID。
model: string
属性值
string
object
对象类型,始终为“thread.run”。
object: "thread.run"
属性值
"thread.run"
parallelToolCalls
确定是否可以在运行中并行执行工具。
parallelToolCalls: boolean
属性值
boolean
requiredAction
responseFormat
此运行中使用的工具调用的响应格式。
responseFormat: null | AgentsResponseFormatOption
属性值
null | AgentsResponseFormatOption
startedAt
Unix 时间戳(以秒为单位)表示此项的启动时间。
startedAt: null | Date
属性值
null | Date
status
temperature
用于此运行的采样温度。 如果未设置,则默认值为 1。
temperature?: null | number
属性值
null | number
threadId
与此运行关联的线程的 ID。
threadId: string
属性值
string
toolChoice
toolResources
tools
topP
用于此运行的核心采样值。 如果未设置,则默认值为 1。
topP?: null | number
属性值
null | number
truncationStrategy
usage
与运行相关的使用情况统计信息。 如果运行不处于终端状态(即 null、in_progress等),则此值将 queued。
usage: null | RunCompletionUsage
属性值
null | RunCompletionUsage