HuggingFaceTextGenerationMetadata Class

Definition

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

Name Description
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

Name Description
FromDictionary(IReadOnlyDictionary<String,Object>)

Converts a dictionary to a HuggingFaceChatCompletionMetadata object.

Applies to