Class CognitiveWorkingMemory

Cognitive working memory with Baddeley-inspired slot management.

Also implements IWorkingMemory for backward compatibility — get/set/delete/clear/has/size/getAll delegate to the backing store, while slot management is layered on top.

Implements

  • IWorkingMemory

Constructors

Methods

  • Focus attention on a trace, adding it to working memory. If at capacity, the lowest-activation slot is evicted first.

    Parameters

    • traceId: string
    • initialActivation: number = 0.8

    Returns Promise<string>

    The slot ID assigned to this trace.

Properties

id: string