Class: AgentHarness::TokenTracker::TokenEvent
- Inherits:
-
Struct
- Object
- Struct
- AgentHarness::TokenTracker::TokenEvent
- Defined in:
- lib/agent_harness/token_tracker.rb
Overview
Token usage event structure
Instance Attribute Summary collapse
-
#input_tokens ⇒ Object
Returns the value of attribute input_tokens.
-
#model ⇒ Object
Returns the value of attribute model.
-
#output_tokens ⇒ Object
Returns the value of attribute output_tokens.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#total_tokens ⇒ Object
Returns the value of attribute total_tokens.
Instance Attribute Details
#input_tokens ⇒ Object
Returns the value of attribute input_tokens
23 24 25 |
# File 'lib/agent_harness/token_tracker.rb', line 23 def input_tokens @input_tokens end |
#model ⇒ Object
Returns the value of attribute model
23 24 25 |
# File 'lib/agent_harness/token_tracker.rb', line 23 def model @model end |
#output_tokens ⇒ Object
Returns the value of attribute output_tokens
23 24 25 |
# File 'lib/agent_harness/token_tracker.rb', line 23 def output_tokens @output_tokens end |
#provider ⇒ Object
Returns the value of attribute provider
23 24 25 |
# File 'lib/agent_harness/token_tracker.rb', line 23 def provider @provider end |
#request_id ⇒ Object
Returns the value of attribute request_id
23 24 25 |
# File 'lib/agent_harness/token_tracker.rb', line 23 def request_id @request_id end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
23 24 25 |
# File 'lib/agent_harness/token_tracker.rb', line 23 def @timestamp end |
#total_tokens ⇒ Object
Returns the value of attribute total_tokens
23 24 25 |
# File 'lib/agent_harness/token_tracker.rb', line 23 def total_tokens @total_tokens end |