mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-06 22:58:30 +00:00
fix: Fix import sorting and type checking issues
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -776,7 +776,12 @@ class Crew(BaseModel):
|
||||
)
|
||||
|
||||
# Track delegation in hierarchical process
|
||||
if self.process == Process.hierarchical and task.agent and task.agent != self.manager_agent:
|
||||
if (
|
||||
self.process == Process.hierarchical
|
||||
and task.agent
|
||||
and task.agent != self.manager_agent
|
||||
and self.manager_agent
|
||||
):
|
||||
task.increment_delegations(self.manager_agent.role)
|
||||
task.processed_by_agents.add(self.manager_agent.role)
|
||||
self._logger.log(
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from crewai.agents.agent_builder.base_agent import BaseAgent
|
||||
from crewai.tools.base_tool import BaseTool
|
||||
from crewai.utilities import I18N, Logger
|
||||
|
||||
from .ask_question_tool import AskQuestionTool
|
||||
from .delegate_work_tool import DelegateWorkTool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user