Files
admin 0593ff7e62
nginx serve /uploads direct (audio speed) / patch-nginx (push) Failing after 1m34s
数字我 Digital Me:全量入库(大文件走 Git LFS)
2026-10-10 16:24:43 +08:00

36 lines
3.1 KiB
JSON
Executable File

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://digitalme.invoratec.cn/schemas/main-talent.json",
"title": "MainTalent",
"description": "主天赋 = 唯一身份单元。当前由 profession + archetype + compliance 派生(见 talents.js mainTalent());将来可整体搬入 DB 集合 talent_main_config。主天赋决定:身份 System Prompt / 是否走 RAG / 合规安全等级 / 默认模型。",
"type": "object",
"required": ["id", "name", "type", "system_prompt", "rag", "safety_level", "compliance", "audit_required"],
"additionalProperties": false,
"properties": {
"id": { "type": "string", "description": "= profession id(主天赋不另建一套 id,直接复用职业)。null 身份用 'general'。", "examples": ["lawyer", "game_blogger", "general"] },
"name": { "type": "string", "description": "展示名", "examples": ["律师/法律顾问"] },
"emoji":{ "type": "string" },
"type": { "const": "main" },
"level":{ "type": "integer", "minimum": 1, "default": 1, "description": "身份等级(MVP 恒为 1;lv2/3 留给未来天赋升级)。" },
"arch": { "type": "string", "enum": ["expert", "creator", "teacher", "artist", "sport", "craft"], "description": "职业原型:决定行为基线(ARCH_BEHAVIOR)与默认模型。由 profession.cat 映射。" },
"entity": { "type": "string", "description": "生命体称号", "examples": ["律师生命体"] },
"system_prompt": { "type": "string", "minLength": 1, "description": "身份+行为基线,拼进 buildPersona。" },
"rag": {
"type": "object",
"required": ["required", "top_k"],
"additionalProperties": false,
"properties": {
"required": { "type": "boolean", "description": "是否强要求基于私有知识库作答(expert 原型或非 none 合规 → true)。" },
"top_k": { "type": "integer", "minimum": 1, "maximum": 20, "default": 5 },
"scope": { "type": "array", "items": { "type": "string" }, "default": [], "description": "限定检索域(预留;MVP 为空=全库)。" }
}
},
"model_preference": { "type": "array", "items": { "type": "string" }, "default": ["qwen"], "description": "模型偏好,路由缝。当前仅 'qwen'(符号名,非真实 model id),near-noop。" },
"safety_level": { "type": "integer", "minimum": 0, "maximum": 10, "description": "越高越严。none=2 / soft=5 / strict=9。>=5 触发 Guardrail 强制免责。" },
"block_keywords":{ "type": "array", "items": { "type": "string" }, "default": [], "description": "命中即被 Guardrail 软化替换。" },
"disclaimer": { "type": "string", "default": "", "description": "safety>=5 且回答未含时,由 Guardrail 追加到结尾。" },
"audit_required":{ "type": "boolean", "description": "专业强合规身份需资质审核(strict=true)。未认证→talentAudit=pending(软门,仍强制免责)。" },
"compliance": { "type": "string", "enum": ["none", "soft", "strict"], "description": "合规等级,来源 professions.js。" }
}
}