Expand description
Memory, context, and retrieval for EPIC5.
Provides indexed retrieval over snapshots and memories, decision rationale capture, token-budgeted context assembly, and retention/compaction policies.
Structs§
- Assembled
Context - Assembled context window.
- Compaction
Policy - Policy for memory retention and compaction.
- Compaction
Result - Result of a compaction operation.
- Context
Assembler - Assembles context segments within a token budget.
- Context
Segment - A context segment with estimated token cost.
- Decision
Rationale - A captured decision rationale tied to a run event.
- Memory
Context Artifact - Auditable artifact for memory context state.
- Memory
Entry - Indexed entry (lightweight projection of MemoryRecord).
- Memory
Hit - A relevance-scored memory hit from an index query.
- Memory
Index - In-process memory index backed by a flat list of
MemoryRecord-like entries. - Memory
Query - Query parameters for memory index lookup.
- Rationale
Ledger - Ledger for decision rationales within a run.
Enums§
- Compaction
Strategy - Strategy for compacting old memories.
- Decision
Importance - Severity/importance of a decision.
- Match
Strategy - Match strategy for memory queries.
Functions§
- estimate_
tokens - Estimate token count from text (~4 chars per token heuristic).
- read_
memory_ context_ artifact - Read and verify a memory context artifact.
- write_
memory_ context_ artifact - Persist a memory context artifact with digest verification.