Class: OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rb

Defined Under Namespace

Classes: CodeInterpreter

Instance Attribute Summary collapse

Instance Method Summary collapse

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, 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(index: , id: nil, code_interpreter: nil, type: :code_interpreter) ⇒ void

Some parameter documentations has been truncated, see OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta for more details.

Details of the Code Interpreter tool call the run step was involved in.



# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rb', line 35


Instance Attribute Details

#code_interpreterOpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter?

The Code Interpreter tool call definition.



32
33
# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rb', line 32

optional :code_interpreter,
-> { OpenAI::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter }

#idString?

The ID of the tool call.



26
# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rb', line 26

optional :id, String

#indexInteger

The index of the tool call in the tool calls array.



13
# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rb', line 13

required :index, Integer

#typeSymbol, :code_interpreter

The type of tool call. This is always going to be code_interpreter for this type of tool call.



20
# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rb', line 20

required :type, const: :code_interpreter