Class: DSPy::LM::Usage
- Inherits:
-
T::Struct
- Object
- T::Struct
- DSPy::LM::Usage
- Extended by:
- T::Sig
- Defined in:
- lib/dspy/lm/usage.rb
Overview
Base class for token usage information
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/dspy/lm/usage.rb', line 16 def to_h { input_tokens: input_tokens, output_tokens: output_tokens, total_tokens: total_tokens } end |