mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-07 03:25:32 +00:00
fix : avoid loading compress of planner agent memory
This commit is contained in:
parent
ff9c1576b6
commit
95f43be2af
@ -23,9 +23,9 @@ class PlannerAgent(Agent):
|
|||||||
"web": BrowserAgent(name, "prompts/base/browser_agent.txt", provider, verbose=False, browser=browser)
|
"web": BrowserAgent(name, "prompts/base/browser_agent.txt", provider, verbose=False, browser=browser)
|
||||||
}
|
}
|
||||||
self.role = {
|
self.role = {
|
||||||
"en": "Research, setup and code",
|
"en": "Complex Task",
|
||||||
"fr": "Recherche, configuration et codage",
|
"fr": "Tache complexe",
|
||||||
"zh": "研究,设置和编码",
|
"zh": "复杂任务",
|
||||||
}
|
}
|
||||||
self.type = "planner_agent"
|
self.type = "planner_agent"
|
||||||
|
|
||||||
|
@ -58,6 +58,8 @@ class Interaction:
|
|||||||
def load_last_session(self):
|
def load_last_session(self):
|
||||||
"""Recover the last session."""
|
"""Recover the last session."""
|
||||||
for agent in self.agents:
|
for agent in self.agents:
|
||||||
|
if agent.type == "planner_agent":
|
||||||
|
continue
|
||||||
agent.memory.load_memory(agent.type)
|
agent.memory.load_memory(agent.type)
|
||||||
|
|
||||||
def save_session(self):
|
def save_session(self):
|
||||||
|
@ -97,7 +97,7 @@ class Transcript:
|
|||||||
return "cuda:0"
|
return "cuda:0"
|
||||||
else:
|
else:
|
||||||
return "cpu"
|
return "cpu"
|
||||||
|
|
||||||
def remove_hallucinations(self, text: str) -> str:
|
def remove_hallucinations(self, text: str) -> str:
|
||||||
"""Remove model hallucinations from the text."""
|
"""Remove model hallucinations from the text."""
|
||||||
# TODO find a better way to do this
|
# TODO find a better way to do this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user