Class: OpenAI::Models::Beta::Agents::SessionUpdateParams::PromptCacheOptions

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agents/session_update_params.rb,
sig/openai/models/beta/agents/session_update_params.rbs

Defined Under Namespace

Modules: Ttl

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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(ttl: nil) ⇒ PromptCacheOptions

Returns a new instance of PromptCacheOptions.

Parameters:

  • ttl (defaults to: nil) —

    Minimum lifetime for new prompt cache entries. Defaults to 30 minutes.

  • ttl: (OpenAI::Models::Beta::Agents::SessionUpdateParams::PromptCacheOptions::ttl) (defaults to: nil)


# File 'lib/openai/models/beta/agents/session_update_params.rb', line 225

Instance Attribute Details

#ttl ⇒ OpenAI::Models::Beta::Agents::SessionUpdateParams::PromptCacheOptions::ttl?

Minimum lifetime for new prompt cache entries. Defaults to 30 minutes.

Returns:

  • (OpenAI::Models::Beta::Agents::SessionUpdateParams::PromptCacheOptions::ttl, nil)


223
# File 'lib/openai/models/beta/agents/session_update_params.rb', line 223

optional :ttl, enum: -> { OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions::Ttl }

Instance Method Details

#to_hash ⇒ { ?ttl: OpenAI::Models::Beta::Agents::SessionUpdateParams::PromptCacheOptions::ttl }

Returns:

  • ({ ?ttl: OpenAI::Models::Beta::Agents::SessionUpdateParams::PromptCacheOptions::ttl })


238
239
240
# File 'sig/openai/models/beta/agents/session_update_params.rbs', line 238

def to_hash: -> {
  ?ttl: OpenAI::Models::Beta::Agents::SessionUpdateParams::PromptCacheOptions::ttl
}