# PlannerOutputFor
Source: https://docs.maelstrom-ai.co/0.2/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/0.2/reference/protocol/type-aliases/gridresponse/) | [`TilingResponse`](https://docs.maelstrom-ai.co/0.2/reference/protocol/type-aliases/tilingresponse/) : `ReplylessPlannerOutput` : `never`

Defined in: packages/protocol/src/lib/request.ts:278

The Planner output a request of type `R` may receive, chosen by its [ChartRequest.skipReply](https://docs.maelstrom-ai.co/0.2/reference/protocol/interfaces/chartrequest/#skipreply) flag:

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

Distributes over a union of request types.

## Type Parameters

### R

`R` _extends_ `object`
