Class CognitiveWorkingMemory

Cognitive working memory with Baddeley-inspired slot management.

Implements IWorkingMemory for the basic key-value surface (get/set/delete/clear/has/size/getAll), with slot management (phonological loop, visuospatial sketchpad, episodic buffer) 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