Class: Terret::LLM::Usage

Inherits:
Data
  • Object
show all
Defined in:
lib/terret/llm.rb

Instance Attribute Summary collapse

Instance Attribute Details

#completion_tokensObject (readonly)

Returns the value of attribute completion_tokens

Returns:

  • (Object)

    the current value of completion_tokens



19
20
21
# File 'lib/terret/llm.rb', line 19

def completion_tokens
  @completion_tokens
end

#costObject (readonly)

Returns the value of attribute cost

Returns:

  • (Object)

    the current value of cost



19
20
21
# File 'lib/terret/llm.rb', line 19

def cost
  @cost
end

#prompt_tokensObject (readonly)

Returns the value of attribute prompt_tokens

Returns:

  • (Object)

    the current value of prompt_tokens



19
20
21
# File 'lib/terret/llm.rb', line 19

def prompt_tokens
  @prompt_tokens
end