Condividi tramite


CreateAndRunThreadOptions Class

Definition

The details used when creating and immediately running a new assistant thread.

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

Constructors

CreateAndRunThreadOptions(String)

Initializes a new instance of CreateAndRunThreadOptions.

Properties

AssistantId

The ID of the assistant for which the thread should be created.

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.

OverrideInstructions

The overridden system instructions the assistant should use to run the thread.

OverrideModelName

The overridden model that the assistant should use to run the thread.

OverrideTools

The overridden list of enabled tools the assistant should use to run the thread. Please note ToolDefinition is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include CodeInterpreterToolDefinition, FunctionToolDefinition and RetrievalToolDefinition.

Thread

The details used to create the new thread.

Explicit Interface Implementations

IJsonModel<CreateAndRunThreadOptions>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CreateAndRunThreadOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CreateAndRunThreadOptions>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CreateAndRunThreadOptions>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CreateAndRunThreadOptions>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to