Expand description
LLM powered cognitive judgment for memory operations.
§CognitiveLlmService: LLM powered judgment for memory operations
Provides intelligent decision making for temporal invalidation, contradiction detection, entity resolution, memory consolidation, and topic canonicalization. When no LLM is configured the caller falls back to heuristic paths.
Structs§
- Cluster
Member - A memory in a consolidation cluster.
- Cognitive
LlmService - The unified LLM intelligence layer for memory operations.
- Community
Summary - LLM-generated community summary for a cluster of entities.
- Entity
Candidate - An entity candidate passed to the resolution method.
- Entity
Merge Group - A group of entity references that the LLM determined refer to the same thing.
- Memory
Summary - Lightweight memory summary used as input to judgment methods.
- Mock
LlmJudge - A mock judge that returns a predetermined response. For testing.
- Topic
Label - A canonical topic label returned by the LLM.
- User
Profile - LLM-generated user profile from accumulated knowledge.
Enums§
- Consolidation
Decision - What to do with a cluster of similar memories after consolidation.
- Contradiction
Verdict - Result of asking the LLM whether two memories contradict each other.
- Invalidation
Verdict - Result of asking the LLM whether a new memory invalidates an existing one.
- LlmJudge
Error - Errors that can occur during LLM judgment calls.
Traits§
- LlmJudge
- Minimal trait for sending a prompt to an LLM and receiving a text response.