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

Function get_role_chat_id

agents/profile-report-agent/main.py:659–663  ·  view source on GitHub ↗

获取角色的飞书聊天 ID

(role_name: str)

Source from the content-addressed store, hash-verified

657
658def get_role_chat_id(role_name: str) -> Optional[str]:
659 """获取角色的飞书聊天 ID"""
660 meta = load_roles_meta()
661 role_data = meta.get("roles", {}).get(role_name, {})
662 return role_data.get("feishu_chat_id")
663
664
665def get_role_name_by_user_id(user_id: str) -> Optional[str]:
666 """根据 user_id 反查角色名。"""

Callers 1

resolve_chat_id_for_userFunction · 0.85

Calls 2

getMethod · 0.80
load_roles_metaFunction · 0.70

Tested by

no test coverage detected