MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

user_requirement missed in plan_and_act mode

Open AdaChambers opened this issue 9 months ago • 0 comments

Bug description The LLM generated code in plan_and_act mode does not contain data path info. Found that self.user_requirement (containing the data info) is empty. So the prompt does not contain data info for LLM to write the correct code.

Bug solved method Add self.user_requirement = self.get_memories()[-1].content to DataInterpreter's plan_and_act method may solve the issue. However, I'm not sure if it affects other functionalities.

Environment information System version (mac os), Python version (conda python 3.9), LLM type and model (Zhipu glm-4-plus)

AdaChambers avatar Mar 17 '25 05:03 AdaChambers