diff --git a/src/funcchain/syntax/params.py b/src/funcchain/syntax/params.py new file mode 100644 index 0000000..83eda08 --- /dev/null +++ b/src/funcchain/syntax/params.py @@ -0,0 +1,20 @@ +from typing import Any, Optional + +from langchain_core.runnables.base import RunnableLike + + +class Depends: + def __init__( + self, + dependency: Optional[RunnableLike[Any, Any]] = None, + ): + self.dependency = dependency + + def __repr__(self) -> str: + return str(self.__class__.__name__) + str( + getattr( + self.dependency, + "__name__", + type(self.dependency).__name__, + ) + )