Class: Cline::SessionData::Metadata::Usage
- Inherits:
-
Cline::Schema
- Object
- Shale::Mapper
- Cline::Schema
- Cline::SessionData::Metadata::Usage
- Defined in:
- lib/cline/session_data.rb
Overview
Usage statistics
Instance Attribute Summary
Attributes inherited from Cline::Schema
Public API collapse
-
#cache_read_tokens ⇒ Integer
Cache read tokens count.
-
#cache_write_tokens ⇒ Integer
Cache write tokens count.
-
#input_tokens ⇒ Integer
Input tokens count.
-
#output_tokens ⇒ Integer
Output tokens count.
-
#total_cost ⇒ Float
Total cost of the API call.
Methods inherited from Cline::Schema
#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash
Instance Method Details
#cache_read_tokens ⇒ Integer
Returns Cache read tokens count.
51 |
# File 'lib/cline/session_data.rb', line 51 attribute :cache_read_tokens, :integer |
#cache_write_tokens ⇒ Integer
Returns Cache write tokens count.
54 |
# File 'lib/cline/session_data.rb', line 54 attribute :cache_write_tokens, :integer |
#input_tokens ⇒ Integer
Returns Input tokens count.
45 |
# File 'lib/cline/session_data.rb', line 45 attribute :input_tokens, :integer |
#output_tokens ⇒ Integer
Returns Output tokens count.
48 |
# File 'lib/cline/session_data.rb', line 48 attribute :output_tokens, :integer |
#total_cost ⇒ Float
Returns Total cost of the API call.
57 |
# File 'lib/cline/session_data.rb', line 57 attribute :total_cost, :float |