Skip to content

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.

optional toolsTTL?: BedrockCacheTTL;

Defined in: src/models/bedrock.ts:152

TTL applied to the auto-injected cache point appended after toolConfig.tools.


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: "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)

CacheConfig.strategy