From 294e97277d522038012147bd48ef8aa943c98923 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 15 Apr 2026 19:46:32 +0000 Subject: [PATCH] fix: update BaseAgent.get_delegation_tools signature to accept task parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: João --- lib/crewai/src/crewai/agents/agent_builder/base_agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/crewai/src/crewai/agents/agent_builder/base_agent.py b/lib/crewai/src/crewai/agents/agent_builder/base_agent.py index a00f9b49f..856a9cbf1 100644 --- a/lib/crewai/src/crewai/agents/agent_builder/base_agent.py +++ b/lib/crewai/src/crewai/agents/agent_builder/base_agent.py @@ -530,7 +530,9 @@ class BaseAgent(BaseModel, ABC, metaclass=AgentMeta): pass @abstractmethod - def get_delegation_tools(self, agents: Sequence[BaseAgent]) -> list[BaseTool]: + def get_delegation_tools( + self, agents: Sequence[BaseAgent], task: Any | None = None + ) -> list[BaseTool]: """Set the task tools that init BaseAgenTools class.""" @abstractmethod