Agent Zero AI framework
intervention message fix
frdel22ecfd660c7c
diff --git a/agent.py b/agent.pyindex 0b8a09666..de41e097d 100644--- a/agent.py+++ b/agent.py@@ -539,10 +539,8 @@ class Agent:self.intervention_message = "" # reset the intervention messageif progress.strip():await self.hist_add_ai_response(progress)- # format the user intervention template- user_msg = self.read_prompt("fw.intervention.md", user_message=msg)# append the intervention message- await self.hist_add_user_message(user_msg, intervention=True)+ await self.hist_add_user_message(msg, intervention=True)raise InterventionException(msg)async def process_tools(self, msg: str):diff --git a/prompts/default/fw.intervention.md b/prompts/default/fw.intervention.mdindex bd62cd6d1..aeca71e4f 100644--- a/prompts/default/fw.intervention.md+++ b/prompts/default/fw.intervention.md@@ -1 +1,5 @@-{{message}}\ No newline at end of file+```json+{+ "user_intervention": {{message}}+}+```\ No newline at end of file