Compare commits

...

2 Commits

Author SHA1 Message Date
Brandon Hancock (bhancock_ai)
e8653c81e1 Merge branch 'main' into fix/unnecessary-imports 2025-03-26 11:13:56 -04:00
Lorenze Jay
a244370f48 Refactor type hints and clean up imports in crew.py
- 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.
2025-03-26 08:11:57 -07:00

View File

@@ -6,9 +6,8 @@ import warnings
from concurrent.futures import Future
from copy import copy as shallow_copy
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 (
UUID4,
BaseModel,
@@ -490,7 +489,7 @@ class Crew(BaseModel):
task.key for task in self.tasks
]
return md5("|".join(source).encode(), usedforsecurity=False).hexdigest()
@property
def fingerprint(self) -> Fingerprint:
"""