Merge pull request #735 from iorisa/feature/agentstore/v0.6

fixbug: fix todo_description
This commit is contained in:
garylin2099 2024-01-10 21:17:02 +08:00 committed by GitHub
commit 7493a230a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -504,7 +504,13 @@ class Role(SerializationMixin, is_polymorphic_base=True):
@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 ""

View file

@ -57,7 +57,7 @@ extras_require["dev"] = (["pylint~=3.0.3", "black~=23.3.0", "isort~=5.12.0", "pr
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",