Class: LlmCostTracker::Cost

Inherits:
Data
  • Object
show all
Defined in:
lib/llm_cost_tracker/cost.rb

Instance Attribute Summary collapse

Instance Attribute Details

#cache_creation_input_costObject (readonly)

Returns the value of attribute cache_creation_input_cost

Returns:

  • (Object)

    the current value of cache_creation_input_cost



4
5
6
# File 'lib/llm_cost_tracker/cost.rb', line 4

def cache_creation_input_cost
  @cache_creation_input_cost
end

#cache_read_input_costObject (readonly)

Returns the value of attribute cache_read_input_cost

Returns:

  • (Object)

    the current value of cache_read_input_cost



4
5
6
# File 'lib/llm_cost_tracker/cost.rb', line 4

def cache_read_input_cost
  @cache_read_input_cost
end

#cached_input_costObject (readonly)

Returns the value of attribute cached_input_cost

Returns:

  • (Object)

    the current value of cached_input_cost



4
5
6
# File 'lib/llm_cost_tracker/cost.rb', line 4

def cached_input_cost
  @cached_input_cost
end

#currencyObject (readonly)

Returns the value of attribute currency

Returns:

  • (Object)

    the current value of currency



4
5
6
# File 'lib/llm_cost_tracker/cost.rb', line 4

def currency
  @currency
end

#input_costObject (readonly)

Returns the value of attribute input_cost

Returns:

  • (Object)

    the current value of input_cost



4
5
6
# File 'lib/llm_cost_tracker/cost.rb', line 4

def input_cost
  @input_cost
end

#output_costObject (readonly)

Returns the value of attribute output_cost

Returns:

  • (Object)

    the current value of output_cost



4
5
6
# File 'lib/llm_cost_tracker/cost.rb', line 4

def output_cost
  @output_cost
end

#total_costObject (readonly)

Returns the value of attribute total_cost

Returns:

  • (Object)

    the current value of total_cost



4
5
6
# File 'lib/llm_cost_tracker/cost.rb', line 4

def total_cost
  @total_cost
end