Class: AgentHarness::TokenUsageTracker::QuotaConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/agent_harness/token_usage_tracker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#limitObject

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



30
31
32
# File 'lib/agent_harness/token_usage_tracker.rb', line 30

def limit
  @limit
end

#reset_atObject

Returns the value of attribute reset_at

Returns:

  • (Object)

    the current value of reset_at



30
31
32
# File 'lib/agent_harness/token_usage_tracker.rb', line 30

def reset_at
  @reset_at
end

#unitObject

Returns the value of attribute unit

Returns:

  • (Object)

    the current value of unit



30
31
32
# File 'lib/agent_harness/token_usage_tracker.rb', line 30

def unit
  @unit
end

Instance Method Details

#configured?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/agent_harness/token_usage_tracker.rb', line 31

def configured?
  !limit.nil?
end