@pouchy_ai/companion-sdk - v0.1.0
    Preparing search index...

    Interface VoiceToolBridge

    Lets the live voice call invoke the app's declared tools (pause_game, set_feature, …). The companion's voice LLM calls a tool → invoke() runs the app's onToolCall handler and resolves with a result string fed back to the model. Wired by connectCall from the tools declared at createCompanion().

    interface VoiceToolBridge {
        invoke: (name: string, argsJson: string) => Promise<string>;
        tools: {
            description?: string;
            name: string;
            parameters?: Record<string, unknown>;
        }[];
    }
    Index
    invoke: (name: string, argsJson: string) => Promise<string>
    tools: {
        description?: string;
        name: string;
        parameters?: Record<string, unknown>;
    }[]