fix(docs): use tools=[] in BaseMemory example (#772)
The automatic memory example referenced an undefined `tools` variable. Since HindsightMemory handles retain/recall transparently, no tools are needed — use an empty list. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a3e458ad43
commit
7af01e35e9
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ async def main():
|
|||
mission="Track user preferences and project context",
|
||||
)
|
||||
|
||||
agent = ReActAgent(tools=tools, llm=OpenAI(model="gpt-4o"), memory=memory)
|
||||
agent = ReActAgent(tools=[], llm=OpenAI(model="gpt-4o"), memory=memory)
|
||||
response = await agent.run("Remember that I prefer dark mode")
|
||||
print(response)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue