# AgentInputMessage
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/agentinputmessage/
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/protocol/src/lib/envelope.ts:146](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/envelope.ts#L146)

A `client.agent.input` frame: carries one [AgentInput](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/agentinput/) from a client to the Agent Session of `sessionId`. The inner input keeps its own `type` discriminator, which cannot collide with transport frame types.

The agent loop is experimental in 0.3 and may change in any minor release.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

## Properties

### id

> **id**: [`MessageId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/messageid/)

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

Identifies this frame on the transport. Agent correlation uses the inner `inputId` and `changeId` fields.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### input

> **input**: [`AgentInput`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/agentinput/)

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

The agent input carried by this frame.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### sessionId

> **sessionId**: [`SessionId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/sessionid/)

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

Session whose Agent Session receives the input.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### type

> **type**: `"client.agent.input"`

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

Frame discriminator.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.
