From 72256f6c0633a5c630728dca07c81fe32253339a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Mon, 1 Apr 2024 09:39:37 -0300 Subject: [PATCH] Update executor.py --- src/crewai/agents/executor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/crewai/agents/executor.py b/src/crewai/agents/executor.py index 4396c8708..bc46632fe 100644 --- a/src/crewai/agents/executor.py +++ b/src/crewai/agents/executor.py @@ -55,8 +55,9 @@ class CrewAgentExecutor(AgentExecutor): [tool.name for tool in self.tools], excluded_colors=["green", "red"] ) intermediate_steps: List[Tuple[AgentAction, str]] = [] - # Get info about human input from Task - self._human_input = self.task.human_input + # Allowing human input given task setting + if self.task.human_input: + self._human_input = True # Let's start tracking the number of iterations and time elapsed self.iterations = 0 time_elapsed = 0.0