Skip to content

Commit 4d6c4f0

Browse files
committed
fix(memory): add perspectiveSource to ICognitiveMemoryManager.encode interface
CI build failed because the public ICognitiveMemoryManager interface was missing the perspectiveSource option I added to the class implementation. AgentMemory.recall types against the interface, so TypeScript refused the perspectiveSource property when threading through to manager.encode. Add the option to the interface so the two signatures match.
1 parent e6e38d6 commit 4d6c4f0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/cognition/memory/CognitiveMemoryManager.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ export interface ICognitiveMemoryManager {
111111
contentSentiment?: number;
112112
tags?: string[];
113113
entities?: string[];
114+
/**
115+
* When encoding a subjective trace from {@link PerspectiveObserver},
116+
* thread the source-event identifiers through so the resulting
117+
* {@link MemoryTrace} carries the `MechanismMetadata` fields that
118+
* `applyReconsolidation` reads at retrieval time.
119+
*/
120+
perspectiveSource?: { eventId: string; eventHash: string };
114121
}
115122
): Promise<MemoryTrace>;
116123

0 commit comments

Comments
 (0)