InputItemCodeInterpreterToolCall interface

A tool call to run code.

Extends

Properties

code
container_id

The ID of the container used to run the code.

id

The unique ID of the code interpreter tool call.

outputs
status

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

type

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

Property Details

code

code: string

Property Value

string

container_id

The ID of the container used to run the code.

container_id: string

Property Value

string

id

The unique ID of the code interpreter tool call.

id: string

Property Value

string

outputs

outputs: (CodeInterpreterOutputLogs | CodeInterpreterOutputImage)[]

Property Value

status

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

status: "in_progress" | "completed" | "incomplete" | "failed" | "interpreting"

Property Value

"in_progress" | "completed" | "incomplete" | "failed" | "interpreting"

type

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

type: "code_interpreter_call"

Property Value

"code_interpreter_call"