Module: OpenAI::Models::VectorStoreSearchResponse::Attribute

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

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

Instance Method Details

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

Some parameter documentations has been truncated, see OpenAI::Models::VectorStoreSearchResponse for more details.

Parameters:

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

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

  • content (Array<OpenAI::Models::VectorStoreSearchResponse::Content>) (defaults to: )

    Content chunks from the file.

  • file_id (String) (defaults to: )

    The ID of the vector store file.

  • filename (String) (defaults to: )

    The name of the vector store file.

  • score (Float) (defaults to: )

    The similarity score for the result.



58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/openai/models/vector_store_search_response.rb', line 58

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