KernelFunctionPrompty.ToPromptTemplateConfig(String) 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.
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.