Class: OpenAI::Models::Beta::Threads::Runs::ToolCallsStepDetails

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/threads/runs/tool_calls_step_details.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: , type: :tool_calls) ⇒ Object

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

Details of the tool call.

Parameters:



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

Instance Attribute Details

#tool_callsArray<OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall, OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall, OpenAI::Models::Beta::Threads::Runs::FunctionToolCall>

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`.



15
16
17
18
# File 'lib/openai/models/beta/threads/runs/tool_calls_step_details.rb', line 15

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

#typeSymbol, :tool_calls

Always ‘tool_calls`.

Returns:

  • (Symbol, :tool_calls)


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

required :type, const: :tool_calls