Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

feat: Merge the modifications resulting from integrating with the agent store.

莘权 马05aa9b39ed9c
diff --cc metagpt/roles/role.py
index 47a4f45a7,36d007f3b..c363d332c
--- a/metagpt/roles/role.py
+++ b/metagpt/roles/role.py
@@@ -533,9 -504,14 +534,14 @@@ class Role(SerializationMixin, ContextM
return ActionOutput(content=msg.content, instruct_content=msg.instruct_content)
@property
- def first_action(self) -> str:
- """AgentStore uses this attribute to display to the user what actions the current role should take."""
- # FIXME: this is a hack, we should not use the first action to represent the todo
- def todo(self) -> str:
++ def action_description(self) -> str:
+ """
+ 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 ""