Class: OpenAI::Models::Responses::ResponseCodeInterpreterToolCall
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseCodeInterpreterToolCall
- Defined in:
- lib/openai/models/responses/response_code_interpreter_tool_call.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#code ⇒ String
The code to run.
-
#container_id ⇒ String?
The ID of the container used to run the code.
-
#id ⇒ String
The unique ID of the code interpreter tool call.
-
#results ⇒ Array<OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Result::Logs, OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Result::Files>
The results of the code interpreter tool call.
-
#status ⇒ Symbol, OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Status
The status of the code interpreter tool call.
-
#type ⇒ Symbol, :code_interpreter_call
The type of the code interpreter tool call.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_id: , mime_type: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see Result::Files::File for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(file_id: , mime_type: ) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Result::Files::File for more details.
|
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 46
|
Instance Attribute Details
#code ⇒ String
The code to run.
17 |
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 17 required :code, String |
#container_id ⇒ String?
The ID of the container used to run the code.
44 |
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 44 optional :container_id, String |
#id ⇒ String
The unique ID of the code interpreter tool call.
11 |
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 11 required :id, String |
#results ⇒ Array<OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Result::Logs, OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Result::Files>
The results of the code interpreter tool call.
23 24 25 26 |
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 23 required :results, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Responses::ResponseCodeInterpreterToolCall::Result] } |
#status ⇒ Symbol, OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Status
The status of the code interpreter tool call.
32 |
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 32 required :status, enum: -> { OpenAI::Responses::ResponseCodeInterpreterToolCall::Status } |
#type ⇒ Symbol, :code_interpreter_call
The type of the code interpreter tool call. Always ‘code_interpreter_call`.
38 |
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 38 required :type, const: :code_interpreter_call |
Class Method Details
.variants ⇒ Array(OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Result::Logs, OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Result::Files)
|
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 151
|