Class: Google::ADK::ContextCacheConfig
- Inherits:
-
Object
- Object
- Google::ADK::ContextCacheConfig
- Defined in:
- lib/google/adk/context.rb
Overview
Configuration for context caching
Instance Attribute Summary collapse
-
#cache_intervals ⇒ Object
Returns the value of attribute cache_intervals.
-
#min_tokens ⇒ Object
Returns the value of attribute min_tokens.
-
#ttl_seconds ⇒ Object
Returns the value of attribute ttl_seconds.
Instance Method Summary collapse
-
#initialize(min_tokens: 1024, ttl_seconds: 300, cache_intervals: []) ⇒ ContextCacheConfig
constructor
Initialize cache configuration.
Constructor Details
#initialize(min_tokens: 1024, ttl_seconds: 300, cache_intervals: []) ⇒ ContextCacheConfig
Initialize cache configuration
14 15 16 17 18 |
# File 'lib/google/adk/context.rb', line 14 def initialize(min_tokens: 1024, ttl_seconds: 300, cache_intervals: []) @min_tokens = min_tokens @ttl_seconds = ttl_seconds @cache_intervals = cache_intervals end |
Instance Attribute Details
#cache_intervals ⇒ Object
Returns the value of attribute cache_intervals.
7 8 9 |
# File 'lib/google/adk/context.rb', line 7 def cache_intervals @cache_intervals end |
#min_tokens ⇒ Object
Returns the value of attribute min_tokens.
7 8 9 |
# File 'lib/google/adk/context.rb', line 7 def min_tokens @min_tokens end |
#ttl_seconds ⇒ Object
Returns the value of attribute ttl_seconds.
7 8 9 |
# File 'lib/google/adk/context.rb', line 7 def ttl_seconds @ttl_seconds end |