| 22 | } |
| 23 | |
| 24 | export interface PromptCache { |
| 25 | get(key: string): Promise<CacheEntry | null>; |
| 26 | put(key: string, prompt_name: string, model_id: string, value: unknown, ttl_ms: number, usage: { prompt_tokens?: number; completion_tokens?: number; cost_usd?: number }): Promise<void>; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Canonical-JSON stringify: keys are sorted at every level so two |
no outgoing calls
no test coverage detected