mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
fixbug: fix todo_description
This commit is contained in:
parent
12ac57af4c
commit
0788080e20
1 changed files with 7 additions and 1 deletions
|
|
@ -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 ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue