CacheConfig
Defined in: src/models/model.ts:49
Configuration for prompt caching.
Properties
Section titled “Properties”strategy
Section titled “strategy”strategy: "auto" | "anthropic";Defined in: src/models/model.ts:56
Caching strategy to use.
- “auto”: Automatically inject cache points at optimal positions based on model ID detection (after tools, after last user message)
- “anthropic”: Force enable Anthropic-style caching (useful for application inference profiles)