MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / CacheEntry

Interface CacheEntry

src/utils/tool-cache.ts:19–23  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

17 */
18
19interface CacheEntry {
20 result: string;
21 size: number;
22 hits: number;
23}
24
25export class ToolResultCache {
26 private cache = new Map<string, CacheEntry>();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected