Class: Anthropic::Models::Organization::OrganizationRateLimitModelGroup

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/organization_rate_limit_model_group.rb,
sig/anthropic/models/organization/organization_rate_limit_model_group.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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 ⇒ void



16
# File 'sig/anthropic/models/organization/organization_rate_limit_model_group.rbs', line 16

def initialize: (

Instance Attribute Details

#display_name ⇒ String

Human-readable name of the model group (for example, Claude Sonnet 4.x). For display only; it may change.

Parameters:

  • value (String)

Returns:

  • (String)


20
# File 'lib/anthropic/models/organization/organization_rate_limit_model_group.rb', line 20

required :display_name, String

#id ⇒ String

Opaque identifier of the rate-limit group (for example, rlg_01VPTCmyiu5ZLsWkcxYG2pY8). It is the same in every organization and never changes, unlike the entry's own identifier, which differs per organization.

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/organization/organization_rate_limit_model_group.rb', line 13

required :id, String

#type ⇒ Symbol, :model_group

Always model_group: a family of models.

Parameters:

  • value (:model_group)

Returns:

  • (Symbol, :model_group)


26
# File 'lib/anthropic/models/organization/organization_rate_limit_model_group.rb', line 26

required :type, const: :model_group

Instance Method Details

#to_hash ⇒ { id: String, display_name: String, type: :model_group }

Returns:

  • ({ id: String, display_name: String, type: :model_group })


22
# File 'sig/anthropic/models/organization/organization_rate_limit_model_group.rbs', line 22

def to_hash: -> { id: String, display_name: String, type: :model_group }