From 5cc8c9c2b32fb82a3e895fd6ad45aa78bc418786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Mon, 1 Apr 2024 09:42:04 -0300 Subject: [PATCH] Update executor.py --- src/crewai/agents/executor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crewai/agents/executor.py b/src/crewai/agents/executor.py index c012c9e7c..6e1c13b8b 100644 --- a/src/crewai/agents/executor.py +++ b/src/crewai/agents/executor.py @@ -174,6 +174,7 @@ class CrewAgentExecutor(AgentExecutor): # If the tool chosen is the finishing tool, then we end and return. if isinstance(output, AgentFinish): if self._should_ask_for_human_input: + # Making sure we only ask for it once, so disabling for the next thought loop self._should_ask_for_human_input = False human_feedback = self._should_ask_for_human_input(output.return_values["output"]) action = AgentAction(