# AgentEventSchema
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/variables/agenteventschema/
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` **AgentEventSchema**: `ZodDiscriminatedUnion`<\[`ZodObject`<{ `inputId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`MessageId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/messageid/), `string`\>>; `text`: `ZodString`; `type`: `ZodLiteral`<`"placeholder"`\>; `version`: `ZodLiteral`<`1`\>; }, `$strip`\>, `ZodObject`<{ `ack`: `ZodString`; `disposition`: `ZodEnum`<{ `agent`: `"agent"`; `amend`: `"amend"`; `answer`: `"answer"`; `independent`: `"independent"`; `noise`: `"noise"`; `supersede`: `"supersede"`; `ui_only`: `"ui_only"`; }>; `inputId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`MessageId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/messageid/), `string`\>>; `runId`: `ZodNullable`<`ZodPipe`<`ZodString`, `ZodTransform`<[`RunId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/runid/), `string`\>>>; `type`: `ZodLiteral`<`"accepted"`\>; `version`: `ZodLiteral`<`1`\>; }, `$strip`\>, `ZodObject`<{ `delta`: `ZodString`; `runId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`RunId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/runid/), `string`\>>; `turnId`: `ZodString`; `type`: `ZodLiteral`<`"message"`\>; `version`: `ZodLiteral`<`1`\>; }, `$strip`\>\], `"type"`\>

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

Every event the Engine may send on the agent event stream, 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.
