mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-14 08:21:43 +00:00
Fix await in memory_save
This commit is contained in:
parent
a812f84072
commit
2502044d7f
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ class MemorySave(Tool):
|
|||
metadata = {"area": area, **kwargs}
|
||||
|
||||
db = await Memory.get(self.agent)
|
||||
id = db.insert_text(text, metadata)
|
||||
id = await db.insert_text(text, metadata)
|
||||
|
||||
result = self.agent.read_prompt("fw.memory_saved.md", memory_id=id)
|
||||
return Response(message=result, break_loop=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue