-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemory.writeback.extension.schema.json
More file actions
76 lines (76 loc) · 2.09 KB
/
Copy pathmemory.writeback.extension.schema.json
File metadata and controls
76 lines (76 loc) · 2.09 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MIP Governed Writeback Extension Draft",
"description": "Experimental extension draft for governed writeback layers on top of MIP v0.1.",
"type": "object",
"properties": {
"facts": {
"type": "array",
"items": { "$ref": "#/definitions/factEntry" }
},
"observations": {
"type": "array",
"items": { "$ref": "#/definitions/observationEntry" }
},
"pending_confirmation": {
"type": "array",
"items": { "$ref": "#/definitions/pendingConfirmationEntry" }
}
},
"definitions": {
"baseEntry": {
"type": "object",
"required": ["target_path", "value", "source", "updated_at"],
"properties": {
"target_path": {
"type": "string",
"description": "Logical path into the user-controlled memory structure, such as preferences.response_style or facts.current_focus."
},
"key": {
"type": "string",
"description": "Deprecated legacy field retained for transition only. Use target_path instead."
},
"value": {},
"source": { "type": "string" },
"updated_at": { "type": "string", "format": "date-time" },
"notes": { "type": "string" }
}
},
"factEntry": {
"allOf": [
{ "$ref": "#/definitions/baseEntry" },
{
"type": "object",
"required": ["evidence"],
"properties": {
"evidence": { "type": "string" }
}
}
]
},
"observationEntry": {
"allOf": [
{ "$ref": "#/definitions/baseEntry" },
{
"type": "object",
"required": ["confidence"],
"properties": {
"confidence": { "type": "number", "minimum": 0, "maximum": 1 }
}
}
]
},
"pendingConfirmationEntry": {
"allOf": [
{ "$ref": "#/definitions/baseEntry" },
{
"type": "object",
"required": ["reason"],
"properties": {
"reason": { "type": "string" }
}
}
]
}
}
}