Interface CodeExecutionResult

Result of executing the ExecutableCode. Generated only when the CodeExecution tool is used.

interface CodeExecutionResult {
    id?: string;
    outcome?: Outcome;
    output?: string;
}

Properties

Properties

id?: string

Optional. The identifier of the ExecutableCode part this result is for. Only populated if the corresponding ExecutableCode has an id. This field is not supported in Vertex AI.

outcome?: Outcome

Required. Outcome of the code execution.

output?: string

Optional. Contains stdout when code execution is successful, stderr or other description otherwise.