Module: Anthropic::Models::ModelListParams::Lifecycle

Extended by:
Internal::Type::Enum
Defined in:
lib/anthropic/models/model_list_params.rb,
sig/anthropic/models/model_list_params.rbs

Constant Summary collapse

ACTIVE =

Returns:

  • (:active)
:active
DEPRECATED =

Returns:

  • (:deprecated)
:deprecated
RETIRED =

Returns:

  • (:retired)
:retired

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type

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, meta_info, new_coerce_state, type_info

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/model_list_params.rb', line 76

Instance Method Details

#initialize(after_id: nil, before_id: nil, lifecycle: nil, limit: nil, workspace_id: nil, request_options: {}) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::ModelListParams for more details.

Parameters:

  • after_id (String) (defaults to: nil) —

    ID of the object to use as a cursor for pagination. When provided, returns the p

  • before_id (String) (defaults to: nil) —

    ID of the object to use as a cursor for pagination. When provided, returns the p

  • lifecycle (Array<Symbol, Anthropic::Models::ModelListParams::Lifecycle>) (defaults to: nil) —

    Filter the list to models in any of the given lifecycle stages (active,

  • limit (Integer) (defaults to: nil) —

    Number of items to return per page.

  • workspace_id (String) (defaults to: nil) —

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


69
70
71
72
73
74
75
76
77
78
# File 'lib/anthropic/models/model_list_params.rb', line 69

module Lifecycle
  extend Anthropic::Internal::Type::Enum

  ACTIVE = :active
  DEPRECATED = :deprecated
  RETIRED = :retired

  # @!method self.values
  #   @return [Array<Symbol>]
end