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

    Interface UnsafeLocalCodeExecutorOptions

    `UnsafeLocalCodeExecutor` 的相关选项。

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

    用于运行 JavaScript 代码的命令。默认值为…… process.execPath (Node.js)

    pythonCommandPath?: string

    用于运行 Python 代码的命令。默认值为…… python3.

    shellCommandPath?: string

    用于运行 Shell 代码的命令。默认值为…… bash.

    当它被命名时…… powershell 或者 pwsh “(无论是否)包含……” .exe该脚本的编写方式如下: .ps1 该脚本需要通过 PowerShell 来执行,而不是作为普通的 shell 脚本来运行。

    timeoutSeconds?: number

    代码执行的超时时间(以秒为单位)。默认值为 30 秒。