14 lines
314 B
Python
14 lines
314 B
Python
from theflow import Node
|
|
|
|
from ..llms import ChatLLM
|
|
from .base import BaseChatBot
|
|
|
|
|
|
class SimpleRespondentChatbot(BaseChatBot):
|
|
"""Simple text respondent chatbot that essentially wraps around a chat LLM"""
|
|
|
|
llm: Node[ChatLLM]
|
|
|
|
def _get_message(self) -> str:
|
|
return self.llm(self.history).text
|