Skip to main content

Module llm

Module llm 

Source
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§

ClusterMember
A memory in a consolidation cluster.
CognitiveLlmService
The unified LLM intelligence layer for memory operations.
CommunitySummary
LLM-generated community summary for a cluster of entities.
EntityCandidate
An entity candidate passed to the resolution method.
EntityMergeGroup
A group of entity references that the LLM determined refer to the same thing.
MemorySummary
Lightweight memory summary used as input to judgment methods.
MockLlmJudge
A mock judge that returns a predetermined response. For testing.
TopicLabel
A canonical topic label returned by the LLM.
UserProfile
LLM-generated user profile from accumulated knowledge.

Enums§

ConsolidationDecision
What to do with a cluster of similar memories after consolidation.
ContradictionVerdict
Result of asking the LLM whether two memories contradict each other.
InvalidationVerdict
Result of asking the LLM whether a new memory invalidates an existing one.
LlmJudgeError
Errors that can occur during LLM judgment calls.

Traits§

LlmJudge
Minimal trait for sending a prompt to an LLM and receiving a text response.