From 0788080e205a5437f1974f77b4a203f0b57d1f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Wed, 10 Jan 2024 19:51:38 +0800 Subject: [PATCH 1/2] fixbug: fix todo_description --- metagpt/roles/role.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/metagpt/roles/role.py b/metagpt/roles/role.py index 3bcd600fc..3d5e55057 100644 --- a/metagpt/roles/role.py +++ b/metagpt/roles/role.py @@ -504,7 +504,13 @@ async def act(self) -> ActionOutput: @property def 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 "" From cf2366b72ce2f5fcc8f5a283733eb48f35cf1c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Wed, 10 Jan 2024 21:13:36 +0800 Subject: [PATCH 2/2] feat: +ver --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d997b5f62..ea84fe299 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ def run(self): setup( name="metagpt", - version="0.6.3", + version="0.6.4", description="The Multi-Agent Framework", long_description=long_description, long_description_content_type="text/markdown",