refine code

This commit is contained in:
geekan 2023-12-22 22:49:13 +08:00
parent 3feee73492
commit 336350eba9
2 changed files with 4 additions and 4 deletions

View file

@ -390,7 +390,7 @@ class Role(BaseModel):
async def _act(self) -> Message:
logger.info(f"{self._setting}: to do {self._rc.todo}({self._rc.todo.name})")
response = await self._rc.todo.run(self._rc.important_memory)
response = await self._rc.todo.run(self._rc.history)
if isinstance(response, (ActionOutput, ActionNode)):
msg = Message(
content=response.content,