Support Text summary based Knowledge System,

Update Agent Workspace.
This commit is contained in:
Liu Zhicong
2023-11-12 21:59:04 -08:00
parent fb0b88d44a
commit 763360b305
12 changed files with 765 additions and 257 deletions
+3 -1
View File
@@ -217,7 +217,9 @@ class AIOS_Shell:
return "0.5.1"
async def send_msg(self,msg:str,target_id:str,topic:str,sender:str = None) -> str:
#AIBus().get_default_bus().register_message_handler(self.username,self._user_process_msg)
if sender == self.username:
AIBus().get_default_bus().register_message_handler(self.username,self._user_process_msg)
agent_msg = AgentMsg()
agent_msg.set(sender,target_id,msg)
agent_msg.topic = topic