Skip to content

ToolDeclaration

Backend-agnostic tool declaration. Produced by capabilities, consumed by adapters (Gemini, AI SDK, LiveKit).

Type Parameter Default type

TInput

unknown

TOutput

unknown

description: string;

execute: (args, options?) => Promise<TOutput>;
Parameter Type

args

TInput

options?

unknown

Promise<TOutput>


name: string;

parameters: ZodTypeAny;

optional voiceDirective?: object;

Optional voice-only directive metadata (flow toolHints preSpeech).

Name Type

preSpeech?

"optional" | "force" | "none"

preSpeechText?

string