Class: Cline::SessionMessage::Metrics

Inherits:
Cline::Schema
  • Object
show all
Defined in:
lib/cline/session_message.rb

Overview

Metrics in session messages

Instance Attribute Summary

Attributes inherited from Cline::Schema

#extra_attributes

Public API collapse

Methods inherited from Cline::Schema

#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash

Instance Method Details

#cache_read_tokensInteger

Returns Cache read tokens count.

Returns:

  • (Integer)

    Cache read tokens count



34
# File 'lib/cline/session_message.rb', line 34

attribute :cache_read_tokens, :integer

#cache_write_tokensInteger

Returns Cache write tokens count.

Returns:

  • (Integer)

    Cache write tokens count



37
# File 'lib/cline/session_message.rb', line 37

attribute :cache_write_tokens, :integer

#costFloat

Returns Cost of the API call.

Returns:

  • (Float)

    Cost of the API call



40
# File 'lib/cline/session_message.rb', line 40

attribute :cost, :float

#input_tokensInteger

Returns Input tokens count.

Returns:

  • (Integer)

    Input tokens count



28
# File 'lib/cline/session_message.rb', line 28

attribute :input_tokens, :integer

#output_tokensInteger

Returns Output tokens count.

Returns:

  • (Integer)

    Output tokens count



31
# File 'lib/cline/session_message.rb', line 31

attribute :output_tokens, :integer