你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ThreadRun interface

表示代理线程的单个评估运行的数据。

属性

assistantId

与此运行所针对的线程关联的代理的 ID。

cancelledAt

Unix 时间戳(以秒为单位)表示何时取消。

completedAt

Unix 时间戳(以秒为单位)表示此时间。

createdAt

Unix 时间戳(以秒为单位)表示创建此对象的时间。

expiresAt

Unix 时间戳(以秒为单位)表示此项过期的时间。

failedAt

Unix 时间戳(以秒为单位)表示此时间戳失败的时间。

id

可以在 API 终结点中引用的标识符。

incompleteDetails

有关运行为何不完整的详细信息。 如果运行不完整,将 null

instructions

用于此代理线程运行的重写的系统指令。

lastError

此代理线程运行的最后一个错误(如果有)。

maxCompletionTokens

指定的在运行过程中已使用完成令牌的最大数目。

maxPromptTokens

指定的在运行过程中已使用提示令牌的最大数目。

metadata

一组最多可以附加到对象的 16 个键/值对,用于以结构化格式存储有关该对象的其他信息。 键长度可能最多为 64 个字符,值长度可能最多为 512 个字符。

model

要使用的模型的 ID。

object

对象类型,始终为“thread.run”。

parallelToolCalls

确定是否可以在运行中并行执行工具。

requiredAction

代理线程运行继续所需的操作的详细信息。

responseFormat

此运行中使用的工具调用的响应格式。

startedAt

Unix 时间戳(以秒为单位)表示此项的启动时间。

status

代理线程运行的状态。

temperature

用于此运行的采样温度。 如果未设置,则默认值为 1。

threadId

与此运行关联的线程的 ID。

toolChoice

控制模型是否调用了哪个工具。

toolResources

重写代理可用于此运行的工具。 这对于按运行修改行为非常有用

tools

用于此代理线程运行的已启用重写的工具。

topP

用于此运行的核心采样值。 如果未设置,则默认值为 1。

truncationStrategy

在上下文窗口向前移动时用于删除消息的策略。

usage

与运行相关的使用情况统计信息。 如果运行不处于终端状态(即 nullin_progress等),则此值将 queued

属性详细信息

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

属性值

instructions

用于此代理线程运行的重写的系统指令。

instructions: string

属性值

string

lastError

此代理线程运行的最后一个错误(如果有)。

lastError: null | RunError

属性值

null | RunError

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

代理线程运行继续所需的操作的详细信息。

requiredAction?: null | RequiredActionUnion

属性值

responseFormat

此运行中使用的工具调用的响应格式。

responseFormat: null | AgentsResponseFormatOption

属性值

startedAt

Unix 时间戳(以秒为单位)表示此项的启动时间。

startedAt: null | Date

属性值

null | Date

status

代理线程运行的状态。

status: RunStatus

属性值

temperature

用于此运行的采样温度。 如果未设置,则默认值为 1。

temperature?: null | number

属性值

null | number

threadId

与此运行关联的线程的 ID。

threadId: string

属性值

string

toolChoice

控制模型是否调用了哪个工具。

toolChoice: null | AgentsToolChoiceOption

属性值

toolResources

重写代理可用于此运行的工具。 这对于按运行修改行为非常有用

toolResources?: null | ToolResources

属性值

null | ToolResources

tools

用于此代理线程运行的已启用重写的工具。

tools: ToolDefinitionUnion[]

属性值

topP

用于此运行的核心采样值。 如果未设置,则默认值为 1。

topP?: null | number

属性值

null | number

truncationStrategy

在上下文窗口向前移动时用于删除消息的策略。

truncationStrategy: null | TruncationObject

属性值

usage

与运行相关的使用情况统计信息。 如果运行不处于终端状态(即 nullin_progress等),则此值将 queued

usage: null | RunCompletionUsage

属性值