Skip to content

CodeInterpreterToolCall

This docs was updated at: 2026-02-23

com.paragon.responses.spec.CodeInterpreterToolCall  ·  Class

Extends ToolCall  ·  Implements Item, ResponseOutput


A tool call to run code.

Methods

CodeInterpreterToolCall

CodeInterpreterToolCall(
      @NonNull String id,
      @NonNull String code,
      @NonNull String containerId,
      @NonNull List<CodeInterpreterOutput> outputs,
      @NonNull CodeInterpreterToolCallStatus status)

@param code The code to run, or null if not available.

Parameters

Name Description
containerId The ID of the container used to run the code.
id The unique ID of the code interpreter tool call.
outputs The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available.
status The status of the code interpreter tool call. Valid values are in_progress, completed, incomplete, interpreting, and failed.