次の方法で共有


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

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.

Applies to