Files
digital-me-history/digital-me-backend/docs/talents/sub-talent.schema.json
T
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

22 lines
1.5 KiB
JSON
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://digitalme.invoratec.cn/schemas/sub-talent.json",
"title": "SubTalent",
"description": "副天赋 = 风格/软技能,存于 SUB_REGISTRY(talents.js),将来搬 DB 集合 talent_sub_registry。两类接入点:style/constraint = 后置改写(只碰成稿,绝不改事实);hobby = 前置注入(进 System Prompt;机制预留,MVP 未铺货)。",
"type": "object",
"required": ["id", "name", "subtype", "desc"],
"additionalProperties": false,
"properties": {
"id": { "type": "string", "examples": ["humor", "concise"] },
"name": { "type": "string", "examples": ["幽默感"] },
"subtype": { "type": "string", "enum": ["style", "constraint", "hobby"], "description": "style/constraint→后置改写;hobby→前置注入。" },
"desc": { "type": "string", "description": "给用户看的一句话说明。" },
"rewrite_prompt": { "type": "string", "description": "subtype=style|constraint 必填:合并进单次后置改写指令的风格项。" },
"inject_prompt": { "type": "string", "description": "subtype=hobby 必填:前置注入到 System Prompt 的兴趣/偏好项。" }
},
"allOf": [
{ "if": { "properties": { "subtype": { "enum": ["style", "constraint"] } } }, "then": { "required": ["rewrite_prompt"] } },
{ "if": { "properties": { "subtype": { "const": "hobby" } } }, "then": { "required": ["inject_prompt"] } }
]
}