HuggingFaceTextGenerationMetadata 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 HuggingFaceTextGenerationMetadata : System.Collections.ObjectModel.ReadOnlyDictionary<string,object>
type HuggingFaceTextGenerationMetadata = class
inherit ReadOnlyDictionary<string, obj>
Public NotInheritable Class HuggingFaceTextGenerationMetadata
Inherits ReadOnlyDictionary(Of String, Object)
- Inheritance
-
HuggingFaceTextGenerationMetadata
Properties
FinishReason |
Finish reason. |
GeneratedTokens |
Number of generated tokens. |
PrefillTokens |
The list of prefill tokens used on the generation. |
Tokens |
The list of tokens used on the generation. |
Methods
FromDictionary(IReadOnlyDictionary<String,Object>) |
Converts a dictionary to a HuggingFaceChatCompletionMetadata object. |