PlannerOutput
PlannerOutput =
PlannerCandidate|ReplylessCandidate|NeedsClarification
Defined in: packages/engine/src/lib/planner/candidate.ts:61
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. Engine.handle then ships the replyless
candidate without userMessage and still refuses the clarification with
Err(ValidationError) on field skipReply.