* Tool result cache (within a single turn). * * If the agent calls `read_file path="X"` twice in the same turn (often * happens when it does an analysis pass and then re-reads to edit), the * second call returns the cached result instead of re-reading from disk. * * Scope: per turn. Reset betw
| 17 | */ |
| 18 | |
| 19 | interface CacheEntry { |
| 20 | result: string; |
| 21 | size: number; |
| 22 | hits: number; |
| 23 | } |
| 24 | |
| 25 | export class ToolResultCache { |
| 26 | private cache = new Map<string, CacheEntry>(); |
nothing calls this directly
no outgoing calls
no test coverage detected