🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: fix todo_description
莘权 马0788080e205a
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex 3bcd600fc..3d5e55057 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -504,7 +504,13 @@ class Role(SerializationMixin, is_polymorphic_base=True):@propertydef todo(self) -> str:- """AgentStore uses this attribute to display to the user what actions the current role should take."""+ """+ AgentStore uses this attribute to display to the user what actions the current role should take.+ """+ if self.rc.todo:+ if self.rc.todo.desc:+ return self.rc.todo.desc+ return any_to_name(self.rc.todo)if self.actions:return any_to_name(self.actions[0])return ""