| 39 | |
| 40 | |
| 41 | class RoleManage: |
| 42 | def __init__(self): |
| 43 | self.roleTypeList = ["system", "user", "assistant"] |
| 44 | |
| 45 | def roleCheck(self, role_type: str) -> bool: |
| 46 | return role_type in self.roleTypeList |
| 47 | |
| 48 | def transRole(self, role_type: str) -> str: |
| 49 | return "user" |
| 50 | |
| 51 | |
| 52 | class MessageManage: |
nothing calls this directly
no outgoing calls
no test coverage detected