mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 17:56:23 +02:00
feat: +todo_description
This commit is contained in:
parent
ee77d4b0fb
commit
93d6bc6569
1 changed files with 8 additions and 0 deletions
|
|
@ -341,3 +341,11 @@ class Role:
|
|||
msg = await self._act()
|
||||
return ActionOutput(content=msg.content,
|
||||
instruct_content=msg.instruct_content)
|
||||
|
||||
@property
|
||||
def todo_description(self):
|
||||
if not self._rc or not self._rc.todo:
|
||||
return ""
|
||||
if self._rc.todo.desc:
|
||||
return self._rc.todo.desc
|
||||
return f"{self._rc.todo.__class__}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue