docs: fix search method return value handling in integration and example docs (#3208)
This commit is contained in:
@@ -128,7 +128,7 @@ def chat_user(
|
||||
if user_input:
|
||||
# Search for relevant memories
|
||||
memories = client.search(user_input, user_id=user_id)
|
||||
memory_context = "\n".join(f"- {m['memory']}" for m in memories)
|
||||
memory_context = "\n".join(f"- {m['memory']}" for m in memories.get('results', []))
|
||||
|
||||
# Construct the prompt
|
||||
prompt = f"""
|
||||
|
||||
Reference in New Issue
Block a user