Update executor.py

This commit is contained in:
João Moura
2024-04-01 09:42:04 -03:00
committed by GitHub
parent 3f9c6d4ce9
commit 5cc8c9c2b3

View File

@@ -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(