22 lines
1.5 KiB
JSON
Executable File
22 lines
1.5 KiB
JSON
Executable File
{
|
||
"$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"] } }
|
||
]
|
||
}
|