mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-06 19:15:28 +00:00
feat : file agent imrprovement
This commit is contained in:
parent
8922350379
commit
7d67ae2562
BIN
media/exemples/brooo.png
Normal file
BIN
media/exemples/brooo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 147 KiB |
@ -27,13 +27,13 @@ class FileAgent(Agent):
|
|||||||
exec_success = False
|
exec_success = False
|
||||||
prompt += f"\nWork directory: {self.work_dir}"
|
prompt += f"\nWork directory: {self.work_dir}"
|
||||||
self.memory.push('user', prompt)
|
self.memory.push('user', prompt)
|
||||||
|
while exec_success is False:
|
||||||
self.wait_message(speech_module)
|
self.wait_message(speech_module)
|
||||||
animate_thinking("Thinking...", color="status")
|
animate_thinking("Thinking...", color="status")
|
||||||
answer, reasoning = self.llm_request()
|
answer, reasoning = self.llm_request()
|
||||||
exec_success, _ = self.execute_modules(answer)
|
exec_success, _ = self.execute_modules(answer)
|
||||||
answer = self.remove_blocks(answer)
|
answer = self.remove_blocks(answer)
|
||||||
self.last_answer = answer
|
self.last_answer = answer
|
||||||
return answer, reasoning
|
return answer, reasoning
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user