Class: Cline::SessionData::Metadata::Usage

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

Overview

Usage statistics

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



51
# File 'lib/cline/session_data.rb', line 51

attribute :cache_read_tokens, :integer

#cache_write_tokensInteger

Returns Cache write tokens count.

Returns:

  • (Integer)

    Cache write tokens count



54
# File 'lib/cline/session_data.rb', line 54

attribute :cache_write_tokens, :integer

#input_tokensInteger

Returns Input tokens count.

Returns:

  • (Integer)

    Input tokens count



45
# File 'lib/cline/session_data.rb', line 45

attribute :input_tokens, :integer

#output_tokensInteger

Returns Output tokens count.

Returns:

  • (Integer)

    Output tokens count



48
# File 'lib/cline/session_data.rb', line 48

attribute :output_tokens, :integer

#total_costFloat

Returns Total cost of the API call.

Returns:

  • (Float)

    Total cost of the API call



57
# File 'lib/cline/session_data.rb', line 57

attribute :total_cost, :float