import * as plugins from './plugins.js'; /** * Creates middleware that adds Anthropic prompt caching directives. * Marks the last system message and last user message with ephemeral cache control, * reducing input token cost and latency on repeated calls. */ export function createAnthropicCachingMiddleware(options: plugins.ISmartAiCacheOptions = {}): plugins.LanguageModelV4Middleware { return plugins.createSmartAiCachingMiddleware({ ...options, provider: 'anthropic' }); }