🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
Merge branch 'da_change' into 'mgx_ops'
æž—ä¹‰ç« 2ad493a56816
diff --cc metagpt/roles/di/role_zero.pyindex 49b6c3616,0209079b9..8b1ab2267--- a/metagpt/roles/di/role_zero.py+++ b/metagpt/roles/di/role_zero.py@@@ -286,11 -286,9 +286,11 @@@ class RoleZero(Role)return rsp_msg, ""# routing- memory = self.get_memories(k=4) # FIXME: A magic number for two rounds of Q&A+ memory = self.get_memories(k=self.memory_k)context = self.llm.format_msg(memory + [UserMessage(content=QUICK_THINK_PROMPT)])- intent_result = await self.llm.aask(context, system_msgs=[self.format_quick_system_prompt()])+ async with ThoughtReporter() as reporter:+ await reporter.async_report({"type": "classify"})+ intent_result = await self.llm.aask(context, system_msgs=[self.format_quick_system_prompt()])if "QUICK" in intent_result or "AMBIGUOUS" in intent_result: # llm call with the original contextasync with ThoughtReporter(enable_llm_stream=True) as reporter: