Skip to content

AgentConversationEvents

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.

accepted: 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: 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: 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: AgentFinishedEvent

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

Fires when an Agent Run ends, whatever the reason.


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: 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: 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.