🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
undo thought reporter in the base role
shenchucheng3afb8a87f3ab
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex f6d26eeb1..1eaa77fa3 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -47,7 +47,6 @@ from metagpt.strategy.planner import Plannerfrom metagpt.utils.common import any_to_name, any_to_str, role_raise_decoratorfrom metagpt.utils.project_repo import ProjectRepofrom metagpt.utils.repair_llm_raw_output import extract_state_value_from_output-from metagpt.utils.report import ThoughtReporterif TYPE_CHECKING:from metagpt.environment import Environment # noqa: F401@@ -382,8 +381,8 @@ class Role(SerializationMixin, ContextMixin, BaseModel):n_states=len(self.states) - 1,previous_state=self.rc.state,)- async with ThoughtReporter():- next_state = await self.llm.aask(prompt)++ next_state = await self.llm.aask(prompt)next_state = extract_state_value_from_output(next_state)logger.debug(f"{prompt=}")