Class: Anthropic::Models::Organization::OrganizationRateLimit
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::OrganizationRateLimit
- Defined in:
- lib/anthropic/models/organization/organization_rate_limit.rb,
sig/anthropic/models/organization/organization_rate_limit.rbs
Overview
Defined Under Namespace
Modules: Group
Instance Attribute Summary collapse
-
#group ⇒ Anthropic::Models::Organization::OrganizationRateLimitModelGroup, ...
The rate-limit group this entry's limits apply to.
-
#id ⇒ String
Identifier of this rate-limit entry.
-
#limits ⇒ Array<Anthropic::Models::Organization::OrganizationRateLimitValue>
The limiter values that apply to this group.
-
#models ⇒ Array<String>?
Model names this entry's limits apply to, including aliases.
-
#type ⇒ Symbol, :rate_limit
Object type.
Instance Method Summary collapse
-
#initialize(id:, group:, limits:, models:, type: :rate_limit) ⇒ OrganizationRateLimit
constructor
Some parameter documentations has been truncated, see OrganizationRateLimit for more details.
- #to_hash ⇒ { id: String, group: Anthropic::Models::Organization::OrganizationRateLimit::group, limits: ::Array[Anthropic::Organization::OrganizationRateLimitValue], models: ::Array[String]?, type: :rate_limit }
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(id:, group:, limits:, models:, type: :rate_limit) ⇒ OrganizationRateLimit
Some parameter documentations has been truncated, see Anthropic::Models::Organization::OrganizationRateLimit for more details.
|
|
# File 'lib/anthropic/models/organization/organization_rate_limit.rb', line 43
|
Instance Attribute Details
#group ⇒ Anthropic::Models::Organization::OrganizationRateLimitModelGroup, ...
The rate-limit group this entry's limits apply to.
20 |
# File 'lib/anthropic/models/organization/organization_rate_limit.rb', line 20 required :group, union: -> { Anthropic::Organization::OrganizationRateLimit::Group } |
#id ⇒ String
Identifier of this rate-limit entry. It is stable within the organization and
differs between organizations; the group's own identifier is group.id. Pass it
as rate_limit_id to set a workspace's overrides for this group.
14 |
# File 'lib/anthropic/models/organization/organization_rate_limit.rb', line 14 required :id, String |
#limits ⇒ Array<Anthropic::Models::Organization::OrganizationRateLimitValue>
The limiter values that apply to this group.
26 27 |
# File 'lib/anthropic/models/organization/organization_rate_limit.rb', line 26 required :limits, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Organization::OrganizationRateLimitValue] } |
#models ⇒ Array<String>?
Model names this entry's limits apply to, including aliases. null when
group.type is not "model_group". The list covers the models your
organization has access to, so it can differ between organizations.
35 |
# File 'lib/anthropic/models/organization/organization_rate_limit.rb', line 35 required :models, Anthropic::Internal::Type::ArrayOf[String], nil?: true |
#type ⇒ Symbol, :rate_limit
Object type. Always rate_limit for organization rate-limit entries.
41 |
# File 'lib/anthropic/models/organization/organization_rate_limit.rb', line 41 required :type, const: :rate_limit |
Instance Method Details
#to_hash ⇒ { id: String, group: Anthropic::Models::Organization::OrganizationRateLimit::group, limits: ::Array[Anthropic::Organization::OrganizationRateLimitValue], models: ::Array[String]?, type: :rate_limit }
34 35 36 37 38 39 40 |
# File 'sig/anthropic/models/organization/organization_rate_limit.rbs', line 34
def to_hash: -> {
id: String,
group: Anthropic::Models::Organization::OrganizationRateLimit::group,
limits: ::Array[Anthropic::Organization::OrganizationRateLimitValue],
models: ::Array[String]?,
type: :rate_limit
}
|