Compartilhar via


AgentsNamedToolChoice Class

Definition

Specifies a tool the model should use. Use to force the model to call a specific tool.

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

Constructors

AgentsNamedToolChoice(AgentsNamedToolChoiceType)

Initializes a new instance of AgentsNamedToolChoice.

Properties

Function

The name of the function to call.

Type

the type of tool. If type is function, the function name must be set.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AgentsNamedToolChoice>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AgentsNamedToolChoice>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AgentsNamedToolChoice>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AgentsNamedToolChoice>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AgentsNamedToolChoice>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to