Class: Anthropic::Models::ModelListParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::ModelListParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/model_list_params.rb
Overview
Instance Attribute Summary collapse
-
#after_id ⇒ String?
ID of the object to use as a cursor for pagination.
-
#before_id ⇒ String?
ID of the object to use as a cursor for pagination.
-
#betas ⇒ Array<String, Symbol, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
-
#limit ⇒ Integer?
Number of items to return per page.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(after_id: nil, before_id: nil, limit: nil, betas: nil, request_options: {}) ⇒ void
constructor
Some parameter documentations has been truncated, see ModelListParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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, meta_info, new_coerce_state, 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(after_id: nil, before_id: nil, limit: nil, betas: nil, request_options: {}) ⇒ void
Some parameter documentations has been truncated, see Anthropic::Models::ModelListParams for more details.
|
# File 'lib/anthropic/models/model_list_params.rb', line 38
|
Instance Attribute Details
#after_id ⇒ String?
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
15 |
# File 'lib/anthropic/models/model_list_params.rb', line 15 optional :after_id, String |
#before_id ⇒ String?
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
22 |
# File 'lib/anthropic/models/model_list_params.rb', line 22 optional :before_id, String |
#betas ⇒ Array<String, Symbol, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
36 |
# File 'lib/anthropic/models/model_list_params.rb', line 36 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#limit ⇒ Integer?
Number of items to return per page.
Defaults to 20
. Ranges from 1
to 1000
.
30 |
# File 'lib/anthropic/models/model_list_params.rb', line 30 optional :limit, Integer |