mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-03 15:55:44 +00:00
Permit Equivalence Checking
This commit is contained in:
@@ -556,6 +556,11 @@ class Chain(Serializable, ABC):
|
||||
_dict["_type"] = self._chain_type
|
||||
return _dict
|
||||
|
||||
def __eq__(self, other: Any) -> bool:
|
||||
if isinstance(other, self.__class__):
|
||||
return self.__dict__ == other.__dict__
|
||||
return False
|
||||
|
||||
def save(self, file_path: Union[Path, str]) -> None:
|
||||
"""Save the chain.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user