Class: RailsAgents::Usage

Inherits:
Data
  • Object
show all
Defined in:
lib/rails_agents/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#input_tokensObject (readonly)

Returns the value of attribute input_tokens

Returns:

  • (Object)

    the current value of input_tokens



14
15
16
# File 'lib/rails_agents/message.rb', line 14

def input_tokens
  @input_tokens
end

#output_tokensObject (readonly)

Returns the value of attribute output_tokens

Returns:

  • (Object)

    the current value of output_tokens



14
15
16
# File 'lib/rails_agents/message.rb', line 14

def output_tokens
  @output_tokens
end

Instance Method Details

#totalObject



15
# File 'lib/rails_agents/message.rb', line 15

def total = input_tokens + output_tokens