class

OpenAI::CodeInterpreterToolCall

Inherits JSON::Serializable < Reference < Object

A tool call to run code.

Constructors

new(type_value : CodeInterpreterToolCallType = CodeInterpreterToolCallType::CodeInterpreterCall, id : String = "", status : CodeInterpreterToolCallStatus = CodeInterpreterToolCallStatus::InProgress, container_id : String = "", code : CodeInterpreterToolCallCode = nil, outputs : CodeInterpreterToolCallOutputs = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

code
Source
code=(code : CodeInterpreterToolCallCode)
Source
container_id

The ID of the container used to run the code.

Source
container_id=(container_id : String)

The ID of the container used to run the code.

Source
id

The unique ID of the code interpreter tool call.

Source
id=(id : String)

The unique ID of the code interpreter tool call.

Source
outputs
Source
outputs=(outputs : CodeInterpreterToolCallOutputs)
Source
status

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

Source
status=(status : CodeInterpreterToolCallStatus)

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

Source
type_value

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

Source
type_value=(type_value : CodeInterpreterToolCallType)

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

Source