# PlannerOutput
Source: https://docs.maelstrom-ai.co/dev/reference/engine/type-aliases/planneroutput/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **PlannerOutput** = [`PlannerCandidate`](https://docs.maelstrom-ai.co/dev/reference/engine/type-aliases/plannercandidate/) | [`ReplylessCandidate`](https://docs.maelstrom-ai.co/dev/reference/engine/type-aliases/replylesscandidate/) | `NeedsClarification`

Defined in: [packages/engine/src/lib/planner/candidate.ts:61](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/planner/candidate.ts#L61)

Everything a planner may return: a [PlannerCandidate](https://docs.maelstrom-ai.co/dev/reference/engine/type-aliases/plannercandidate/), a [ReplylessCandidate](https://docs.maelstrom-ai.co/dev/reference/engine/type-aliases/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`.
