MetaGPT
MetaGPT copied to clipboard
user_requirement missed in plan_and_act mode
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)