Freigeben über


PromptTemplateConfig.FromJson(String) Method

Definition

Creates a PromptTemplateConfig from the specified JSON.

public static Microsoft.SemanticKernel.PromptTemplateConfig FromJson (string json);
static member FromJson : string -> Microsoft.SemanticKernel.PromptTemplateConfig
Public Shared Function FromJson (json As String) As PromptTemplateConfig

Parameters

json
String

A string containing a JSON representation of the PromptTemplateConfig.

Returns

The deserialized PromptTemplateConfig.

Exceptions

json is null.

json is an invalid JSON representation of a PromptTemplateConfig.

Applies to