Module: OpenAI::Models::Responses::ResponseFileSearchToolCall::Result::Attribute

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/responses/response_file_search_tool_call.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Class Method Details

.variantsArray(String, Float, Boolean)

Returns:



# File 'lib/openai/models/responses/response_file_search_tool_call.rb', line 140

Instance Method Details

#initialize(attributes: nil, file_id: nil, filename: nil, score: nil, text: nil) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Responses::ResponseFileSearchToolCall::Result for more details.

Parameters:

  • attributes (Hash{Symbol=>String, Float, Boolean}, nil) (defaults to: nil)

    Set of 16 key-value pairs that can be attached to an object. This can be

  • file_id (String) (defaults to: nil)

    The unique ID of the file.

  • filename (String) (defaults to: nil)

    The name of the file.

  • score (Float) (defaults to: nil)

    The relevance score of the file - a value between 0 and 1.

  • text (String) (defaults to: nil)

    The text that was retrieved from the file.



131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/openai/models/responses/response_file_search_tool_call.rb', line 131

module Attribute
  extend OpenAI::Internal::Type::Union

  variant String

  variant Float

  variant OpenAI::Internal::Type::Boolean

  # @!method self.variants
  #   @return [Array(String, Float, Boolean)]
end