From f2016f8979fb6fc38ff09397113d0ec688151e18 Mon Sep 17 00:00:00 2001 From: lorenzejay Date: Tue, 3 Feb 2026 07:59:27 -0800 Subject: [PATCH] matching --- lib/crewai/src/crewai/agent/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crewai/src/crewai/agent/core.py b/lib/crewai/src/crewai/agent/core.py index cfc584d90..786c30cb2 100644 --- a/lib/crewai/src/crewai/agent/core.py +++ b/lib/crewai/src/crewai/agent/core.py @@ -629,7 +629,7 @@ class Agent(BaseAgent): ValueError: If the max execution time is not a positive integer. RuntimeError: If the agent execution fails for other reasons. """ - if not isinstance(self.executor_class, AgentExecutor): + if self.executor_class is not AgentExecutor: handle_reasoning( self, task ) # we need this till CrewAgentExecutor migrates to AgentExecutor