ToolExecutor
Encapsulates tool execution with enforcement, idempotency, and context enrichment. Shared by Runtime (text path) and VoiceEngine (audio path).
Methods
Section titled “Methods”buildIdempotencyKey()
Section titled “buildIdempotencyKey()”buildIdempotencyKey(args): string;Build a deterministic idempotency key for external side-effect deduplication.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”string
execute()
Section titled “execute()”execute(args): Promise<unknown>;Execute a single tool call with enforcement checks and context enrichment. Returns the tool’s result or throws if blocked/failed.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
{ |
‐ |
|
|
|
‐ |
|
|
|
‐ |
|
|
|
‐ |
|
|
‐ |
|
|
|
|
‐ |
|
|
|
‐ |
|
|
Full tool call history for enforcement context. |
|
|
|
|
‐ |
|
|
|
‐ |
|
|
|
‐ |
|
|
|
‐ |
Returns
Section titled “Returns”Promise<unknown>