bodhi-realtime-agent / SubagentEventCallbacks
Interface: SubagentEventCallbacks
Defined in: agent/agent-router.ts:29
Callbacks for interactive subagent lifecycle events.
Properties
onMessage()?
optionalonMessage: (toolCallId,msg) =>void
Defined in: agent/agent-router.ts:31
Fired when a subagent sends a message (question, progress) to the user.
Parameters
toolCallId
string
msg
Returns
void
onSessionEnd()?
optionalonSessionEnd: (toolCallId) =>void
Defined in: agent/agent-router.ts:33
Fired when a subagent session transitions to a terminal state (completed/cancelled).
Parameters
toolCallId
string
Returns
void