2026-09-23 20:00:47 +08:00
|
|
|
|
{
|
|
|
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
|
|
|
|
"$id": "https://aps.local/contracts/capability.schema.json",
|
|
|
|
|
|
"title": "CapabilitySummary",
|
|
|
|
|
|
"description": "按身份过滤后交给客户端与引擎的能力条目。描述七要素见 docs/spec/capability-description.md。",
|
2026-09-23 20:52:24 +08:00
|
|
|
|
"$ref": "#/$defs/CapabilitySummary",
|
|
|
|
|
|
"$defs": {
|
|
|
|
|
|
"CapabilitySummary": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"required": ["id", "providerId", "title", "purpose", "effect"],
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"id": { "type": "string", "pattern": "^[a-z0-9]+(\\.[a-z0-9-]+)+$" },
|
|
|
|
|
|
"providerId": { "type": "string" },
|
|
|
|
|
|
"title": { "type": "string" },
|
|
|
|
|
|
"purpose": { "type": "string", "description": "一句话用途,40 字以内" },
|
|
|
|
|
|
"effect": { "type": "string", "enum": ["read", "draft", "write"] },
|
|
|
|
|
|
"inputSchema": { "type": "object" },
|
|
|
|
|
|
"synonyms": { "type": "array", "items": { "type": "string" }, "description": "业务黑话与同义词" }
|
|
|
|
|
|
},
|
|
|
|
|
|
"additionalProperties": false
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-09-23 20:00:47 +08:00
|
|
|
|
}
|