Caching Config • AI Agent SDK
CachingConfig: Configuration for caching behavior.
CachingConfig
Defined in the Feature Configs module.
AI Agent
Configuration for caching behavior.
Consolidates: cache, prompt_caching
Properties
ResponseField
boolNo description available.
ResponseField
Optional[bool]No description available.
Internal & Generic Methods
- to_dict: Convert to dictionary.
Usage
# Simple enable
Agent(caching=True)
# With config
Agent(caching=CachingConfig(
enabled=True,
prompt_caching=True,
))Source
View on GitHubpraisonaiagents/config/feature_configs.py at line 1378