Freigeben über


HuggingFaceTextGenerationStreamMetadata Class

Definition

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.

Applies to