|
161 | 161 | "\n", |
162 | 162 | "# Step 1: Load working memory (empty for first turn)\n", |
163 | 163 | "print(\"\\n1. Loading working memory...\")\n", |
164 | | - "_, working_memory = await memory_client.get_or_create_working_memory(\n", |
165 | | - " session_id=session_id_1,\n", |
166 | | - " user_id=\"demo_user\",\n", |
167 | | - " model_name=\"gpt-4o\"\n", |
168 | | - ")\n", |
169 | | - "print(f\" Messages in working memory: {len(working_memory.messages) if working_memory else 0}\")\n", |
| 164 | + "# For first turn, working memory is empty\n", |
| 165 | + "working_memory = None\n", |
| 166 | + "print(f\" Messages in working memory: 0 (new session)\")\n", |
170 | 167 | "\n", |
171 | 168 | "# Step 2: Search long-term memory (empty for first interaction)\n", |
172 | 169 | "print(\"\\n2. Searching long-term memory...\")\n", |
|
366 | 363 | "\n", |
367 | 364 | "# Step 1: Load working memory (empty - new session)\n", |
368 | 365 | "print(\"\\n1. Loading working memory...\")\n", |
369 | | - "_, working_memory = await memory_client.get_or_create_working_memory(\n", |
370 | | - " session_id=session_id_2,\n", |
371 | | - " user_id=\"demo_user\",\n", |
372 | | - " model_name=\"gpt-4o\"\n", |
373 | | - ")\n", |
374 | | - "print(f\" Messages in working memory: {len(working_memory.messages) if working_memory else 0}\")\n", |
| 366 | + "# For new session, working memory is empty\n", |
| 367 | + "working_memory = None\n", |
| 368 | + "print(f\" Messages in working memory: 0\")\n", |
375 | 369 | "print(\" (Empty - this is a new session)\")\n", |
376 | 370 | "\n", |
377 | 371 | "# Step 2: Search long-term memory (has data from Session 1)\n", |
|
0 commit comments