# AgentConversationEvents
Source: https://docs.maelstrom-ai.co/dev/reference/react/type-aliases/agentconversationevents/
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.

> **AgentConversationEvents** = `object`

Defined in: packages/client/dist/lib/orchestrator/conversation-event.types.d.ts:121

Events the Orchestrator emits for the Agent Session conversation. Subscribe through `orchestrator.agent.events.on(...)`.

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

### accepted

> **accepted**: [`AgentInputAcceptedEvent`](https://docs.maelstrom-ai.co/dev/reference/react/type-aliases/agentinputacceptedevent/)

Defined in: packages/client/dist/lib/orchestrator/conversation-event.types.d.ts:123

Fires when the agent accepts an input, naming the run that handles it.

* * *

### conversation\_lost

> **conversation\_lost**: `ConversationLostEvent`

Defined in: packages/client/dist/lib/orchestrator/conversation-event.types.d.ts:147

Fires when the conversation is lost to a disconnect or connector replacement, after which no further events arrive from that session. Also fires with reason `stale_run` when an input or Agent Run goes silent. Late events for that run may still arrive and a `ui_applied` for a change still being applied is dropped.

* * *

### error

> **error**: `AgentErrorEvent`

Defined in: packages/client/dist/lib/orchestrator/conversation-event.types.d.ts:139

Fires when the agent reports a failure that is not an Agent Run’s own ending, such as an admission rejection. It carries the `inputId` when the failure relates to an input. It also reports a failed loop-driven UI change of an Agent Run, named by `runId` and `changeId`, which can arrive mid-run or after that run’s `finished`.

* * *

### finished

> **finished**: `AgentFinishedEvent`

Defined in: packages/client/dist/lib/orchestrator/conversation-event.types.d.ts:131

Fires when an Agent Run ends, whatever the reason.

* * *

### message

> **message**: `AgentMessageEvent`

Defined in: packages/client/dist/lib/orchestrator/conversation-event.types.d.ts:129

Fires when the agent sends a conversational message for the user.

* * *

### placeholder

> **placeholder**: `AgentPlaceholderEvent`

Defined in: packages/client/dist/lib/orchestrator/conversation-event.types.d.ts:127

Fires when the agent sends a placeholder to show while it works.

* * *

### ui\_change

> **ui\_change**: [`AgentUiChangeAppliedEvent`](https://docs.maelstrom-ai.co/dev/reference/react/type-aliases/agentuichangeappliedevent/)

Defined in: packages/client/dist/lib/orchestrator/conversation-event.types.d.ts:125

Fires once for each UI change after the Orchestrator applied it.
