PromptTemplateFactoryExtensions.Create 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.
Creates an instance of IPromptTemplate from a PromptTemplateConfig.
public static Microsoft.SemanticKernel.IPromptTemplate Create (this Microsoft.SemanticKernel.IPromptTemplateFactory factory, Microsoft.SemanticKernel.PromptTemplateConfig templateConfig);
static member Create : Microsoft.SemanticKernel.IPromptTemplateFactory * Microsoft.SemanticKernel.PromptTemplateConfig -> Microsoft.SemanticKernel.IPromptTemplate
<Extension()>
Public Function Create (factory As IPromptTemplateFactory, templateConfig As PromptTemplateConfig) As IPromptTemplate
Parameters
- factory
- IPromptTemplateFactory
The factory with which to create the template.
- templateConfig
- PromptTemplateConfig
Prompt template configuration
Returns
The created template.
Exceptions
The factory does not support the specified configuration.