mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +00:00
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]:
|
||
|
...
|
||
|
```
|