Skip to content

bodhi-realtime-agent / SubagentEventCallbacks

Interface: SubagentEventCallbacks ​

Defined in: src/agent/agent-router.ts:41

Callbacks for interactive subagent lifecycle events.

Properties ​

onMessage? ​

optional onMessage?: (toolCallId, msg) => void

Defined in: src/agent/agent-router.ts:43

Fired when a subagent sends a message (question, progress) to the user.

Parameters ​

toolCallId ​

string

msg ​

SubagentMessage

Returns ​

void


onSessionEnd? ​

optional onSessionEnd?: (toolCallId) => void

Defined in: src/agent/agent-router.ts:45

Fired when a subagent session transitions to a terminal state (completed/cancelled).

Parameters ​

toolCallId ​

string

Returns ​

void

Built with VitePress