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

Function save_roles_meta

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

保存角色元数据

(meta: Dict[str, Any])

Source from the content-addressed store, hash-verified

63
64
65def save_roles_meta(meta: Dict[str, Any]) -> None:
66 """保存角色元数据"""
67 os.makedirs(os.path.dirname(ROLE_META_FILE), exist_ok=True)
68 with open(ROLE_META_FILE, 'w', encoding='utf-8') as f:
69 json.dump(meta, f, ensure_ascii=False, indent=2)
70
71
72def create_role(role_name: str, description: str = "", natural_language: str = "", feishu_chat_id: str = None) -> Dict[str, Any]:

Callers 4

create_roleFunction · 0.85
switch_roleFunction · 0.85
delete_roleFunction · 0.85
bind_chat_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected