aps-agent/contracts/schemas/capability.schema.json

23 lines
1.0 KiB
JSON
Raw Permalink 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://aps.local/contracts/capability.schema.json",
"title": "CapabilitySummary",
"description": "按身份过滤后交给客户端与引擎的能力条目。描述七要素见 docs/spec/capability-description.md。",
"$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
}
}
}