mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-30 20:50:21 +00:00
Memory layers - in progress
This commit is contained in:
parent
1d54577237
commit
e4d0536495
43 changed files with 1469 additions and 695 deletions
|
|
@ -24,8 +24,10 @@ class Knowledge(Tool):
|
|||
# duckduckgo search
|
||||
duckduckgo = executor.submit(duckduckgo_search.search, question)
|
||||
|
||||
# memory search
|
||||
future_memory = executor.submit(memory_tool.search, self.agent, question)
|
||||
# manual memory search
|
||||
future_memory_man = executor.submit(memory_tool.search, self.agent, "manual", question)
|
||||
# history memory search
|
||||
# future_memory_man = executor.submit(memory_tool.search, self.agent, "history", question)
|
||||
|
||||
# Wait for both functions to complete
|
||||
try:
|
||||
|
|
@ -41,7 +43,7 @@ class Knowledge(Tool):
|
|||
duckduckgo_result = "DuckDuckGo search failed: " + str(e)
|
||||
|
||||
try:
|
||||
memory_result = future_memory.result()
|
||||
memory_result = future_memory_man.result()
|
||||
except Exception as e:
|
||||
handle_error(e)
|
||||
memory_result = "Memory search failed: " + str(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue