KernelFunctionFromPrompt.Builder<T> Class
- java.
lang. Object - com.
microsoft. semantickernel. semanticfunctions. KernelFunctionFromPrompt. Builder<T>
- com.
Type Parameters
- T
the type of the return value of the function
Implements
public static final class KernelFunctionFromPrompt.Builder<T>
implements FromPromptBuilder<T>
A builder for creating a KernelFunction<T> from a prompt template.
Constructor Summary
Constructor | Description | |
---|---|---|
Builder() |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
Builder
public Builder()
Method Details
withOutputVariable
public KernelFunction.FromPromptBuilder withOutputVariable(OutputVariable outputVariable)
Set the output variable for the function.
Parameters:
build
public KernelFunction
Create a new KernelFunction instance from the builder.
withDefaultExecutionSettings
public KernelFunction.FromPromptBuilder
Set the default execution settings for the function.
Parameters:
withDescription
public KernelFunction.FromPromptBuilder
Set the description of the function.
Parameters:
withExecutionSettings
public KernelFunction.FromPromptBuilder
Set the execution settings for the function.
Parameters:
withInputParameters
public KernelFunction.FromPromptBuilder
Set the input parameters for the function.
Parameters:
withName
public KernelFunction.FromPromptBuilder
Set the name of the function.
Parameters:
withOutputVariable
public KernelFunction.FromPromptBuilder
Set the output variable for the function.
Parameters:
withPromptTemplate
public KernelFunction.FromPromptBuilder
Set the prompt template for the function.
Parameters:
withPromptTemplateConfig
public KernelFunction.FromPromptBuilder
Set the prompt template config used to build the function.
Parameters:
withPromptTemplateFactory
public KernelFunction.FromPromptBuilder
Set the prompt template factory used to build the function.
Parameters:
withTemplate
public KernelFunction.FromPromptBuilder
Set the template for the function.
Parameters:
withTemplateFormat
public KernelFunction.FromPromptBuilder
Set the template format for the function.
Parameters: