|
228 | 228 | "# Search for preferences\n", |
229 | 229 | "print(\"Query: 'What does the student prefer?'\\n\")\n", |
230 | 230 | "results = await memory_client.search_long_term_memory(\n", |
231 | | - " query=\"What does the student prefer?\",\n", |
| 231 | + " text=\"What does the student prefer?\",\n", |
232 | 232 | " limit=3\n", |
233 | 233 | ")\n", |
234 | 234 | "\n", |
|
247 | 247 | "# Search for academic information\n", |
248 | 248 | "print(\"Query: 'What is the student studying?'\\n\")\n", |
249 | 249 | "results = await memory_client.search_long_term_memory(\n", |
250 | | - " query=\"What is the student studying?\",\n", |
| 250 | + " text=\"What is the student studying?\",\n", |
251 | 251 | " limit=3\n", |
252 | 252 | ")\n", |
253 | 253 | "\n", |
|
266 | 266 | "# Search for course history\n", |
267 | 267 | "print(\"Query: 'What courses has the student taken?'\\n\")\n", |
268 | 268 | "results = await memory_client.search_long_term_memory(\n", |
269 | | - " query=\"What courses has the student taken?\",\n", |
| 269 | + " text=\"What courses has the student taken?\",\n", |
270 | 270 | " limit=3\n", |
271 | 271 | ")\n", |
272 | 272 | "\n", |
|
371 | 371 | "# Get all semantic memories\n", |
372 | 372 | "print(\"All semantic memories (facts):\\n\")\n", |
373 | 373 | "results = await memory_client.search_long_term_memory(\n", |
374 | | - " query=\"\", # Empty query returns all\n", |
| 374 | + " text=\"\", # Empty query returns all\n", |
375 | 375 | " memory_type=\"semantic\",\n", |
376 | 376 | " limit=10\n", |
377 | 377 | ")\n", |
|
391 | 391 | "# Get all episodic memories\n", |
392 | 392 | "print(\"All episodic memories (events):\\n\")\n", |
393 | 393 | "results = await memory_client.search_long_term_memory(\n", |
394 | | - " query=\"\",\n", |
| 394 | + " text=\"\",\n", |
395 | 395 | " memory_type=\"episodic\",\n", |
396 | 396 | " limit=10\n", |
397 | 397 | ")\n", |
|
0 commit comments