HuggingFaceTextGenerationStreamMetadata 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.
Represents the metadata of a Hugging Face chat completion.
public sealed class HuggingFaceTextGenerationStreamMetadata : System.Collections.ObjectModel.ReadOnlyDictionary<string,object>
type HuggingFaceTextGenerationStreamMetadata = class
inherit ReadOnlyDictionary<string, obj>
Public NotInheritable Class HuggingFaceTextGenerationStreamMetadata
Inherits ReadOnlyDictionary(Of String, Object)
- Inheritance
-
HuggingFaceTextGenerationStreamMetadata
Properties
FinishReason |
Finish reason. |
GeneratedText |
Text generated by the model. |
GeneratedTokens |
Number of generated tokens. |
Index |
Index of the chunk |
TokenId |
Token identifier. |
TokenLogProb |
The log probabilities of the completion. |
TokenSpecial |
Special flag |
Methods
FromDictionary(IReadOnlyDictionary<String,Object>) |
Converts a dictionary to a HuggingFaceChatCompletionMetadata object. |