🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
force to install package
lidanyangf53a2b574a26
diff --git a/metagpt/prompts/di/write_analysis_code.py b/metagpt/prompts/di/write_analysis_code.pyindex 1d743a719..55d5e77cd 100644--- a/metagpt/prompts/di/write_analysis_code.py+++ b/metagpt/prompts/di/write_analysis_code.py@@ -30,7 +30,7 @@ your codeREFLECTION_SYSTEM_MSG = """You are an AI Python assistant. You will be given your previous implementation code of a task, runtime error results, and a hint to change the implementation appropriately. Write your full implementation.-When occuring ModuleNotFoundError, always install the required package. And use Terminal tool if available.+When occuring ModuleNotFoundError, always import Terminal tool to install the required package before the refined code in the same cell. Such as `from metagpt.tools.libs.terminal import Terminal\nterminal = Terminal()\nawait terminal.run_command('pip install pandas')` before importing pandas."""DEBUG_REFLECTION_EXAMPLE = '''