HuggingFaceTextGenerationMetadata.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.HuggingFaceTextGenerationMetadata FromDictionary (System.Collections.Generic.IReadOnlyDictionary<string,object?> dictionary);
static member FromDictionary : System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.SemanticKernel.Connectors.HuggingFace.HuggingFaceTextGenerationMetadata
Public Shared Function FromDictionary (dictionary As IReadOnlyDictionary(Of String, Object)) As HuggingFaceTextGenerationMetadata
Parameters
- dictionary
- IReadOnlyDictionary<String,Object>