Class: RailsAgents::Usage
- Inherits:
-
Data
- Object
- Data
- RailsAgents::Usage
- Defined in:
- lib/rails_agents/message.rb
Instance Attribute Summary collapse
-
#input_tokens ⇒ Object
readonly
Returns the value of attribute input_tokens.
-
#output_tokens ⇒ Object
readonly
Returns the value of attribute output_tokens.
Instance Method Summary collapse
Instance Attribute Details
#input_tokens ⇒ Object (readonly)
Returns the value of attribute input_tokens
14 15 16 |
# File 'lib/rails_agents/message.rb', line 14 def input_tokens @input_tokens end |
#output_tokens ⇒ Object (readonly)
Returns the value of attribute output_tokens
14 15 16 |
# File 'lib/rails_agents/message.rb', line 14 def output_tokens @output_tokens end |
Instance Method Details
#total ⇒ Object
15 |
# File 'lib/rails_agents/message.rb', line 15 def total = input_tokens + output_tokens |