Files
t6_mem0/mem0/llms/base.py
2024-07-12 20:21:33 +05:30

17 lines
373 B
Python

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