fabricatio_team.capabilities.team
This module contains the capabilities for the team.
Classes
Cooperate class provides the capability to manage a set of team_member roles. |
Module Contents
- class fabricatio_team.capabilities.team.Cooperate(/, **data: Any)
Bases:
fabricatio_core.models.generic.ScopedConfig,abc.ABCCooperate class provides the capability to manage a set of team_member roles.
- team_roster: Set[fabricatio_core.models.role.RoleName] | None = None
A set of Role instances representing the team_member.
- other_member_roster: Set[fabricatio_core.models.role.RoleName] | None = None
A set of Role names representing other team members.
- update_team_roster(team_member: Iterable[fabricatio_core.models.role.RoleName], myself: fabricatio_core.models.role.RoleName | None = None) Self
Updates the team_member set with the given iterable of roles.
- Parameters:
team_member – An iterable of Role instances to set as the new team_member.
myself – The role name of the current role.
- Returns:
The updated instance with refreshed team_member.
- Return type:
Self
- update_team_roster_with_roles(team_member: Iterable[fabricatio_core.Role]) Self
Updates the team_member set with the given iterable of roles.
- consult_team_member(name: str) fabricatio_core.Role | None
Returns the team_member with the given name.
- property team_members: List[fabricatio_core.Role]
Returns the team_member set.