mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-07-05 16:02:14 +02:00
refine code
This commit is contained in:
parent
a5b6d0817d
commit
5223c4afa9
2 changed files with 4 additions and 4 deletions
|
|
@ -408,7 +408,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