AI butler Jarvis

This commit is contained in:
fiatrete
2023-06-05 13:21:34 +08:00
parent 41578de486
commit c01b07e61e
68 changed files with 4451 additions and 0 deletions
@@ -0,0 +1,23 @@
from jarvis.functional_modules.functional_module import CallerContext
class BaseAgent:
_caller_context: CallerContext = None
def __init__(self, context: CallerContext):
self._caller_context = context
async def feed_prompt(self, prompt):
raise NotImplementedError("Not implemented")
def append_history_message(self, role: str, content: str):
raise NotImplementedError("Not implemented")
def clear_history_messages(self):
raise NotImplementedError("Not implemented")
def save_history(self, to_where):
raise NotImplementedError("Not implemented")
def load_history(self, from_where):
raise NotImplementedError("Not implemented")