BedrockCacheConfig
Defined in: src/models/bedrock.ts:150
Bedrock-specific prompt-caching configuration. Narrows the TTL fields onto the common CacheConfig for the Bedrock provider.
Extends
Section titled “Extends”Properties
Section titled “Properties”toolsTTL?
Section titled “toolsTTL?”optional toolsTTL?: BedrockCacheTTL;Defined in: src/models/bedrock.ts:152
TTL applied to the auto-injected cache point appended after toolConfig.tools.
messagesTTL?
Section titled “messagesTTL?”optional messagesTTL?: BedrockCacheTTL;Defined in: src/models/bedrock.ts:155
TTL applied to the auto-injected cache point appended to the last user message.
strategy
Section titled “strategy”strategy: "auto" | "anthropic";Defined in: src/models/model.ts:76
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)