Share via


KernelFunctionPrompty.ToPromptTemplateConfig(String) Method

Definition

Create a PromptTemplateConfig from a prompty template.

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

Parameters

promptyTemplate
String

Prompty representation of a prompt-based KernelFunction.

Returns

The created PromptTemplateConfig.

Exceptions

promptyTemplate is null.

promptyTemplate is empty or composed entirely of whitespace.

Applies to