mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Refactor type hints and clean up imports in crew.py (#2480)
- Removed unused import of BaseTool from langchain_core.tools. - Updated type hints in crew.py to streamline code and improve readability. - Cleaned up whitespace for better code formatting. Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com>
This commit is contained in:
@@ -6,9 +6,8 @@ import warnings
|
|||||||
from concurrent.futures import Future
|
from concurrent.futures import Future
|
||||||
from copy import copy as shallow_copy
|
from copy import copy as shallow_copy
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, TypeVar, Union, cast
|
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union, cast
|
||||||
|
|
||||||
from langchain_core.tools import BaseTool as LangchainBaseTool
|
|
||||||
from pydantic import (
|
from pydantic import (
|
||||||
UUID4,
|
UUID4,
|
||||||
BaseModel,
|
BaseModel,
|
||||||
@@ -490,7 +489,7 @@ class Crew(BaseModel):
|
|||||||
task.key for task in self.tasks
|
task.key for task in self.tasks
|
||||||
]
|
]
|
||||||
return md5("|".join(source).encode(), usedforsecurity=False).hexdigest()
|
return md5("|".join(source).encode(), usedforsecurity=False).hexdigest()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def fingerprint(self) -> Fingerprint:
|
def fingerprint(self) -> Fingerprint:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user