# PlannerOutputFor
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/planneroutputfor/
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.

> **PlannerOutputFor**<`R`\> = `R` _extends_ `unknown` ? \[`SkipReplyFlagOf`<`R`\>\] _extends_ \[`false` | `undefined`\] ? [`GridResponse`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/gridresponse/) | [`TilingResponse`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/tilingresponse/) : `ReplylessPlannerOutput` : `never`

Defined in: [packages/protocol/src/lib/request.ts:421](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/request.ts#L421)

The Planner result a request of type `R` may receive, chosen by its [ChartRequest.skipReply](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/chartrequest/#skipreply) flag. Every member carries a top-level `type`: `'plan'` for a layout result, `'needs_clarification'` for a [NeedsClarification](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/needsclarification/).

-   flag absent or `false`: [GridResponse](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/gridresponse/) or [TilingResponse](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/tilingresponse/), both with a required `userMessage`
-   flag `true`: [GridResponseWithoutReply](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/gridresponsewithoutreply/), [TilingResponseWithoutReply](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/tilingresponsewithoutreply/) or [NeedsClarification](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/needsclarification/), each of which may carry [PlannerReasonVerdict](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/plannerreasonverdict/) `verdicts`
-   flag only known as `boolean`: the `true` case, since the request may have set it

Distributes over a union of request types. The types do not tie a result’s `layout` to the request’s layout mode, so a mismatch is rejected at runtime only, by validation against `context.layoutMode`.

## Type Parameters

### R

`R` _extends_ `object`
