Class: OpenAI::Models::Responses::ResponseUsage::InputTokensDetails::CacheWriteTokensDetails
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseUsage::InputTokensDetails::CacheWriteTokensDetails
- Defined in:
- lib/openai/models/responses/response_usage.rb,
sig/openai/models/responses/response_usage.rbs
Overview
Instance Attribute Summary collapse
-
#ttl_12h_tokens ⇒ Integer
The number of input tokens written with 12-hour retention.
-
#ttl_30m_tokens ⇒ Integer
The number of input tokens written with 30-minute retention.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ CacheWriteTokensDetails
constructor
A new instance of CacheWriteTokensDetails.
- #to_hash ⇒ { :ttl_12h_tokens => Integer, :ttl_30m_tokens => Integer }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ CacheWriteTokensDetails
Returns a new instance of CacheWriteTokensDetails.
107 108 109 110 |
# File 'sig/openai/models/responses/response_usage.rbs', line 107
def initialize: (
ttl_12h_tokens: Integer,
ttl_30m_tokens: Integer
) -> void
|
Instance Attribute Details
#ttl_12h_tokens ⇒ Integer
The number of input tokens written with 12-hour retention.
97 |
# File 'lib/openai/models/responses/response_usage.rb', line 97 required :ttl_12h_tokens, Integer |
#ttl_30m_tokens ⇒ Integer
The number of input tokens written with 30-minute retention.
103 |
# File 'lib/openai/models/responses/response_usage.rb', line 103 required :ttl_30m_tokens, Integer |
Instance Method Details
#to_hash ⇒ { :ttl_12h_tokens => Integer, :ttl_30m_tokens => Integer }
112 113 114 115 |
# File 'sig/openai/models/responses/response_usage.rbs', line 112
def to_hash: -> {
:ttl_12h_tokens => Integer,
:ttl_30m_tokens => Integer
}
|