TopLogProb Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The top log probability of a token.
public class TopLogProb : Azure.AI.AgentServer.Contracts.Generated.Common.IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.TopLogProb>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.TopLogProb>
type TopLogProb = class
interface IUtf8JsonSerializable
interface IJsonModel<TopLogProb>
interface IPersistableModel<TopLogProb>
Public Class TopLogProb
Implements IJsonModel(Of TopLogProb), IPersistableModel(Of TopLogProb), IUtf8JsonSerializable
- Inheritance
-
TopLogProb
- Implements
Constructors
| Name | Description |
|---|---|
| TopLogProb() |
Initializes a new instance of TopLogProb for deserialization. |
| TopLogProb(String, Single, IEnumerable<Int32>) |
Initializes a new instance of TopLogProb. |
| TopLogProb(String, Single, IList<Int32>, IDictionary<String,BinaryData>) |
Initializes a new instance of TopLogProb. |
Properties
| Name | Description |
|---|---|
| Bytes |
Gets the bytes. |
| Logprob |
Gets or sets the logprob. |
| Token |
Gets or sets the token. |
Methods
| Name | Description |
|---|---|
| DeserializeTopLogProb(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<TopLogProb>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<TopLogProb>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<TopLogProb>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<TopLogProb>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<TopLogProb>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
| IUtf8JsonSerializable.Write(Utf8JsonWriter) | |