Class: OpenAI::Models::Beta::Threads::Runs::ToolCallDeltaObject

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

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, 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(tool_calls: nil, type: :tool_calls) ⇒ Object

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

Details of the tool call.

Parameters:



# File 'lib/openai/models/beta/threads/runs/tool_call_delta_object.rb', line 24

Instance Attribute Details

#tool_callsArray<OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta, OpenAI::Models::Beta::Threads::Runs::FileSearchToolCallDelta, OpenAI::Models::Beta::Threads::Runs::FunctionToolCallDelta>?

An array of tool calls the run step was involved in. These can be associated with one of three types of tools: ‘code_interpreter`, `file_search`, or `function`.



21
22
# File 'lib/openai/models/beta/threads/runs/tool_call_delta_object.rb', line 21

optional :tool_calls,
-> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::Threads::Runs::ToolCallDelta] }

#typeSymbol, :tool_calls

Always ‘tool_calls`.

Returns:

  • (Symbol, :tool_calls)


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

required :type, const: :tool_calls