id: String

The unique ID of the code interpreter tool call.

code: String

The code to run, or null if not available.

container_id: String

The ID of the container used to run the code.

outputs: Array[Logs{ logs, type} | Image{ type, url}]

The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available.

One of the following:
class Logs { logs, type }

The logs output from the code interpreter.

logs: String

The logs output from the code interpreter.

type: :logs

The type of the output. Always logs.

class Image { type, url }

The image output from the code interpreter.

type: :image

The type of the output. Always image.

url: String

The URL of the image output from the code interpreter.

formaturi
status: :in_progress | :completed | :incomplete | 2 more

The status of the code interpreter tool call. Valid values are in_progress, completed, incomplete, interpreting, and failed.

One of the following:
:in_progress
:completed
:incomplete
:interpreting
:failed
type: :code_interpreter_call

The type of the code interpreter tool call. Always code_interpreter_call.

agent: Agent{ agent_name}

The agent that produced this item.

agent_name: String

The canonical name of the agent that produced this item.