mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-26 15:49:42 +02:00
refine code
This commit is contained in:
parent
3feee73492
commit
336350eba9
2 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue