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)SKContext.BuildersetMemory(SemanticTextMemory memory)Sets the memorySKContext.BuildersetSkills(ReadOnlySkillCollection skills)Sets the skillsSKContext.BuildersetVariables(ContextVariables variables)SKContext.BuilderwithKernel(Kernel kernel)Builds a context from the given kernel.-
Methods inherited from interface com.microsoft.semantickernel.builders.SemanticKernelBuilder
build
-
-
-
-
Method Detail
-
setVariables
SKContext.Builder setVariables(ContextVariables variables)
-
setSkills
SKContext.Builder setSkills(@Nullable ReadOnlySkillCollection skills)
Sets the skills- Parameters:
skills- null argument will be ignored- Returns:
- Context for fluent calls
-
setMemory
SKContext.Builder setMemory(@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
-
-