Class: Cline::SessionMessage::Metrics
- Inherits:
-
Cline::Schema
- Object
- Shale::Mapper
- Cline::Schema
- Cline::SessionMessage::Metrics
- Defined in:
- lib/cline/session_message.rb
Overview
Metrics in session messages
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.
-
#cost ⇒ Float
Cost of the API call.
-
#input_tokens ⇒ Integer
Input tokens count.
-
#output_tokens ⇒ Integer
Output tokens count.
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.
34 |
# File 'lib/cline/session_message.rb', line 34 attribute :cache_read_tokens, :integer |
#cache_write_tokens ⇒ Integer
Returns Cache write tokens count.
37 |
# File 'lib/cline/session_message.rb', line 37 attribute :cache_write_tokens, :integer |
#cost ⇒ Float
Returns Cost of the API call.
40 |
# File 'lib/cline/session_message.rb', line 40 attribute :cost, :float |
#input_tokens ⇒ Integer
Returns Input tokens count.
28 |
# File 'lib/cline/session_message.rb', line 28 attribute :input_tokens, :integer |
#output_tokens ⇒ Integer
Returns Output tokens count.
31 |
# File 'lib/cline/session_message.rb', line 31 attribute :output_tokens, :integer |