# AgentEventMessage
Source: https://docs.maelstrom-ai.co/0.2/reference/protocol/interfaces/agenteventmessage/
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:411

An `engine.agent.event` frame: carries one [AgentEvent](https://docs.maelstrom-ai.co/0.2/reference/protocol/type-aliases/agentevent/) from the Agent Session of `sessionId` to its client. Events are streamed and correlate to inputs through the inner event’s `inputId` or `changeId`, not to a request, so the frame carries its own `id` rather than a `requestId`.

## Properties

### event

> **event**: [`AgentEvent`](https://docs.maelstrom-ai.co/0.2/reference/protocol/type-aliases/agentevent/)

Defined in: packages/protocol/src/lib/envelope.ts:422

The agent event carried by this frame.

* * *

### id

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

Defined in: packages/protocol/src/lib/envelope.ts:418

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

* * *

### sessionId

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

Defined in: packages/protocol/src/lib/envelope.ts:420

Session whose Agent Session emitted the event.

* * *

### type

> **type**: `"engine.agent.event"`

Defined in: packages/protocol/src/lib/envelope.ts:413

Frame discriminator.
