From f53a2b574a26cf0e746d5aecd953ac2fd3a38e04 Mon Sep 17 00:00:00 2001 From: lidanyang Date: Fri, 19 Jul 2024 17:04:49 +0800 Subject: [PATCH] force to install package --- metagpt/prompts/di/write_analysis_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/prompts/di/write_analysis_code.py b/metagpt/prompts/di/write_analysis_code.py index 1d743a719..55d5e77cd 100644 --- a/metagpt/prompts/di/write_analysis_code.py +++ b/metagpt/prompts/di/write_analysis_code.py @@ -30,7 +30,7 @@ your code REFLECTION_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 = '''