MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / get_current_role

Function get_current_role

agents/role-manager/main.py:242–245  ·  view source on GitHub ↗

获取当前角色

()

Source from the content-addressed store, hash-verified

240
241
242def get_current_role() -> Optional[str]:
243 """获取当前角色"""
244 meta = load_roles_meta()
245 return meta.get("current_role")
246
247
248def format_role_list(roles_result: Dict) -> str:

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
load_roles_metaFunction · 0.70

Tested by

no test coverage detected