Share via


MaxTokensFinishDetails Class

Definition

A structured representation of a stop reason that signifies a token limit was reached before the model could naturally complete.

public class MaxTokensFinishDetails : Azure.AI.OpenAI.ChatFinishDetails, System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.MaxTokensFinishDetails>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.MaxTokensFinishDetails>
type MaxTokensFinishDetails = class
    inherit ChatFinishDetails
    interface IJsonModel<MaxTokensFinishDetails>
    interface IPersistableModel<MaxTokensFinishDetails>
Public Class MaxTokensFinishDetails
Inherits ChatFinishDetails
Implements IJsonModel(Of MaxTokensFinishDetails), IPersistableModel(Of MaxTokensFinishDetails)
Inheritance
MaxTokensFinishDetails
Implements

Explicit Interface Implementations

IJsonModel<ChatFinishDetails>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from ChatFinishDetails)
IJsonModel<MaxTokensFinishDetails>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MaxTokensFinishDetails>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ChatFinishDetails>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from ChatFinishDetails)
IPersistableModel<MaxTokensFinishDetails>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MaxTokensFinishDetails>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MaxTokensFinishDetails>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to