Interface SKContext.Builder

    • Method Detail

      • 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 clone
        errorDescription - description of the error
        exception - exception to set
        Returns:
        Failed context
      • withMemory

        SKContext.Builder withMemory​(@Nullable
                                     SemanticTextMemory memory)
        Sets the memory
        Parameters:
        memory - null argument will be ignored
        Returns:
        Context for fluent calls
      • 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