/** * Leaper Agent – Prompt Caching * Anthropic prompt cache control (system_and_3 strategy). */ export interface CacheControl { type: 'ephemeral'; ttl?: '5m' | '1h'; } export interface MessageWithCache { role: string; content: unknown; cache_control?: CacheControl; } export type MessageContent = string | Array<{ type: string; text?: string; cache_control?: CacheControl; [key: string]: unknown; }>; export declare function applyCacheMarker(message: MessageWithCache, ttl?: '5m' | '1h'): MessageWithCache; export declare function applyAnthropicCacheControl(messages: MessageWithCache[], systemPrompt?: string): { messages: MessageWithCache[]; system?: MessageWithCache[]; }; export declare function isCachingAvailable(): boolean; //# sourceMappingURL=prompt-caching.d.ts.map