Class: OpenAI::Models::Responses::Response::PromptCacheOptions
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::Response::PromptCacheOptions
- Defined in:
- lib/openai/models/responses/response.rb,
sig/openai/models/responses/response.rbs
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#mode ⇒ Symbol, OpenAI::Models::Responses::Response::PromptCacheOptions::Mode
Whether implicit prompt-cache breakpoints were enabled.
-
#ttl ⇒ Symbol, OpenAI::Models::Responses::Response::PromptCacheOptions::Ttl
The minimum lifetime applied to each cache breakpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mode:, ttl:) ⇒ Object
constructor
The prompt-caching options that were applied to the response.
- #to_hash ⇒ {
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(mode:, ttl:) ⇒ Object
The prompt-caching options that were applied to the response. Supported for
gpt-5.6 and later models.
|
|
# File 'lib/openai/models/responses/response.rb', line 835
|
Instance Attribute Details
#mode ⇒ Symbol, OpenAI::Models::Responses::Response::PromptCacheOptions::Mode
Whether implicit prompt-cache breakpoints were enabled.
827 |
# File 'lib/openai/models/responses/response.rb', line 827 required :mode, enum: -> { OpenAI::Responses::Response::PromptCacheOptions::Mode } |
#ttl ⇒ Symbol, OpenAI::Models::Responses::Response::PromptCacheOptions::Ttl
The minimum lifetime applied to each cache breakpoint.
833 |
# File 'lib/openai/models/responses/response.rb', line 833 required :ttl, enum: -> { OpenAI::Responses::Response::PromptCacheOptions::Ttl } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/responses/response.rb', line 852
|
Instance Method Details
#to_hash ⇒ {
488 |
# File 'sig/openai/models/responses/response.rbs', line 488
def to_hash: -> {
|