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

Method roleCheck

utils/message_content.py:45–46  ·  view source on GitHub ↗
(self, role_type: str)

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected