bodhi-realtime-agent / ToolCallRouter
Class: ToolCallRouter
Defined in: src/core/tool-call-router.ts:39
Routes tool calls from the LLM to the correct execution path: inline execution, background subagent handoff, or agent transfer.
Extracted from VoiceSession to reduce its line count and isolate tool call routing as a self-contained concern.
Deprecated
Use ToolRouterActor from src/runtime/ instead. This class is retained for backward compatibility during the transition to the actor-based orchestration layer (RuntimeOrchestrator).
Constructors
Constructor
new ToolCallRouter(
deps):ToolCallRouter
Defined in: src/core/tool-call-router.ts:42
Parameters
deps
Returns
ToolCallRouter
Accessors
toolExecutor
Set Signature
set toolExecutor(
executor):void
Defined in: src/core/tool-call-router.ts:47
Update the tool executor (e.g. after an agent transfer).
Parameters
executor
Returns
void
Methods
handleToolCallCancellation()
handleToolCallCancellation(
ids):void
Defined in: src/core/tool-call-router.ts:100
Abort one or more pending tool executions and subagents.
Parameters
ids
string[]
Returns
void
handleToolCalls()
handleToolCalls(
calls):void
Defined in: src/core/tool-call-router.ts:52
Dispatch incoming tool calls to the appropriate handler.
Parameters
calls
object[]
Returns
void