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

    Interface ExecutionResult

    Result of a shell command executed in a BaseEnvironment.

    This is distinct from CodeExecutionResult, which is produced by the code executors: a code executor runs a code snippet and reports the files it produced, whereas an environment runs a shell command inside a working directory and reports its process exit status.

    A command that succeeds with no output yields {exitCode: 0, stdout: '', stderr: '', timedOut: false}.

    interface ExecutionResult {
        exitCode: number;
        stderr: string;
        stdout: string;
        timedOut: boolean;
    }

    Properties

    exitCode: number

    The exit code of the process. 0 on success.

    stderr: string

    Standard error captured from the process. '' when nothing was written.

    stdout: string

    Standard output captured from the process. '' when nothing was written.

    timedOut: boolean

    Whether the execution exceeded the timeout. false when it completed.