🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor: Refactor Message transmission & filtering
莘权 马bd813d2b90d1
diff --git a/metagpt/roles/researcher.py b/metagpt/roles/researcher.pyindex 43ee7971d..6e89b9fe7 100644--- a/metagpt/roles/researcher.py+++ b/metagpt/roles/researcher.py@@ -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