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

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

Overview

See Also:

Defined Under Namespace

Classes: RankingOptions, Result

Instance Attribute Summary collapse

Class Method 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(ranking_options: nil, results: nil) ⇒ Object

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

Parameters:



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

Instance Attribute Details

#ranking_optionsOpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions?

The ranking options for the file search.



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

optional :ranking_options,
-> { OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions }

#resultsArray<OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result>?

The results of the file search.



51
52
53
54
# File 'lib/openai/models/beta/threads/runs/file_search_tool_call.rb', line 51

optional :results,
-> {
  OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result]
}

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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