Creates a new PlanningEngine instance.
Engine configuration
Generates a multi-step execution plan from a high-level goal.
The high-level goal to achieve
Optional context: PlanningContextAdditional context for planning
Optional options: PlanningOptionsPlanning configuration options
Generated execution plan
Decomposes a complex task into simpler subtasks.
The task description to decompose
Maximum decomposition depth
Task decomposition result
Validates a plan for feasibility and completeness.
Plan to validate
Validation result with any issues found
Refines an existing plan based on execution feedback.
Original plan to refine
Feedback from execution
Refined execution plan
Performs self-reflection on plan execution state.
Current plan
Current execution state
Reflection insights and suggested adjustments
Executes a single plan step.
Step to execute
Optional context: StepExecutionContextExecution context
Step execution result
Runs an autonomous goal pursuit loop.
Goal to pursue
Optional options: AutonomousLoopOptionsLoop configuration
Final execution summary
Progress updates
Saves current execution state for checkpointing.
Plan being executed
Current execution state
Checkpoint identifier
Restores execution state from a checkpoint.
Checkpoint to restore
Restored plan and state
Gets the current execution state for a plan.
Plan identifier
Current execution state or null
Implementation of the AgentOS Planning Engine.
Features:
Implements