Skip to main content

Class: MissionPlanner

Defined in: packages/agentos/src/orchestration/planning/MissionPlanner.ts:65

Tree of Thought mission planner.

Generates N candidate execution graphs, evaluates them on four dimensions, selects the best (or synthesizes a hybrid), and refines it before compiling to CompiledExecutionGraph.

Constructors​

Constructor​

new MissionPlanner(config): MissionPlanner

Defined in: packages/agentos/src/orchestration/planning/MissionPlanner.ts:73

Parameters​

config​

PlannerConfig

Returns​

MissionPlanner

Methods​

plan()​

plan(goal, context, onEvent?): Promise<PlanResult>

Defined in: packages/agentos/src/orchestration/planning/MissionPlanner.ts:88

Run the full planning pipeline: explore → evaluate → refine.

Parameters​

goal​

string

Natural language mission goal.

context​

PlanContext

Available tools and providers.

onEvent?​

(event) => void

Optional callback for streaming planning progress events.

Returns​

Promise<PlanResult>