Class: OpenAI::Models::VectorStores::FileListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/openai/models/vector_stores/file_list_params.rb,
sig/openai/models/vector_stores/file_list_params.rbs

Overview

See Also:

  • OpenAI::Resources::VectorStores::Files#list

Defined Under Namespace

Modules: Filter, Order

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(vector_store_id:, after: nil, before: nil, filter: nil, limit: nil, order: nil, request_options: {}) ⇒ FileListParams

Returns a new instance of FileListParams.

Parameters:

  • after (defaults to: nil) —

    A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.

  • before (defaults to: nil) —

    A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.

  • filter (defaults to: nil) —

    Filter by file status. One of in_progress, completed, failed, cancelled.

  • limit (defaults to: nil) —

    A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

  • order (defaults to: nil) —

    Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

  • vector_store_id: (String)
  • after: (String) (defaults to: nil)
  • before: (String) (defaults to: nil)
  • filter: (OpenAI::Models::VectorStores::FileListParams::filter) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • order: (OpenAI::Models::VectorStores::FileListParams::order) (defaults to: nil)
  • request_options: (OpenAI::request_opts) (defaults to: {})


# File 'lib/openai/models/vector_stores/file_list_params.rb', line 54

Instance Attribute Details

#after ⇒ String?

A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.

Returns:

  • (String, nil)


23
# File 'lib/openai/models/vector_stores/file_list_params.rb', line 23

optional :after, String

#before ⇒ String?

A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.

Returns:

  • (String, nil)


32
# File 'lib/openai/models/vector_stores/file_list_params.rb', line 32

optional :before, String

#filter ⇒ OpenAI::Models::VectorStores::FileListParams::filter?

Filter by file status. One of in_progress, completed, failed, cancelled.

Returns:

  • (OpenAI::Models::VectorStores::FileListParams::filter, nil)


38
# File 'lib/openai/models/vector_stores/file_list_params.rb', line 38

optional :filter, enum: -> { OpenAI::VectorStores::FileListParams::Filter }

#limit ⇒ Integer?

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

Returns:

  • (Integer, nil)


45
# File 'lib/openai/models/vector_stores/file_list_params.rb', line 45

optional :limit, Integer

#order ⇒ OpenAI::Models::VectorStores::FileListParams::order?

Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

Returns:

  • (OpenAI::Models::VectorStores::FileListParams::order, nil)


52
# File 'lib/openai/models/vector_stores/file_list_params.rb', line 52

optional :order, enum: -> { OpenAI::VectorStores::FileListParams::Order }

#vector_store_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/openai/models/vector_stores/file_list_params.rb', line 14

required :vector_store_id, String

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/vector_stores/file_list_params.rb', line 91

Instance Method Details

#to_hash ⇒ { vector_store_id: String, ?after: String, ?before: String, ?filter: OpenAI::Models::VectorStores::FileListParams::filter, ?limit: Integer, ?order: OpenAI::Models::VectorStores::FileListParams::order, ?request_options: OpenAI::RequestOptions }

Returns:

  • ({ vector_store_id: String, ?after: String, ?before: String, ?filter: OpenAI::Models::VectorStores::FileListParams::filter, ?limit: Integer, ?order: OpenAI::Models::VectorStores::FileListParams::order, ?request_options: OpenAI::RequestOptions })


99
100
101
102
103
104
105
106
107
# File 'sig/openai/models/vector_stores/file_list_params.rbs', line 99

def to_hash: -> {
  vector_store_id: String,
  ?after: String,
  ?before: String,
  ?filter: OpenAI::Models::VectorStores::FileListParams::filter,
  ?limit: Integer,
  ?order: OpenAI::Models::VectorStores::FileListParams::order,
  ?request_options: OpenAI::RequestOptions
}