Optional mechanismsThe memory mechanisms to run; none when undefined.
Optional embeddingAn 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.
Optional brainThe 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().
The agent's persona: its id is the memory's owner (
agentId), its traits shape encoding.