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

> **ClientEnvelope** = [`ChartRequestMessage`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/chartrequestmessage/) | [`AssistantInjectionMessage`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/assistantinjectionmessage/) | [`AcknowledgedAssistantMessage`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/acknowledgedassistantmessage/) | [`HistoryGetMessage`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/historygetmessage/) | [`DiagnosticSubscription`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/diagnosticsubscription/) | [`AgentInputMessage`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/agentinputmessage/)

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

Every message a client may send to an engine host over the duplex stream.

Every [ChartRequestMessage](https://docs.maelstrom-ai.co/dev/reference/protocol/variables/chartrequestmessage/) / [AssistantInjectionMessage](https://docs.maelstrom-ai.co/dev/reference/protocol/variables/assistantinjectionmessage/) — i.e. every `EngineMessage` — is a valid ClientEnvelope; the envelope module adds the transport-only [HistoryGetMessage](https://docs.maelstrom-ai.co/dev/reference/protocol/variables/historygetmessage/), [AcknowledgedAssistantMessage](https://docs.maelstrom-ai.co/dev/reference/protocol/variables/acknowledgedassistantmessage/) and [DiagnosticSubscription](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/diagnosticsubscription/), which the LLM never sees, and the [AgentInputMessage](https://docs.maelstrom-ai.co/dev/reference/protocol/variables/agentinputmessage/) that feeds the Agent Session. The legacy assistant arm remains fire-and-forget; only the acknowledged arm requests a response. Discriminated on `type`, so a host router can use one switch.

The agent variants (`AgentInputMessage`, `AgentEventMessage`) are experimental in 0.3 and may change in any minor release.
