From c699f3dcbd013afbf413ef12890d260e2cbabb78 Mon Sep 17 00:00:00 2001 From: Jason Schleifer Date: Mon, 15 Jul 2024 05:56:58 +1200 Subject: [PATCH] set fail_fast to True --- nodes/agent/agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodes/agent/agent.py b/nodes/agent/agent.py index 8010de5..6327f19 100644 --- a/nodes/agent/agent.py +++ b/nodes/agent/agent.py @@ -71,6 +71,7 @@ class gtComfyAgent(Agent): "conversation_memory": conversation_memory or self.conversation_memory, "meta_memory": meta_memory or self.meta_memory, "task_memory": task_memory or self.task_memory, + "fail_fast": True, } new_agent = gtComfyAgent(**update_dict) return new_agent @@ -84,6 +85,7 @@ class gtComfyAgent(Agent): tools=tools, rulesets=rulesets, conversation_memory=conversation_memory, + fail_fast=True, ) return new_agent