Class: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall

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

Defined Under Namespace

Classes: FileSearch

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(id: , file_search: , type: :file_search) ⇒ Object

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

Parameters:

  • id (String) (defaults to: )

    The ID of the tool call object.

  • file_search (OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch) (defaults to: )

    For now, this is always going to be an empty object.

  • type (Symbol, :file_search) (defaults to: :file_search)

    The type of tool call. This is always going to be ‘file_search` for this type of



# File 'lib/openai/models/beta/threads/runs/file_search_tool_call.rb', line 28

Instance Attribute Details

#file_searchOpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch

For now, this is always going to be an empty object.



19
# File 'lib/openai/models/beta/threads/runs/file_search_tool_call.rb', line 19

required :file_search, -> { OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch }

#idString

The ID of the tool call object.

Returns:

  • (String)


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

required :id, String

#typeSymbol, :file_search

The type of tool call. This is always going to be ‘file_search` for this type of tool call.

Returns:

  • (Symbol, :file_search)


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

required :type, const: :file_search