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

AgentThread interface

有关与代理关联的单个线程的信息。

属性

createdAt

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

id

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

metadata

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

object

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

toolResources

一组可供此线程中的代理工具使用的资源。 资源特定于工具类型。 例如,code_interpreter 工具需要文件 ID 列表,而 file_search 工具需要矢量存储 ID 列表。

属性详细信息

createdAt

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

createdAt: Date

属性值

Date

id

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

id: string

属性值

string

metadata

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

metadata: null | Record<string, string>

属性值

null | Record<string, string>

object

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

object: "thread"

属性值

"thread"

toolResources

一组可供此线程中的代理工具使用的资源。 资源特定于工具类型。 例如,code_interpreter 工具需要文件 ID 列表,而 file_search 工具需要矢量存储 ID 列表。

toolResources: null | ToolResources

属性值

null | ToolResources