mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-22 03:06:54 +00:00
intervention fix, timed output fix?, dirty json {{ fix, prompt additions
This commit is contained in:
parent
cc19171464
commit
5c592ca71f
10 changed files with 41 additions and 45 deletions
4
agent.py
4
agent.py
|
|
@ -244,10 +244,12 @@ class Agent:
|
|||
msg)
|
||||
|
||||
if self.handle_intervention(): return # wait if paused and handle intervention message if needed
|
||||
|
||||
tool.before_execution(**tool_args)
|
||||
if self.handle_intervention(): return # wait if paused and handle intervention message if needed
|
||||
response = tool.execute(**tool_args)
|
||||
if self.handle_intervention(): return # wait if paused and handle intervention message if needed
|
||||
tool.after_execution(response)
|
||||
if self.handle_intervention(): return # wait if paused and handle intervention message if needed
|
||||
if response.break_loop: return response.message
|
||||
else:
|
||||
msg = files.read_file("prompts/fw.msg_misformat.md")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue