Class: Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitUpdateValue

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rb,
sig/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.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 ⇒ WorkspaceRateLimitUpdateValue

Returns a new instance of WorkspaceRateLimitUpdateValue.

Parameters:

  • type: (Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type)
  • value: (Integer, nil)


18
19
20
21
# File 'sig/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbs', line 18

def initialize: (
  type: Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type,
  value: Integer?
) -> void

Instance Attribute Details

#type ⇒ Symbol, Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitType

Rate limiter type. input_tokens_per_minute counts every input token, cache reads included. input_tokens_per_minute_cache_aware does not count cache reads, and on current models the organization's input-token limit usually has this type. A workspace limit of either type applies alongside the organization's limit, not in place of it. Because cache reads count toward an input_tokens_per_minute limit, it can reject requests that read mostly from the cache while the organization's limit still has room.

Parameters:

  • value (Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type)

Returns:



18
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rb', line 18

required :type, enum: -> { Anthropic::Organization::Workspaces::WorkspaceRateLimitType }

#value ⇒ Integer?

New limit value. Set to null to clear the workspace override and fall back to the organization limit.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


25
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rb', line 25

required :value, Integer, nil?: true

Instance Method Details

#to_hash ⇒ { type: Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type, value: Integer? }

Returns:

  • ({ type: Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type, value: Integer? })


23
24
25
26
# File 'sig/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbs', line 23

def to_hash: -> {
  type: Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type,
  value: Integer?
}