Class: OpenAI::Models::Beta::Threads::Run::Usage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Threads::Run::Usage
- Defined in:
- lib/openai/models/beta/threads/run.rb
Overview
Instance Attribute Summary collapse
-
#completion_tokens ⇒ Integer
Number of completion tokens used over the course of the run.
-
#prompt_tokens ⇒ Integer
Number of prompt tokens used over the course of the run.
-
#total_tokens ⇒ Integer
Total number of tokens used (prompt + completion).
Instance Method Summary collapse
-
#initialize(completion_tokens:, prompt_tokens:, total_tokens:) ⇒ Object
constructor
Usage statistics related to the run.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(completion_tokens:, prompt_tokens:, total_tokens:) ⇒ Object
Usage statistics related to the run. This value will be ‘null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).
|
|
# File 'lib/openai/models/beta/threads/run.rb', line 456
|
Instance Attribute Details
#completion_tokens ⇒ Integer
Number of completion tokens used over the course of the run.
442 |
# File 'lib/openai/models/beta/threads/run.rb', line 442 required :completion_tokens, Integer |
#prompt_tokens ⇒ Integer
Number of prompt tokens used over the course of the run.
448 |
# File 'lib/openai/models/beta/threads/run.rb', line 448 required :prompt_tokens, Integer |
#total_tokens ⇒ Integer
Total number of tokens used (prompt + completion).
454 |
# File 'lib/openai/models/beta/threads/run.rb', line 454 required :total_tokens, Integer |