Module: Anthropic::Models::Organization::OrganizationRateLimit::Group
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/organization/organization_rate_limit.rb,
sig/anthropic/models/organization/organization_rate_limit.rbs
Overview
The rate-limit group this entry's limits apply to. Its type equals
group_type.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Organization::OrganizationRateLimitModelGroup, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Organization::OrganizationRateLimitModelGroup, Anthropic::Models::Organization::OrganizationRateLimitBatchGroup, Anthropic::Models::Organization::OrganizationRateLimitTokenCountGroup, Anthropic::Models::Organization::OrganizationRateLimitFilesGroup, Anthropic::Models::Organization::OrganizationRateLimitSkillsGroup, Anthropic::Models::Organization::OrganizationRateLimitWebSearchGroup)
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants
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
.new(type:, **args) ⇒ Anthropic::Models::Organization::OrganizationRateLimitModelGroup, ...
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Organization::OrganizationRateLimit::Group for more details.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/anthropic/models/organization/organization_rate_limit.rb', line 112 def self.new(type:, **args) case type.to_sym when :model_group Anthropic::Organization::OrganizationRateLimitModelGroup.new(**args) when :batch Anthropic::Organization::OrganizationRateLimitBatchGroup.new(**args) when :token_count Anthropic::Organization::OrganizationRateLimitTokenCountGroup.new(**args) when :files Anthropic::Organization::OrganizationRateLimitFilesGroup.new(**args) when :skills Anthropic::Organization::OrganizationRateLimitSkillsGroup.new(**args) when :web_search Anthropic::Organization::OrganizationRateLimitWebSearchGroup.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/organization/organization_rate_limit.rb', line 88
|
.variants ⇒ Array(Anthropic::Models::Organization::OrganizationRateLimitModelGroup, Anthropic::Models::Organization::OrganizationRateLimitBatchGroup, Anthropic::Models::Organization::OrganizationRateLimitTokenCountGroup, Anthropic::Models::Organization::OrganizationRateLimitFilesGroup, Anthropic::Models::Organization::OrganizationRateLimitSkillsGroup, Anthropic::Models::Organization::OrganizationRateLimitWebSearchGroup)
|
|
# File 'lib/anthropic/models/organization/organization_rate_limit.rb', line 92
|
Instance Method Details
#self?.variants ⇒ ::Array[Anthropic::Models::Organization::OrganizationRateLimit::group]
74 |
# File 'sig/anthropic/models/organization/organization_rate_limit.rbs', line 74
def self?.variants: -> ::Array[Anthropic::Models::Organization::OrganizationRateLimit::group]
|