File size: 3,267 Bytes
a46f204
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://xevyo.local/spec/example_input.schema.json",
 "title": "xevyo-01 example input",
 "description": "What the calling application knows about one turn before the planner runs, and what every training/eval example stores next to its plan. The prompt renderer turns it into the chat messages the model reads. No user ids, no memory contents, no document text: the planner sees flags, not data.",
 "type": "object",
 "additionalProperties": false,
 "required": [
  "message",
  "history",
  "attached_image",
  "remembered_image",
  "document_attached",
  "memory_enabled",
  "signed_in",
  "api_client",
  "offered_tools",
  "locale"
 ],
 "properties": {
  "message": {
   "description": "The user's latest message as typed. render clips it to its head and tail.",
   "type": "string",
   "minLength": 1,
   "maxLength": 100000
  },
  "history": {
   "description": "Earlier turns of this chat, oldest first, user and assistant only. render keeps the last 8 and clips each.",
   "type": "array",
   "maxItems": 200,
   "items": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "description": "Who said it.",
      "enum": [
       "user",
       "assistant"
      ]
     },
     "content": {
      "description": "What was said, as plain text (inline images already stripped).",
      "type": "string",
      "maxLength": 100000
     }
    }
   }
  },
  "attached_image": {
   "description": "THIS message carries an uploaded image.",
   "type": "boolean"
  },
  "remembered_image": {
   "description": "The chat's remembered image: null for none, else the last generated image's prompt, or exactly 'the image you uploaded' when the remembered image is an earlier upload.",
   "type": [
    "string",
    "null"
   ],
   "maxLength": 120
  },
  "document_attached": {
   "description": "A document is attached to this message or the chat has document context (attached_document_ids / build_document_context).",
   "type": "boolean"
  },
  "memory_enabled": {
   "description": "The user's Memory switch is on (owui_settings.read_memory_switch). False also when the switch could not be read.",
   "type": "boolean"
  },
  "signed_in": {
   "description": "An authenticated user (user_id != 'anonymous'). Memory commands and memory cards need it.",
   "type": "boolean"
  },
  "api_client": {
   "description": "The chat came through a developer API key (request_intent.is_api_key_client): documents only on an explicit file request.",
   "type": "boolean"
  },
  "offered_tools": {
   "description": "Tool names bound this turn (tools.json names), after user switches, health, calculator scope and Google connection. Only these may appear in plan.tools.",
   "type": "array",
   "uniqueItems": true,
   "maxItems": 40,
   "items": {
    "type": "string",
    "pattern": "^[a-z][a-z0-9_]{1,63}$"
   }
  },
  "locale": {
   "description": "The client's locale (e.g. en-IN, hi-IN), or null when unknown. Context only.",
   "type": [
    "string",
    "null"
   ],
   "maxLength": 20
  }
 }
}