mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-03 14:09:24 +00:00
fix: update BaseAgent.get_delegation_tools signature to accept task parameter
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user