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

RunStep interface

有关代理线程运行的单个步骤的详细信息。

属性

assistantId

与运行步骤关联的代理的 ID。

cancelledAt

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

completedAt

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

createdAt

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

expiredAt

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

failedAt

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

id

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

lastError

如果适用,则有关此运行步骤遇到的最后一个错误的信息。

metadata

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

object

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

runId

此运行步骤所属的运行的 ID。

status

此运行步骤的状态。

stepDetails

此运行步骤的详细信息。

threadId

运行的线程的 ID。

type

运行步骤的类型,可以是message_creation或tool_calls。

usage

与运行步骤相关的使用情况统计信息。 当运行步骤的状态为 null 时,此值将为 in_progress

属性详细信息

assistantId

与运行步骤关联的代理的 ID。

assistantId: string

属性值

string

cancelledAt

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

cancelledAt: null | Date

属性值

null | Date

completedAt

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

completedAt: null | Date

属性值

null | Date

createdAt

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

createdAt: Date

属性值

Date

expiredAt

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

expiredAt: null | Date

属性值

null | Date

failedAt

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

failedAt: null | Date

属性值

null | Date

id

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

id: string

属性值

string

lastError

如果适用,则有关此运行步骤遇到的最后一个错误的信息。

lastError: null | RunStepError

属性值

null | RunStepError

metadata

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

metadata: null | Record<string, string>

属性值

null | Record<string, string>

object

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

object: "thread.run.step"

属性值

"thread.run.step"

runId

此运行步骤所属的运行的 ID。

runId: string

属性值

string

status

此运行步骤的状态。

status: RunStepStatus

属性值

stepDetails

此运行步骤的详细信息。

stepDetails: RunStepDetailsUnion

属性值

threadId

运行的线程的 ID。

threadId: string

属性值

string

type

运行步骤的类型,可以是message_creation或tool_calls。

type: RunStepType

属性值

usage

与运行步骤相关的使用情况统计信息。 当运行步骤的状态为 null 时,此值将为 in_progress

usage?: null | RunStepCompletionUsage

属性值