Share via


ItemCodeInterpreterToolCall interface

A tool call to run code.

Extends

Properties

code

The code to be executed by the code interpreter.

container_id

The ID of the container used to run the code.

id

The unique ID of the code interpreter tool call.

outputs

The outputs from the code interpreter.

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

The code to be executed by the code interpreter.

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

The outputs from the code interpreter.

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"