Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
fix: expose ask_for_human_input on experimental AgentExecutor
Greyson LaLondeaf62b7b58322
diff --git a/lib/crewai/src/crewai/experimental/agent_executor.py b/lib/crewai/src/crewai/experimental/agent_executor.pyindex 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.