bodhi-realtime-agent / SubagentEventCallbacks
Interface: SubagentEventCallbacks
Defined in: src/agent/agent-router.ts:41
Callbacks for interactive subagent lifecycle events.
Properties
onMessage?
optionalonMessage?: (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
Returns
void
onSessionEnd?
optionalonSessionEnd?: (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