Class: OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter
- Defined in:
- lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb,
sig/openai/models/beta/threads/runs/code_interpreter_tool_call.rbs
Overview
Defined Under Namespace
Modules: Output
Instance Attribute Summary collapse
-
#input ⇒ String
The input to the Code Interpreter tool call.
-
#outputs ⇒ ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::output]
The outputs from the Code Interpreter tool call.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
- #initialize(input:, outputs:) ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, 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(input:, outputs:) ⇒ Object
|
|
# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb', line 64
|
Instance Attribute Details
#input ⇒ String
The input to the Code Interpreter tool call.
47 |
# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb', line 47 required :input, String |
#outputs ⇒ ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::output]
The outputs from the Code Interpreter tool call. Code Interpreter can output one
or more items, including text (logs) or images (image). Each of these are
represented by a different object type.
55 56 57 58 59 60 61 62 |
# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb', line 55 required( :outputs, -> { OpenAI::Internal::Type::ArrayOf[ union: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output ] } ) |
Instance Method Details
#to_hash ⇒ {
69 |
# File 'sig/openai/models/beta/threads/runs/code_interpreter_tool_call.rbs', line 69
def to_hash: -> {
|