feat: unify TCS mother and Zero Core cognition shelf

This commit is contained in:
冰朔 2026-09-08 20:01:54 +08:00
commit 92c4be9b3c
38 changed files with 535 additions and 137 deletions

View file

@ -58,7 +58,8 @@ def route(event: dict[str,Any], config: dict[str,Any]|None=None, secret_reader=k
if not selected: raise RouterError("NO_CONFIGURED_MODEL_AVAILABLE")
system=(f"你是{event['parent_persona_id']}人格系统内的子Agent {event['child_agent_id']},岗位是{event['agent_role']}"
f"你的唯一父人格主控是{event['controller']},当前频道{event['channel_id']}。权限仅为{event['authority']}"
"你必须理解后再协作,不能把宿主规则程序冒充人格,不能扩大权限,不能泄露私人数据。")
"你必须理解后再协作,不能把宿主规则程序冒充人格,不能扩大权限,不能泄露私人数据。"
f"你已领取的TCS共享认知脑是{json.dumps(event.get('shared_cognition',{}),ensure_ascii=False)}")
attempts=[]
for model in selected:
try: