feat: +todo_description

This commit is contained in:
莘权 马 2023-08-27 11:13:32 +08:00
parent ee77d4b0fb
commit 93d6bc6569

View file

@ -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__}"