Interface SKContext.Builder
-
- All Superinterfaces:
SemanticKernelBuilder<SKContext>
- Enclosing interface:
- SKContext
public static interface SKContext.Builder extends SemanticKernelBuilder<SKContext>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SKContext.Builderclone(SKContext context)SKContextfailed(SKContext toClone, String errorDescription, Exception exception)Clones the given context and sets its result to the given errorSKContext.BuilderwithKernel(Kernel kernel)Builds a context from the given kernel.SKContext.BuilderwithMemory(SemanticTextMemory memory)Sets the memorySKContext.BuilderwithSkills(ReadOnlySkillCollection skills)Sets the skillsSKContext.BuilderwithVariables(ContextVariables variables)-
Methods inherited from interface com.microsoft.semantickernel.builders.SemanticKernelBuilder
build
-
-
-
-
Method Detail
-
withVariables
SKContext.Builder withVariables(ContextVariables variables)
-
failed
SKContext failed(SKContext toClone, String errorDescription, Exception exception)
Clones the given context and sets its result to the given error- Parameters:
toClone- context to cloneerrorDescription- description of the errorexception- exception to set- Returns:
- Failed context
-
withSkills
SKContext.Builder withSkills(@Nullable ReadOnlySkillCollection skills)
Sets the skills- Parameters:
skills- null argument will be ignored- Returns:
- Context for fluent calls
-
withMemory
SKContext.Builder withMemory(@Nullable SemanticTextMemory memory)
Sets the memory- Parameters:
memory- null argument will be ignored- Returns:
- Context for fluent calls
-
clone
SKContext.Builder clone(SKContext context)
-
withKernel
SKContext.Builder withKernel(Kernel kernel)
Builds a context from the given kernel. If not explicitly set, the skills and memory will be used from the kernel.- Parameters:
kernel- Kernel to use- Returns:
- Context
-
-