Skip to content

PlannerOutput

PlannerOutput = PlannerCandidate | ReplylessCandidate | NeedsClarification

Defined in: packages/engine/src/lib/planner/candidate.ts:59

Everything a planner may return: a PlannerCandidate, a ReplylessCandidate, or a NeedsClarification when it cannot proceed without asking the user. Every member carries a top-level type, 'plan' or 'needs_clarification', so a switch on it tells them apart. Validation accepts a replyless candidate without userMessage and a needs-clarification result only for a request that set skipReply: true, and Engine.handle currently refuses both even then with Err(ValidationError) on field skipReply.