# AgentInputSchema
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/variables/agentinputschema/
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.

> `const` **AgentInputSchema**: `ZodDiscriminatedUnion`<\[`ZodObject`<{ `chart`: `ZodType`<[`ChartRequest`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/chartrequest/), `unknown`, `$ZodTypeInternals`<[`ChartRequest`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/chartrequest/), `unknown`\>>; `inputId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`MessageId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/messageid/), `string`\>>; `source`: `ZodEnum`<{ `text`: `"text"`; `voice`: `"voice"`; }>; `text`: `ZodString`; `type`: `ZodLiteral`<`"utterance"`\>; `version`: `ZodLiteral`<`1`\>; }, `$strip`\>, `ZodObject`<{ `actionOutcomes`: `ZodArray`<`ZodObject`<{ `error`: `ZodOptional`<`ZodString`\>; `ok`: `ZodBoolean`; }, `$strip`\>>; `changeId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`ChangeId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/changeid/), `string`\>>; `chart`: `ZodType`<[`ChartRequest`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/chartrequest/), `unknown`, `$ZodTypeInternals`<[`ChartRequest`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/chartrequest/), `unknown`\>>; `type`: `ZodLiteral`<`"ui_applied"`\>; `version`: `ZodLiteral`<`1`\>; }, `$strip`\>\], `"type"`\>

Defined in: [packages/protocol/src/lib/agent-wire.ts:233](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L233)

Every input a client may send to the Agent Session, discriminated on `type`. Each member carries `version` equal to [AGENT\_WIRE\_VERSION](https://docs.maelstrom-ai.co/dev/reference/protocol/variables/agent_wire_version/).

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.
