ADK for TypeScript: API Reference
    Preparing search index...

    Interface UnsafeLocalCodeExecutorOptions

    Options for UnsafeLocalCodeExecutor.

    interface UnsafeLocalCodeExecutorOptions {
        commandPath?: string;
        pythonCommandPath?: string;
        shellCommandPath?: string;
        timeoutSeconds?: number;
    }

    Properties

    commandPath?: string

    The command to run JavaScript code. Default is process.execPath (Node.js).

    pythonCommandPath?: string

    The command to run Python code. Default is python3.

    shellCommandPath?: string

    The command to run Shell code. Default is bash.

    timeoutSeconds?: number

    Timeout for code execution in seconds. Default is 30.