mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Add type annotation for task_mapping in Crew.copy() method
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -1139,7 +1139,7 @@ class Crew(BaseModel):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
self._logger.log("warning", f"Failed to copy manager_agent: {e}")
|
self._logger.log("warning", f"Failed to copy manager_agent: {e}")
|
||||||
|
|
||||||
task_mapping = {}
|
task_mapping: Dict[str, Task] = {}
|
||||||
|
|
||||||
cloned_tasks = []
|
cloned_tasks = []
|
||||||
existing_knowledge_sources = shallow_copy(self.knowledge_sources)
|
existing_knowledge_sources = shallow_copy(self.knowledge_sources)
|
||||||
|
|||||||
Reference in New Issue
Block a user