# PlanningInput
Source: https://docs.maelstrom-ai.co/dev/reference/engine/interfaces/planninginput/
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.

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

What the Engine hands the first stage of a [Planner](https://docs.maelstrom-ai.co/dev/reference/engine/type-aliases/planner/) for one `chart_request`. Stages may pass a modified copy downstream (for example a narrowed `request`), but the Engine always validates the final candidate against the request it received, which stays available as [StageContext.origin](https://docs.maelstrom-ai.co/dev/reference/engine/interfaces/stagecontext/#origin).

## Properties

### history

> `readonly` **history**: readonly [`LLMContextMessage`](https://docs.maelstrom-ai.co/dev/reference/engine/interfaces/llmcontextmessage/)\[\]

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

Prior conversation as projected by the Engine’s history config. Empty without history.

* * *

### messageId

> `readonly` **messageId**: `MessageId`

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

Envelope id of the `chart_request`, for correlating stage logs with Engine logs.

* * *

### request

> `readonly` **request**: `ChartRequest`

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

Chart state, Vessel catalog and update reasons as the client sent them.

* * *

### sessionId

> `readonly` **sessionId**: `SessionId`

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

Session the request belongs to; the key for any per-session state a stage keeps.
