Skip to content

Commit 37cd1ce

Browse files
committed
test(learning): read the memory.store sentence that names the soul's id as the brain's key
Signed-off-by: jddunn <[email protected]>
1 parent 5ffc6a5 commit 37cd1ce

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/api/__tests__/learning-store-and-scopes.e2e.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12158,7 +12158,9 @@ describe('the docs a host reads about it', () => {
1215812158
it("describe memory.store on gmi(), the learning store on its adapter, and agent.learning's host calls", () => {
1215912159
const gmiDoc = doc('docs/GMI.md');
1216012160
expect(gmiDoc).toContain('- **`memory.store`.** Durable memory: `{ path }`, a SQLite file agentos opens, or `{ adapter, brainId? }`');
12161-
expect(gmiDoc).toContain('It needs the learning option and `learning.agentKey`, which names the brain and the learners');
12161+
expect(gmiDoc).toContain(
12162+
"It needs the learning option and a key that names the brain: `learning.agentKey`, or, with a soul, the soul's id (`agentId`, else the slug of its `name`).",
12163+
);
1216212164
expect(gmiDoc).toContain("A store that does not open fails the session's first send naming `memory.store`, before any model call, and the next send tries again.");
1216312165
expect(gmiDoc).toContain('One process serves a SQLite file; several processes share a Postgres database instead, each through an adapter of its own.');
1216412166
expect(gmiDoc).toContain('The manifest\'s `memory_store` loop names the store.');

0 commit comments

Comments
 (0)