Rename embedchain to mem0 and open sourcing code for long term memory (#1474)
Co-authored-by: Deshraj Yadav <deshrajdry@gmail.com>
This commit is contained in:
16
mem0/llms/base.py
Normal file
16
mem0/llms/base.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class LLMBase(ABC):
|
||||
@abstractmethod
|
||||
def generate_response(self, messages):
|
||||
"""
|
||||
Generate a response based on the given messages.
|
||||
|
||||
Args:
|
||||
messages (list): List of message dicts containing 'role' and 'content'.
|
||||
|
||||
Returns:
|
||||
str: The generated response.
|
||||
"""
|
||||
pass
|
||||
Reference in New Issue
Block a user