mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
15 lines
No EOL
321 B
Text
15 lines
No EOL
321 B
Text
```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]:
|
|
...
|
|
``` |