objected knowledge base implement for email code structure

This commit is contained in:
tsukasa
2023-08-30 17:16:37 +08:00
parent aef15476b5
commit 39eb96f9e3
10 changed files with 180 additions and 13 deletions
@@ -0,0 +1,10 @@
# define a knowledge base class
from src.aios_kernel.agent import AgentPrompt
from .object import KnowledgeObject
class KnowledgeBase:
async def insert(self, object: KnowledgeObject):
pass
async def query(self, prompt: AgentPrompt) -> AgentPrompt:
pass