OpenAI::CodeInterpreterToolCall
Inherits JSON::Serializable < Reference < Object
A tool call to run code.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : CodeInterpreterToolCallType = CodeInterpreterToolCallType::CodeInterpreterCall, id : String = "", status : CodeInterpreterToolCallStatus = CodeInterpreterToolCallStatus::InProgress, container_id : String = "", code : CodeInterpreterToolCallCode = nil, outputs : CodeInterpreterToolCallOutputs = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
code
Sourcecode=(code : CodeInterpreterToolCallCode)
Sourceoutputs
Sourceoutputs=(outputs : CodeInterpreterToolCallOutputs)
Sourcestatus
The status of the code interpreter tool call. Valid values are in_progress, completed, incomplete, interpreting, and failed.
status=(status : CodeInterpreterToolCallStatus)
The status of the code interpreter tool call. Valid values are in_progress, completed, incomplete, interpreting, and failed.
type_value=(type_value : CodeInterpreterToolCallType)
The type of the code interpreter tool call. Always code_interpreter_call.