Skip to content

bodhi-realtime-agent / SubagentEventCallbacks

Interface: SubagentEventCallbacks

Defined in: agent/agent-router.ts:29

Callbacks for interactive subagent lifecycle events.

Properties

onMessage()?

optional onMessage: (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

SubagentMessage

Returns

void


onSessionEnd()?

optional onSessionEnd: (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

Built with VitePress