Class: OpenAI::Models::VectorStores::VectorStoreFile::LastError

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/vector_stores/vector_store_file.rb

Overview

See Also:

Defined Under Namespace

Modules: Code

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(code: , message: ) ⇒ Object

The last error associated with this vector store file. Will be ‘null` if there are no errors.

Parameters:



# File 'lib/openai/models/vector_stores/vector_store_file.rb', line 115

Instance Attribute Details

#codeSymbol, OpenAI::Models::VectorStores::VectorStoreFile::LastError::Code

One of ‘server_error` or `rate_limit_exceeded`.



107
# File 'lib/openai/models/vector_stores/vector_store_file.rb', line 107

required :code, enum: -> { OpenAI::VectorStores::VectorStoreFile::LastError::Code }

#messageString

A human-readable description of the error.

Returns:

  • (String)


113
# File 'lib/openai/models/vector_stores/vector_store_file.rb', line 113

required :message, String