Share via


LogProb Class

Definition

The log probability of a token.

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

Constructors

Name Description
LogProb()

Initializes a new instance of LogProb for deserialization.

LogProb(String, Single, IEnumerable<Int32>, IEnumerable<TopLogProb>)

Initializes a new instance of LogProb.

LogProb(String, Single, IList<Int32>, IList<TopLogProb>, IDictionary<String,BinaryData>)

Initializes a new instance of LogProb.

Properties

Name Description
Bytes

Gets the bytes.

Logprob

Gets or sets the logprob.

Token

Gets or sets the token.

TopLogprobs

Gets the top logprobs.

Methods

Name Description
DeserializeLogProb(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<LogProb>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<LogProb>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LogProb>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LogProb>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<LogProb>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to