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

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

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
load_roles_metaFunction · 0.70

Tested by

no test coverage detected