Partilhar via


AgentThreadCreationOptions Class

Definition

The details used to create a new agent thread.

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

Constructors

AgentThreadCreationOptions()

Initializes a new instance of AgentThreadCreationOptions.

Properties

Messages

The initial messages to associate with the new thread.

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<AgentThreadCreationOptions>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AgentThreadCreationOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AgentThreadCreationOptions>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AgentThreadCreationOptions>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AgentThreadCreationOptions>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to