Class: OpenAI::Models::VectorStores::FileBatchListFilesParams

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

Overview

See Also:

  • OpenAI::Resources::VectorStores::FileBatches#list_files

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:, batch_id:, after: nil, before: nil, filter: nil, limit: nil, order: nil, request_options: {}) ⇒ FileBatchListFilesParams

Returns a new instance of FileBatchListFilesParams.

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)
  • batch_id: (String)
  • after: (String) (defaults to: nil)
  • before: (String) (defaults to: nil)
  • filter: (OpenAI::Models::VectorStores::FileBatchListFilesParams::filter) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • order: (OpenAI::Models::VectorStores::FileBatchListFilesParams::order) (defaults to: nil)
  • request_options: (OpenAI::request_opts) (defaults to: {})


# File 'lib/openai/models/vector_stores/file_batch_list_files_params.rb', line 59

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)


28
# File 'lib/openai/models/vector_stores/file_batch_list_files_params.rb', line 28

optional :after, String

#batch_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


19
# File 'lib/openai/models/vector_stores/file_batch_list_files_params.rb', line 19

required :batch_id, 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)


37
# File 'lib/openai/models/vector_stores/file_batch_list_files_params.rb', line 37

optional :before, String

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

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

Returns:

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


43
# File 'lib/openai/models/vector_stores/file_batch_list_files_params.rb', line 43

optional :filter, enum: -> { OpenAI::VectorStores::FileBatchListFilesParams::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)


50
# File 'lib/openai/models/vector_stores/file_batch_list_files_params.rb', line 50

optional :limit, Integer

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

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

Returns:

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


57
# File 'lib/openai/models/vector_stores/file_batch_list_files_params.rb', line 57

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

#vector_store_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/openai/models/vector_stores/file_batch_list_files_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_batch_list_files_params.rb', line 98

Instance Method Details

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

Returns:

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


103
104
105
106
107
108
109
110
111
112
# File 'sig/openai/models/vector_stores/file_batch_list_files_params.rbs', line 103

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