diff --git a/lib/crewai/src/crewai/agent/core.py b/lib/crewai/src/crewai/agent/core.py index eb73ba719..176178554 100644 --- a/lib/crewai/src/crewai/agent/core.py +++ b/lib/crewai/src/crewai/agent/core.py @@ -1485,8 +1485,6 @@ class Agent(BaseAgent): Note: For explicit async usage outside of Flow, use kickoff_async() directly. """ - # Magic auto-async: if inside event loop (e.g., inside a Flow), - # return coroutine for Flow to await if is_inside_event_loop(): return self.kickoff_async(messages, response_format, input_files) diff --git a/lib/crewai/src/crewai/agent/utils.py b/lib/crewai/src/crewai/agent/utils.py index 31f08903f..93c861835 100644 --- a/lib/crewai/src/crewai/agent/utils.py +++ b/lib/crewai/src/crewai/agent/utils.py @@ -39,7 +39,6 @@ def handle_reasoning(agent: Agent, task: Task) -> None: agent: The agent performing the task. task: The task to execute. """ - # Check if planning is enabled using the planning_enabled property if not getattr(agent, "planning_enabled", False): return