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 bool

No description available.

ResponseField Optional[bool]

No description available.

Internal & Generic Methods
  • to_dict: Convert to dictionary.

Usage

python
# Simple enable
    Agent(caching=True)

    # With config
    Agent(caching=CachingConfig(
        enabled=True,
        prompt_caching=True,
    ))

Source

View on GitHub

praisonaiagents/config/feature_configs.py at line 1378


Related Documentation