mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-27 00:58:13 +00:00
Merge branch 'main' of github.com:joaomdmoura/crewAI into temp-feature/replay_from_task
This commit is contained in:
@@ -303,8 +303,6 @@ class Task(BaseModel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def get_agent_by_role(role: str) -> Union["BaseAgent", None]:
|
def get_agent_by_role(role: str) -> Union["BaseAgent", None]:
|
||||||
if agents is None:
|
|
||||||
return None
|
|
||||||
return next((agent for agent in agents if agent.role == role), None)
|
return next((agent for agent in agents if agent.role == role), None)
|
||||||
|
|
||||||
cloned_agent = get_agent_by_role(self.agent.role) if self.agent else None
|
cloned_agent = get_agent_by_role(self.agent.role) if self.agent else None
|
||||||
|
|||||||
Reference in New Issue
Block a user