mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
87e502c6bc
Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
15 lines
321 B
Plaintext
15 lines
321 B
Plaintext
```python
|
|
class Chain(BaseModel, ABC):
|
|
"""Base interface that all chains should implement."""
|
|
|
|
memory: BaseMemory
|
|
callbacks: Callbacks
|
|
|
|
def __call__(
|
|
self,
|
|
inputs: Any,
|
|
return_only_outputs: bool = False,
|
|
callbacks: Callbacks = None,
|
|
) -> Dict[str, Any]:
|
|
...
|
|
``` |