Interface AgentCognitiveMemoryOptions

interface AgentCognitiveMemoryOptions {
    persona: IPersonaDefinition;
    memory: MemoryConfig;
    mechanisms?: CognitiveMechanismsConfig;
    embeddingManager?: IEmbeddingManager;
    brain?: Brain;
}

Properties

The agent's persona: its id is the memory's owner (agentId), its traits shape encoding.

memory: MemoryConfig

The memory mechanisms to run; none when undefined.

embeddingManager?: IEmbeddingManager

An embedding manager to use instead of one built from memory.embedding (tests, and hosts that own one). The caller keeps ownership: close() does not shut it down.

brain?: Brain

The Brain memory files into (memory.store, from openAgentMemoryBrain): the memory hydrates from it and writes each trace to it, and an archive over its adapter keeps a gist's original. The caller closes it, after the memory's close().