mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 20:20:42 +00:00
commit b05d44bb4bc9e07cfc0b584ab39e8624bae771fb
Author: frdel <38891707+frdel@users.noreply.github.com>
Date: Sun Nov 17 23:12:00 2024 +0100
searxng, RFC, docker runtime
commit c90fd4026e644d22e6c7dc29639c85eee6026828
Author: frdel <38891707+frdel@users.noreply.github.com>
Date: Sat Nov 16 21:21:49 2024 +0100
Remote function calling
commit f71d45ec7dbff4e2d3209f0efe97804f6e602fe7
Author: frdel <38891707+frdel@users.noreply.github.com>
Date: Fri Nov 15 13:13:09 2024 +0100
Fix for bool arg parsing
commit 936768d1d8efc9060494334b87f400c933d78048
Author: frdel <38891707+frdel@users.noreply.github.com>
Date: Fri Nov 15 13:01:28 2024 +0100
Dynamic runtime args parsing
commit 00c915fc6c1f8f00f8176fbf5b77af32fa312d18
Author: frdel <38891707+frdel@users.noreply.github.com>
Date: Fri Nov 15 12:13:58 2024 +0100
API key fix
commit 504a7f91789caa16578af8bae9b7936a9d7fbbb7
Author: frdel <38891707+frdel@users.noreply.github.com>
Date: Fri Nov 15 11:59:41 2024 +0100
API keys JIT loading
commit 5678a2fce2d333454bb1a2e94ca2b5916d321b41
Author: frdel <38891707+frdel@users.noreply.github.com>
Date: Fri Nov 15 11:27:12 2024 +0100
Update dotenv.py
12 lines
No EOL
477 B
Python
12 lines
No EOL
477 B
Python
from python.helpers.memory import Memory
|
|
from python.helpers.tool import Tool, Response
|
|
|
|
class MemoryForget(Tool):
|
|
|
|
async def execute(self, ids="", **kwargs):
|
|
db = await Memory.get(self.agent)
|
|
ids = [id.strip() for id in ids.split(",") if id.strip()]
|
|
dels = await db.delete_documents_by_ids(ids=ids)
|
|
|
|
result = self.agent.read_prompt("fw.memories_deleted.md", memory_count=len(dels))
|
|
return Response(message=result, break_loop=False) |