From 9c655e88289e0ad13190049401c1898b38e4c8d3 Mon Sep 17 00:00:00 2001 From: lidanyang Date: Fri, 19 Jul 2024 17:39:45 +0800 Subject: [PATCH] rename task_desc to instruction --- metagpt/roles/di/data_analyst.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metagpt/roles/di/data_analyst.py b/metagpt/roles/di/data_analyst.py index b16e9690c..1debd681c 100644 --- a/metagpt/roles/di/data_analyst.py +++ b/metagpt/roles/di/data_analyst.py @@ -60,11 +60,11 @@ class DataAnalyst(RoleZero): self.rc.working_memory.add(Message(content=browser_actions, role="user", cause_by="browser")) return memory - async def write_and_exec_code(self, task_desc: str): + async def write_and_exec_code(self, instruction: str = ""): """Write a code block for current task and execute it in an interactive notebook environment. Args: - task_desc (str): The task description for which the code needs to be written. + instruction: The specific task description for which the code needs to be written. """ counter = 0 success = False @@ -72,7 +72,7 @@ class DataAnalyst(RoleZero): # plan info plan_status = self.planner.get_plan_status() - plan_status = plan_status + f"\nSpecific Task Description:{task_desc}" + plan_status = plan_status + f"\nFurther Task Instruction: {instruction}" # tool info if self.custom_tool_recommender: