Freigeben über


PromptTemplateFactoryExtensions.Create Method

Definition

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.

Applies to