mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +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]:
|
||
|
...
|
||
|
```
|