CachingConfig
Defined in the config module.Rust AI Agent SDK Configuration for caching behavior
Fields
| Name | Type | Description |
|---|---|---|
enabled | bool | Enable response caching |
prompt_caching | bool | Enable prompt caching (provider-specific) |
ttl_secs | Option<u64> | Cache TTL in seconds |
Methods
new
disabled
with_prompt_caching
ttl
| Name | Type |
|---|---|
secs | u64 |
Source
View on GitHub
praisonai/src/config.rs at line 643
