Compartilhar via


AgentThread Class

Definition

Information about a single thread associated with an agent.

public class AgentThread : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AgentThread>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AgentThread>
type AgentThread = class
    interface IJsonModel<AgentThread>
    interface IPersistableModel<AgentThread>
Public Class AgentThread
Implements IJsonModel(Of AgentThread), IPersistableModel(Of AgentThread)
Inheritance
AgentThread
Implements

Properties

CreatedAt

The Unix timestamp, in seconds, representing when this object was created.

Id

The identifier, which can be referenced in API endpoints.

Metadata

A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.

ToolResources

A set of resources that are made available to the agent's tools in this thread. The resources are specific to the type of tool. For example, the code_interpreter tool requires a list of file IDs, while the file_search tool requires a list of vector store IDs.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AgentThread>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AgentThread>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AgentThread>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AgentThread>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AgentThread>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to