Class: Anthropic::Models::Beta::BetaManagedAgentsSessionUsageEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaManagedAgentsSessionUsageEvent
- Defined in:
- lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb,
sig/anthropic/models/beta/beta_managed_agents_session_usage_event.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#budget ⇒ Anthropic::Models::Beta::BetaManagedAgentsBudgetLimit?
The session's configured budget at the snapshot time, or null when the session has no budget.
-
#id ⇒ String
Unique identifier for this event.
-
#processed_at ⇒ Time
Timestamp when the snapshot was taken.
- #type ⇒ Symbol, Anthropic::Models::Beta::BetaManagedAgentsSessionUsageEvent::Type
-
#usage ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionUsageSnapshot
The session's cumulative usage at the snapshot time.
Instance Method Summary collapse
-
#initialize(id:, processed_at:, type:, usage:, budget: nil) ⇒ void
constructor
Periodic snapshot of the session's cumulative usage and tracked list cost.
- #to_hash ⇒ {
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:, processed_at:, type:, usage:, budget: nil) ⇒ void
Periodic snapshot of the session's cumulative usage and tracked list cost.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaManagedAgentsSessionUsageEvent for more details.
|
|
# File 'lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb', line 37
|
Instance Attribute Details
#budget ⇒ Anthropic::Models::Beta::BetaManagedAgentsBudgetLimit?
The session's configured budget at the snapshot time, or null when the session has no budget.
35 |
# File 'lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb', line 35 optional :budget, -> { Anthropic::Beta::BetaManagedAgentsBudgetLimit }, nil?: true |
#id ⇒ String
Unique identifier for this event.
11 |
# File 'lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb', line 11 required :id, String |
#processed_at ⇒ Time
Timestamp when the snapshot was taken.
17 |
# File 'lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb', line 17 required :processed_at, Time |
#type ⇒ Symbol, Anthropic::Models::Beta::BetaManagedAgentsSessionUsageEvent::Type
22 |
# File 'lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb', line 22 required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsSessionUsageEvent::Type } |
#usage ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionUsageSnapshot
The session's cumulative usage at the snapshot time.
28 |
# File 'lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb', line 28 required :usage, -> { Anthropic::Beta::Sessions::BetaManagedAgentsSessionUsageSnapshot } |
Instance Method Details
#to_hash ⇒ {
34 |
# File 'sig/anthropic/models/beta/beta_managed_agents_session_usage_event.rbs', line 34
def to_hash: -> {
|