MCPcopy Create free account
hub / github.com/CL-lau/SQL-GPT / RoleManage

Class RoleManage

utils/message_content.py:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41class 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
52class MessageManage:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected