Expand description
Session-scoped cache for deduplicating compressed tool results.
Structs§
- Content
Addressed Dedup - Session-scoped content-addressed history deduplicator.
- Dedup
Entry - Metadata retained for an immutable conversation chunk.
- Dedup
Group - A canonical chunk and the later chunks that can reference it.
- Dedup
Hit - A prior tool result that can be represented by a compact stub.
- Dedup
Stats - Savings produced while normalizing one request’s conversation history.
- Semantic
Dedup - Word-trigram semantic deduplicator for non-identical tool output.
- Tool
Result Cache - Thread-safe cache of compressed tool results for one proxy session.
Constants§
- DEFAULT_
SEMANTIC_ THRESHOLD - Default Jaccard similarity threshold for near-duplicate tool output.
Functions§
- brief_
diff - Summarize line-level changes without embedding a full diff.
- compute_
similarity - Calculate word-trigram Jaccard similarity from
0.0to1.0. - find_
near_ duplicates - Find disjoint groups of later chunks similar to their first occurrence.
Type Aliases§
- Blake3
Hash - BLAKE3 address for one immutable tool-output chunk.