Class: Anthropic::Models::Beta::BetaManagedAgentsCacheCreationUsage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaManagedAgentsCacheCreationUsage
- Defined in:
- lib/anthropic/models/beta/beta_managed_agents_cache_creation_usage.rb,
sig/anthropic/models/beta/beta_managed_agents_cache_creation_usage.rbs
Instance Attribute Summary collapse
-
#ephemeral_1h_input_tokens ⇒ Integer?
Tokens used to create 1-hour ephemeral cache entries.
-
#ephemeral_5m_input_tokens ⇒ Integer?
Tokens used to create 5-minute ephemeral cache entries.
Instance Method Summary collapse
-
#initialize ⇒ BetaManagedAgentsCacheCreationUsage
constructor
A new instance of BetaManagedAgentsCacheCreationUsage.
- #to_hash ⇒ { :ephemeral_1h_input_tokens => Integer, :ephemeral_5m_input_tokens => Integer }
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 ⇒ BetaManagedAgentsCacheCreationUsage
Returns a new instance of BetaManagedAgentsCacheCreationUsage.
21 22 23 24 |
# File 'sig/anthropic/models/beta/beta_managed_agents_cache_creation_usage.rbs', line 21
def initialize: (
?ephemeral_1h_input_tokens: Integer,
?ephemeral_5m_input_tokens: Integer
) -> void
|
Instance Attribute Details
#ephemeral_1h_input_tokens ⇒ Integer?
Tokens used to create 1-hour ephemeral cache entries.
11 |
# File 'lib/anthropic/models/beta/beta_managed_agents_cache_creation_usage.rb', line 11 optional :ephemeral_1h_input_tokens, Integer |
#ephemeral_5m_input_tokens ⇒ Integer?
Tokens used to create 5-minute ephemeral cache entries.
17 |
# File 'lib/anthropic/models/beta/beta_managed_agents_cache_creation_usage.rb', line 17 optional :ephemeral_5m_input_tokens, Integer |
Instance Method Details
#to_hash ⇒ { :ephemeral_1h_input_tokens => Integer, :ephemeral_5m_input_tokens => Integer }
26 27 28 29 |
# File 'sig/anthropic/models/beta/beta_managed_agents_cache_creation_usage.rbs', line 26
def to_hash: -> {
:ephemeral_1h_input_tokens => Integer,
:ephemeral_5m_input_tokens => Integer
}
|