HuggingFaceTextGenerationStreamMetadata.FromDictionary Method
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.
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
- dictionary
- IReadOnlyDictionary<String,Object>