# PlannerCandidate
Source: https://docs.maelstrom-ai.co/dev/reference/engine/type-aliases/plannercandidate/
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.

> **PlannerCandidate** = `DeepReadonly`<`GridResponse`\> | `DeepReadonly`<`TilingResponse`\>

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

The raw plan a planner produces: the plan result for the request’s layout mode, tagged `type: 'plan'`, before the Engine heals and validates it. A grid request expects a `GridResponse`; a tiling request a `TilingResponse`. A stage that parses model output (`GridModelOutput` or `TilingModelOutput`) stamps the tag itself; validation rejects a result whose `type` is missing or unknown.

A candidate is immutable. Validation results are cached per candidate object, so a stage that wants a different plan must return a new object rather than edit one it received or already validated.
