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

The identifier of the ExecutableCode part this result is for. Only populated if the corresponding ExecutableCode has an id.

outcome?: Outcome

Required. Outcome of the code execution.

output?: string

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