-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathopenapi.json
More file actions
48 lines (48 loc) · 1.96 KB
/
Copy pathopenapi.json
File metadata and controls
48 lines (48 loc) · 1.96 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
{
"openapi": "3.1.0",
"info": {"title": "Mnemo ChatGPT Gate", "version": "1.1.0"},
"servers": [{"url": "https://YOUR-GATE-HOSTNAME"}],
"paths": {
"/recall": {
"post": {
"operationId": "recallMemory",
"security": [{"bearerAuth": []}],
"requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Recall"}}}},
"responses": {"200": {"description": "Matching memories"}}
}
},
"/save": {
"post": {
"operationId": "saveMemory",
"security": [{"bearerAuth": []}],
"requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Save"}}}},
"responses": {"200": {"description": "Memory saved"}}
}
}
},
"components": {
"securitySchemes": {"bearerAuth": {"type": "http", "scheme": "bearer"}},
"schemas": {
"Recall": {
"type": "object", "additionalProperties": false, "required": ["prompt"],
"properties": {
"prompt": {"type": "string", "maxLength": 4000},
"max_results": {"type": "integer", "minimum": 1, "maximum": 10, "default": 5},
"category": {"type": "string", "enum": ["session_log", "idea", "decision", "identity", "relationship"]},
"mode": {"type": "string", "enum": ["focus", "explore"], "default": "focus"}
}
},
"Save": {
"type": "object", "additionalProperties": false,
"required": ["session_id", "summary", "category"],
"properties": {
"session_id": {"type": "string", "maxLength": 128},
"summary": {"type": "string", "maxLength": 6000},
"key_facts": {"type": "array", "maxItems": 30, "items": {"type": "string"}},
"category": {"type": "string", "enum": ["session_log", "idea", "decision", "identity", "relationship"]},
"additional_tags": {"type": "array", "maxItems": 20, "items": {"type": "string"}}
}
}
}
}
}