mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-05 02:25:27 +00:00
fix : reset of blocks
This commit is contained in:
parent
de315a43a1
commit
101c103aeb
@ -248,7 +248,6 @@ class Agent():
|
|||||||
answer = "I will execute:\n" + answer # there should always be a text before blocks for the function that display answer
|
answer = "I will execute:\n" + answer # there should always be a text before blocks for the function that display answer
|
||||||
|
|
||||||
self.success = True
|
self.success = True
|
||||||
self.blocks_result = []
|
|
||||||
for name, tool in self.tools.items():
|
for name, tool in self.tools.items():
|
||||||
feedback = ""
|
feedback = ""
|
||||||
blocks, save_path = tool.load_exec_block(answer)
|
blocks, save_path = tool.load_exec_block(answer)
|
||||||
|
@ -46,7 +46,7 @@ class CoderAgent(Agent):
|
|||||||
async def process(self, prompt, speech_module) -> str:
|
async def process(self, prompt, speech_module) -> str:
|
||||||
answer = ""
|
answer = ""
|
||||||
attempt = 0
|
attempt = 0
|
||||||
max_attempts = 4
|
max_attempts = 5
|
||||||
prompt = self.add_sys_info_prompt(prompt)
|
prompt = self.add_sys_info_prompt(prompt)
|
||||||
self.memory.push('user', prompt)
|
self.memory.push('user', prompt)
|
||||||
clarify_trigger = "REQUEST_CLARIFICATION"
|
clarify_trigger = "REQUEST_CLARIFICATION"
|
||||||
|
@ -140,6 +140,11 @@ class Interaction:
|
|||||||
self.last_query = query
|
self.last_query = query
|
||||||
return query
|
return query
|
||||||
|
|
||||||
|
def set_query(self, query: str) -> None:
|
||||||
|
"""Set the query"""
|
||||||
|
self.is_active = True
|
||||||
|
self.last_query = query
|
||||||
|
|
||||||
async def think(self) -> bool:
|
async def think(self) -> bool:
|
||||||
"""Request AI agents to process the user input."""
|
"""Request AI agents to process the user input."""
|
||||||
push_last_agent_memory = False
|
push_last_agent_memory = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user