From af62b7b583220fde87edf67f5d77aad91ef26faf Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Mon, 8 Jun 2026 17:55:19 -0700 Subject: [PATCH] fix: expose ask_for_human_input on experimental AgentExecutor fixes #6065 --- lib/crewai/src/crewai/experimental/agent_executor.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/crewai/src/crewai/experimental/agent_executor.py b/lib/crewai/src/crewai/experimental/agent_executor.py index 3cc9cdd7b..5628ac3c0 100644 --- a/lib/crewai/src/crewai/experimental/agent_executor.py +++ b/lib/crewai/src/crewai/experimental/agent_executor.py @@ -279,6 +279,16 @@ class AgentExecutor(Flow[AgentExecutorState], BaseAgentExecutor): """Set state messages.""" self._state.messages = value + @property + def ask_for_human_input(self) -> bool: + """Compatibility property - returns state ask_for_human_input.""" + return self._state.ask_for_human_input # type: ignore[no-any-return] + + @ask_for_human_input.setter + def ask_for_human_input(self, value: bool) -> None: + """Set state ask_for_human_input.""" + self._state.ask_for_human_input = value + @start() def generate_plan(self) -> None: """Generate execution plan if planning is enabled.