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.

    When it names powershell or pwsh (with or without .exe) the script is written as .ps1 and run through PowerShell rather than as a bare shell script.

    timeoutSeconds?: number

    Timeout for code execution in seconds. Default is 30.