Skip to content

ClarifyingPlanner

ClarifyingPlanner = Stage<PlanningInput, PlannerOutput>

Defined in: packages/engine/src/lib/planner/stage.ts:144

A Planner that may also answer with a ReplylessCandidate or a needs-clarification result: any PlannerOutput. Every Planner is a ClarifyingPlanner. Validation accepts a missing userMessage and a clarification only for a request that set skipReply: true. Engine.handle then ships the replyless candidate without userMessage and still refuses the clarification with Err(ValidationError) on field skipReply.