From 1774fe8561d2e50387ff4195be260f438c55f227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Mon, 1 Apr 2024 09:44:11 -0300 Subject: [PATCH] Update executor.py --- src/crewai/agents/executor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crewai/agents/executor.py b/src/crewai/agents/executor.py index 6e1c13b8b..0b075ff4c 100644 --- a/src/crewai/agents/executor.py +++ b/src/crewai/agents/executor.py @@ -176,7 +176,7 @@ class CrewAgentExecutor(AgentExecutor): 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"]) + human_feedback = self._ask_human_input(output.return_values["output"]) action = AgentAction( tool="Human Input", tool_input=human_feedback, log=output.log ) @@ -224,7 +224,7 @@ class CrewAgentExecutor(AgentExecutor): ) yield AgentStep(action=agent_action, observation=observation) - def _should_ask_for_human_input(self, final_answer: dict) -> str: + def _ask_human_input(self, final_answer: dict) -> str: """Get human input.""" return input( self._i18n.slice("getting_input").format(final_answer=final_answer)