Class: HermesAgent::Client::Entities::RunUsage
- Inherits:
-
HermesAgent::Client::Entity
- Object
- HermesAgent::Client::Entity
- HermesAgent::Client::Entities::RunUsage
- Defined in:
- lib/hermes_agent/client/entities/run.rb
Overview
The token usage reported for a Run (HermesAgent::Client::Entities::Run#usage). Like the Responses
API (and unlike chat completions), runs report
input_tokens/output_tokens rather than
prompt_tokens/completion_tokens.
Instance Method Summary collapse
-
#input_tokens ⇒ Integer?
The number of tokens in the input.
-
#output_tokens ⇒ Integer?
The number of tokens in the generated output.
-
#total_tokens ⇒ Integer?
The total number of tokens used (input plus output).
Methods inherited from HermesAgent::Client::Entity
Instance Method Details
#input_tokens ⇒ Integer?
The number of tokens in the input.
19 20 21 |
# File 'lib/hermes_agent/client/entities/run.rb', line 19 def input_tokens self["input_tokens"] end |
#output_tokens ⇒ Integer?
The number of tokens in the generated output.
27 28 29 |
# File 'lib/hermes_agent/client/entities/run.rb', line 27 def output_tokens self["output_tokens"] end |
#total_tokens ⇒ Integer?
The total number of tokens used (input plus output).
35 36 37 |
# File 'lib/hermes_agent/client/entities/run.rb', line 35 def total_tokens self["total_tokens"] end |