Share via


ToolChoiceObjectComputer Class

Definition

The ToolChoiceObjectComputer.

public class ToolChoiceObjectComputer : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObject, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObjectComputer>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObjectComputer>
type ToolChoiceObjectComputer = class
    inherit ToolChoiceObject
    interface IUtf8JsonSerializable
    interface IJsonModel<ToolChoiceObjectComputer>
    interface IPersistableModel<ToolChoiceObjectComputer>
Public Class ToolChoiceObjectComputer
Inherits ToolChoiceObject
Implements IJsonModel(Of ToolChoiceObjectComputer), IPersistableModel(Of ToolChoiceObjectComputer)
Inheritance
ToolChoiceObjectComputer
Implements

Constructors

Name Description
ToolChoiceObjectComputer()

Initializes a new instance of ToolChoiceObjectComputer.

ToolChoiceObjectComputer(ToolChoiceObjectType, IDictionary<String,BinaryData>)

Initializes a new instance of ToolChoiceObjectComputer.

Properties

Name Description
Type

Gets or sets the type.

(Inherited from ToolChoiceObject)

Methods

Name Description
DeserializeToolChoiceObjectComputer(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<ToolChoiceObject>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from ToolChoiceObject)
IJsonModel<ToolChoiceObject>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ToolChoiceObject)
IJsonModel<ToolChoiceObjectComputer>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ToolChoiceObjectComputer>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ToolChoiceObject>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ToolChoiceObject)
IPersistableModel<ToolChoiceObject>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from ToolChoiceObject)
IPersistableModel<ToolChoiceObject>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ToolChoiceObject)
IPersistableModel<ToolChoiceObjectComputer>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ToolChoiceObjectComputer>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ToolChoiceObjectComputer>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to