Class: LiterLlm::ResponseUsage
- Inherits:
-
Object
- Object
- LiterLlm::ResponseUsage
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#input_tokens ⇒ Integer
readonly
Returns the value of attribute input_tokens.
-
#output_tokens ⇒ Integer
readonly
Returns the value of attribute output_tokens.
-
#total_tokens ⇒ Integer
readonly
Returns the value of attribute total_tokens.
Instance Method Summary collapse
-
#initialize ⇒ ResponseUsage
constructor
A new instance of ResponseUsage.
Constructor Details
#initialize ⇒ ResponseUsage
Returns a new instance of ResponseUsage.
678 |
# File 'sig/types.rbs', line 678
def initialize: (?input_tokens: Integer, ?output_tokens: Integer, ?total_tokens: Integer) -> void
|
Instance Attribute Details
#input_tokens ⇒ Integer (readonly)
Returns the value of attribute input_tokens.
674 675 676 |
# File 'sig/types.rbs', line 674 def input_tokens @input_tokens end |
#output_tokens ⇒ Integer (readonly)
Returns the value of attribute output_tokens.
675 676 677 |
# File 'sig/types.rbs', line 675 def output_tokens @output_tokens end |
#total_tokens ⇒ Integer (readonly)
Returns the value of attribute total_tokens.
676 677 678 |
# File 'sig/types.rbs', line 676 def total_tokens @total_tokens end |