-
-
Notifications
You must be signed in to change notification settings - Fork 39.2k
Expand file tree
/
Copy pathcontext-profile.schema.json
More file actions
36 lines (36 loc) · 1.22 KB
/
Copy pathcontext-profile.schema.json
File metadata and controls
36 lines (36 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ECC read-only context profile",
"type": "object",
"additionalProperties": false,
"required": ["schemaVersion", "id", "description", "registryId", "selection", "budget"],
"properties": {
"schemaVersion": { "const": 1 },
"id": { "enum": ["lean@1", "full@1"] },
"description": { "type": "string", "minLength": 1, "maxLength": 2000 },
"registryId": { "const": "skill-registry@1" },
"selection": {
"type": "object", "additionalProperties": false,
"required": ["eager", "required", "remainder"],
"properties": {
"eager": { "oneOf": [{ "const": "all" }, { "$ref": "#/definitions/skillIds" }] },
"required": { "$ref": "#/definitions/skillIds" },
"remainder": { "const": "routed" }
}
},
"budget": {
"type": "object", "additionalProperties": false,
"required": ["tokens", "mode"],
"properties": {
"tokens": { "const": 8000 },
"mode": { "enum": ["blocking", "report-only"] }
}
}
},
"definitions": {
"skillIds": {
"type": "array", "uniqueItems": true,
"items": { "type": "string", "pattern": "^skill:[a-z0-9]+(?:-[a-z0-9]+)*$" }
}
}
}