Class: OpenAI::Models::Beta::BetaResponseUsage::OutputTokensDetails
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseUsage::OutputTokensDetails
- Defined in:
- lib/openai/models/beta/beta_response_usage.rb,
sig/openai/models/beta/beta_response_usage.rbs
Overview
Instance Attribute Summary collapse
-
#reasoning_tokens ⇒ Integer
The number of reasoning tokens.
Instance Method Summary collapse
-
#initialize ⇒ OutputTokensDetails
constructor
A new instance of OutputTokensDetails.
- #to_hash ⇒ { reasoning_tokens: Integer }
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 ⇒ OutputTokensDetails
Returns a new instance of OutputTokensDetails.
66 |
# File 'sig/openai/models/beta/beta_response_usage.rbs', line 66
def initialize: (reasoning_tokens: Integer) -> void
|
Instance Attribute Details
#reasoning_tokens ⇒ Integer
The number of reasoning tokens.
83 |
# File 'lib/openai/models/beta/beta_response_usage.rb', line 83 required :reasoning_tokens, Integer |
Instance Method Details
#to_hash ⇒ { reasoning_tokens: Integer }
68 |
# File 'sig/openai/models/beta/beta_response_usage.rbs', line 68
def to_hash: -> { reasoning_tokens: Integer }
|