Поделиться через


PersistentAgentsNamedToolChoice Class

Definition

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

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

Constructors

PersistentAgentsNamedToolChoice(PersistentAgentsNamedToolChoiceType)

Initializes a new instance of PersistentAgentsNamedToolChoice.

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

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

IJsonModel<PersistentAgentsNamedToolChoice>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PersistentAgentsNamedToolChoice>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PersistentAgentsNamedToolChoice>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<PersistentAgentsNamedToolChoice>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to