KernelFunctionYaml Class
- java.
lang. Object - com.
microsoft. semantickernel. semanticfunctions. KernelFunctionYaml
- com.
public class KernelFunctionYaml
A class for creating a KernelFunction<T> instance from a YAML representation of a prompt function.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| KernelFunctionYaml() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Kernel |
fromPromptYaml(String yaml)
Create a Kernel |
|
static
Kernel |
fromPromptYaml(String yaml, PromptTemplateFactory promptTemplateFactory)
Create a Kernel |
|
static
Kernel |
fromYaml(Path filePath)
Create a Kernel |
Methods inherited from java.lang.Object
Constructor Details
KernelFunctionYaml
public KernelFunctionYaml()
Method Details
fromPromptYaml
public static KernelFunction
Create a KernelFunction instance for a prompt function using the specified markdown text.
Parameters:
Returns:
Throws:
fromPromptYaml
public static KernelFunction
Create a KernelFunction instance for a prompt function using the specified markdown text.
Parameters:
Returns:
Throws:
fromYaml
public static KernelFunction
Create a KernelFunction instance for a prompt function using the specified markdown text.
Parameters:
Returns:
Throws: