Skip to content

Commit

Permalink
Merge pull request #735 from iorisa/feature/agentstore/v0.6
Browse files Browse the repository at this point in the history
fixbug: fix todo_description
  • Loading branch information
garylin2099 authored Jan 10, 2024
2 parents 12ac57a + cf2366b commit 7493a23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion metagpt/roles/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7493a23

Please sign in to comment.