Class DefaultStepwisePlanner

  • All Implemented Interfaces:
    StepwisePlanner

    public class DefaultStepwisePlanner
    extends Object
    implements StepwisePlanner
    A planner that creates a Stepwise plan using Mrkl systems.

    An implementation of a Mrkl system as described in https://arxiv.org/pdf/2205.00445.pdf

    • Method Detail

      • createPlan

        public Plan createPlan​(String goal)
        Create a plan for the specified goal.
        Specified by:
        createPlan in interface StepwisePlanner
        Parameters:
        goal - The goal to create a plan for.
        Returns:
        The plan.
      • executePlanAsync

        public reactor.core.publisher.Mono<SKContext> executePlanAsync​(String question,
                                                                       String functionDescriptions,
                                                                       SKContext context)
        Execute a plan.
        Parameters:
        question - The question to answer
        functionDescriptions - List of tool descriptions
        context - The context
        Returns:
        Result of the plan