Skip to content

CodeInterpreterInvocationOutput

Structure Class

CodeInterpreterInvocationOutput dataclass

Bases: _SerdeShape

Contains the JSON-formatted string returned by the API invoked by the code interpreter.

Attributes

execution_error class-attribute instance-attribute
execution_error: str | None = ...

Contains the error returned from code execution.

execution_output class-attribute instance-attribute
execution_output: str | None = ...

Contains the successful output returned from code execution

execution_timeout class-attribute instance-attribute
execution_timeout: bool | None = ...

Indicates if the execution of the code timed out.

files class-attribute instance-attribute
files: list[str] | None = ...

Contains output files, if generated by code execution.

metadata class-attribute instance-attribute
metadata: Metadata | None = ...

Contains information about the output from the code interpreter.