refactor: think

This commit is contained in:
莘权 马 2023-09-06 13:18:03 +08:00
parent 4e0b2898a6
commit c792cf09ec

View file

@ -93,6 +93,7 @@ class Assistant(Role):
async def talk_handler(self, text, **kwargs) -> bool:
history = self.memory.history_text
text = kwargs.get("last_talk") or text
action = TalkAction(
talk=text, knowledge=self.memory.get_knowledge(), history_summary=history, llm=self._llm, **kwargs
)