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.
767 |
# File 'sig/types.rbs', line 767
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.
763 764 765 |
# File 'sig/types.rbs', line 763 def input_tokens @input_tokens end |
#output_tokens ⇒ Integer (readonly)
Returns the value of attribute output_tokens.
764 765 766 |
# File 'sig/types.rbs', line 764 def output_tokens @output_tokens end |
#total_tokens ⇒ Integer (readonly)
Returns the value of attribute total_tokens.
765 766 767 |
# File 'sig/types.rbs', line 765 def total_tokens @total_tokens end |