* Correct abstractmethod usage * Update interface * Specify minimal llama-index version [ignore cache] * Update examples
12 lines
282 B
Python
12 lines
282 B
Python
from ..llms import ChatLLM
|
|
from .base import BaseChatBot
|
|
|
|
|
|
class SimpleRespondentChatbot(BaseChatBot):
|
|
"""Simple text respondent chatbot that essentially wraps around a chat LLM"""
|
|
|
|
llm: ChatLLM
|
|
|
|
def _get_message(self) -> str:
|
|
return self.llm(self.history).text
|