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

Function load_roles_meta

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

加载角色元数据

()

Source from the content-addressed store, hash-verified

55
56
57def load_roles_meta() -> Dict[str, Any]:
58 """加载角色元数据"""
59 if os.path.exists(ROLE_META_FILE):
60 with open(ROLE_META_FILE, 'r', encoding='utf-8') as f:
61 return json.load(f)
62 return {"roles": {}, "current_role": None}
63
64
65def save_roles_meta(meta: Dict[str, Any]) -> None:

Callers 6

create_roleFunction · 0.70
switch_roleFunction · 0.70
list_rolesFunction · 0.70
delete_roleFunction · 0.70
get_current_roleFunction · 0.70
bind_chat_idFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected