mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-23 15:48:11 +02:00
feat: + unit test
This commit is contained in:
parent
36386ce143
commit
76ea924a05
2 changed files with 66 additions and 0 deletions
|
|
@ -168,6 +168,11 @@ class Role:
|
|||
"""Return role `constraints`, read only"""
|
||||
return self._setting.constraints
|
||||
|
||||
@property
|
||||
def action_count(self):
|
||||
"""Return number of action"""
|
||||
return len(self._actions)
|
||||
|
||||
def _get_prefix(self):
|
||||
"""获取角色前缀"""
|
||||
if self._setting.desc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue