Partager via


HuggingFaceTextGenerationStreamMetadata.FromDictionary Method

Definition

Converts a dictionary to a HuggingFaceChatCompletionMetadata object.

public static Microsoft.SemanticKernel.Connectors.HuggingFace.HuggingFaceTextGenerationStreamMetadata FromDictionary (System.Collections.Generic.IReadOnlyDictionary<string,object?> dictionary);
static member FromDictionary : System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.SemanticKernel.Connectors.HuggingFace.HuggingFaceTextGenerationStreamMetadata
Public Shared Function FromDictionary (dictionary As IReadOnlyDictionary(Of String, Object)) As HuggingFaceTextGenerationStreamMetadata

Parameters

Returns

Applies to