docs: fix search method return value handling in integration and example docs (#3208)

This commit is contained in:
cnScarb
2025-08-11 12:16:01 -05:00
committed by GitHub
parent 2307dc8613
commit c2792c6558
15 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ def demonstrate_sync_memory(local_config, sample_messages, sample_preferences, u
results = memory.search(query, user_id=user_id)
if results and "results" in results:
for j, result in enumerate(results):
for j, result in enumerate(results['results']):
print(f"Result {j+1}: {result.get('memory', 'N/A')}")
else:
print("No results found")