mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
refactor: Refactor Message transmission & filtering
This commit is contained in:
parent
545d77ce0d
commit
bd813d2b90
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ class Researcher(Role):
|
|||
summary_text = "\n---\n".join(f"url: {url}\nsummary: {summary}" for (url, summary) in summaries)
|
||||
content = await self._rc.todo.run(topic, summary_text, system_text=research_system_text)
|
||||
ret = Message(
|
||||
"", Report(topic=topic, content=content), role=self.profile, get_object_name=type(self._rc.todo)
|
||||
"", Report(topic=topic, content=content), role=self.profile, cause_by=get_object_name(self._rc.todo)
|
||||
)
|
||||
self._rc.memory.add(ret)
|
||||
return ret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue