Share via


MaxResponseOutputTokensOption Class

Definition

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

Constructors

Name Description
MaxResponseOutputTokensOption(Int32)

Creates an options class with a fixed number of tokens.

Properties

Name Description
NumericValue

The numeric equivlant for the number of tokens.

Methods

Name Description
CreateDefaultMaxTokensOption()

Creates an options class with the default number of possible tokens.

CreateInfiniteMaxTokensOption()

Creates an options class with infinite tokens possible.

CreateNumericMaxTokensOption(Int32)

Creates an options class with a fixed number of tokens.

Equals(Object)

Equality operator.

GetHashCode()

Hash Code

Operators

Name Description
Implicit(Int32 to MaxResponseOutputTokensOption)

Creates a ResponseMaxOutputTokensOptions class from an integer value.

Explicit Interface Implementations

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

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

IJsonModel<MaxResponseOutputTokensOption>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MaxResponseOutputTokensOption>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MaxResponseOutputTokensOption>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MaxResponseOutputTokensOption>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to