Skip to content

Commit 01b693a

Browse files
committed
Fix remaining query= to text= in 02_long_term_memory.ipynb
The previous script didn't catch all occurrences. Now all search_long_term_memory calls use text= parameter as required by the API.
1 parent 30ea09e commit 01b693a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python-recipes/context-engineering/notebooks/section-3-memory/02_long_term_memory.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
"# Search for preferences\n",
229229
"print(\"Query: 'What does the student prefer?'\\n\")\n",
230230
"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",
232232
" limit=3\n",
233233
")\n",
234234
"\n",
@@ -247,7 +247,7 @@
247247
"# Search for academic information\n",
248248
"print(\"Query: 'What is the student studying?'\\n\")\n",
249249
"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",
251251
" limit=3\n",
252252
")\n",
253253
"\n",
@@ -266,7 +266,7 @@
266266
"# Search for course history\n",
267267
"print(\"Query: 'What courses has the student taken?'\\n\")\n",
268268
"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",
270270
" limit=3\n",
271271
")\n",
272272
"\n",
@@ -371,7 +371,7 @@
371371
"# Get all semantic memories\n",
372372
"print(\"All semantic memories (facts):\\n\")\n",
373373
"results = await memory_client.search_long_term_memory(\n",
374-
" query=\"\", # Empty query returns all\n",
374+
" text=\"\", # Empty query returns all\n",
375375
" memory_type=\"semantic\",\n",
376376
" limit=10\n",
377377
")\n",
@@ -391,7 +391,7 @@
391391
"# Get all episodic memories\n",
392392
"print(\"All episodic memories (events):\\n\")\n",
393393
"results = await memory_client.search_long_term_memory(\n",
394-
" query=\"\",\n",
394+
" text=\"\",\n",
395395
" memory_type=\"episodic\",\n",
396396
" limit=10\n",
397397
")\n",

0 commit comments

Comments
 (0)