Share via


ChatCompletionsNamedToolChoice Class

Definition

A tool selection of a specific, named function tool that will limit chat completions to using the named function.

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

Constructors

Name Description
ChatCompletionsNamedToolChoice(ChatCompletionsNamedToolChoiceFunction)

Initializes a new instance of ChatCompletionsNamedToolChoice.

Properties

Name Description
Function

The function that should be called.

Type

The type of the tool. Currently, only function is supported.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

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

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

IJsonModel<ChatCompletionsNamedToolChoice>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ChatCompletionsNamedToolChoice>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ChatCompletionsNamedToolChoice>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ChatCompletionsNamedToolChoice>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to