File size: 9,021 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
{
 "catalogue_version": "xv01.1",
 "directives": [
  {
   "id": "safety.medication",
   "kind": "planner",
   "meaning": "A question about a medicine or a pregnancy: do not call anything safe; state the risk, refer to a pharmacist or doctor; no child dose or own-dose change except a calculator result.",
   "combine": "union",
   "paths": [
    "agent"
   ],
   "requires": {},
   "excluded_domains": [
    "coding",
    "personal_memory",
    "prompt_authoring"
   ],
   "excluded_image_actions": [
    "generate",
    "edit"
   ]
  },
  {
   "id": "safety.undiagnosed_pain",
   "kind": "planner",
   "meaning": "Abdominal pain that has lasted days with no diagnosis: suggest no medicine or home remedy; say what makes it urgent and that a doctor should examine it.",
   "combine": "union",
   "paths": [
    "agent"
   ],
   "requires": {},
   "excluded_domains": [
    "coding",
    "personal_memory",
    "prompt_authoring"
   ],
   "excluded_image_actions": [
    "generate",
    "edit"
   ]
  },
  {
   "id": "context.unseen_reference",
   "kind": "planner",
   "meaning": "A first message points at material the conversation does not contain ('the study', 'the 0.2% figure'): answer the likeliest reading and say so, or ask one short question.",
   "combine": "planner_gated",
   "paths": [
    "agent"
   ],
   "requires": {
    "history_empty": true,
    "document_attached": false
   },
   "excluded_domains": [],
   "excluded_image_actions": [
    "generate",
    "edit"
   ]
  },
  {
   "id": "memory.self_fact",
   "kind": "planner",
   "meaning": "The user states a lasting fact about themselves (home, work, family, diet, routine, health): run the memory agent now and offer the Save card; never claim it is saved.",
   "combine": "planner_gated",
   "paths": [
    "agent"
   ],
   "requires": {
    "signed_in": true,
    "memory_enabled": true
   },
   "excluded_domains": [],
   "excluded_image_actions": [
    "generate",
    "edit"
   ]
  },
  {
   "id": "style.statement_only",
   "kind": "planner",
   "meaning": "The user only states standing facts about themselves, asking nothing: reply in one or two sentences acknowledging each; no search, advice, referral or question.",
   "combine": "planner_gated",
   "paths": [
    "agent"
   ],
   "requires": {},
   "excluded_domains": [
    "coding",
    "prompt_authoring"
   ],
   "excluded_image_actions": [
    "generate",
    "edit"
   ]
  },
  {
   "id": "style.casual",
   "kind": "planner",
   "meaning": "A short one-line casual question that wants a short answer: a few plain sentences, no list, bold or headings; at most three likely causes for a symptom.",
   "combine": "planner_gated",
   "paths": [
    "agent"
   ],
   "requires": {
    "document_attached": false
   },
   "excluded_domains": [
    "coding",
    "personal_memory",
    "prompt_authoring"
   ],
   "excluded_image_actions": [
    "generate",
    "edit"
   ],
   "excluded_safety": [
    "possible_emergency",
    "possible_crisis"
   ]
  },
  {
   "id": "style.followup",
   "kind": "planner",
   "meaning": "A one-line follow-up (14 words or fewer) asking for no particular shape: when it is answered from search results, reply in a few plain sentences with no headings or bold.",
   "combine": "planner_gated",
   "paths": [
    "agent"
   ],
   "requires": {
    "history_empty": false
   },
   "excluded_domains": [
    "coding",
    "personal_memory",
    "prompt_authoring"
   ],
   "excluded_image_actions": [
    "generate",
    "edit"
   ],
   "excluded_safety": [
    "possible_emergency",
    "possible_crisis"
   ]
  },
  {
   "id": "lang.hinglish",
   "kind": "planner",
   "meaning": "Small talk written in Hindi with Roman letters: reply the same way (Roman Hindi, no Devanagari, not English).",
   "combine": "planner_gated",
   "paths": [
    "fast",
    "agent"
   ],
   "requires": {},
   "excluded_domains": [
    "coding",
    "prompt_authoring"
   ],
   "excluded_image_actions": [
    "generate",
    "edit"
   ]
  },
  {
   "id": "lang.hinglish_english",
   "kind": "planner",
   "meaning": "Anything other than small talk written in Hindi with Roman letters (health above all): reply in plain simple English, naming symptoms and body parts in English.",
   "combine": "planner_gated",
   "paths": [
    "fast",
    "agent"
   ],
   "requires": {},
   "excluded_domains": [
    "coding",
    "prompt_authoring"
   ],
   "excluded_image_actions": [
    "generate",
    "edit"
   ]
  },
  {
   "id": "lang.devanagari",
   "kind": "planner",
   "meaning": "The message is Hindi written in Devanagari: reply in Hindi in Devanagari.",
   "combine": "planner_gated",
   "paths": [
    "fast",
    "agent"
   ],
   "requires": {},
   "excluded_domains": [
    "coding",
    "prompt_authoring"
   ],
   "excluded_image_actions": [
    "generate",
    "edit"
   ]
  },
  {
   "id": "frame.realtime_results",
   "kind": "derived",
   "meaning": "[REALTIME/FACTUAL QUERY] answer only from the live results below; do not search again."
  },
  {
   "id": "frame.realtime_reference_only",
   "kind": "derived",
   "meaning": "[FACTUAL QUERY] use the reference material where it answers; say what could not be confirmed."
  },
  {
   "id": "frame.realtime_nothing_found",
   "kind": "derived",
   "meaning": "[FACTUAL QUERY] answer from own knowledge, say briefly what could not be confirmed."
  },
  {
   "id": "frame.realtime_must_search",
   "kind": "derived",
   "meaning": "[REALTIME/FACTUAL QUERY] you MUST call web_search or web_rag; post-run backstop applies."
  },
  {
   "id": "frame.personal_query",
   "kind": "derived",
   "meaning": "[PERSONAL QUERY] answer from memory, do not web search."
  },
  {
   "id": "frame.followup_restated",
   "kind": "derived",
   "meaning": "[FOLLOW-UP] the latest message asks: <standalone_question>. Answer that question."
  },
  {
   "id": "frame.document_task",
   "kind": "derived",
   "meaning": "[DOCUMENT TASK] / [UPLOADED FILE(S)] answer from the uploaded documents when the question is about them."
  },
  {
   "id": "note.grounding",
   "kind": "derived",
   "meaning": "[GROUNDING NOTE] state only what the record holds; never fill in typical values."
  },
  {
   "id": "frame.medication_label",
   "kind": "derived",
   "meaning": "[MEDICATION QUESTION] answer from the official label below; no papers unless wants_research."
  },
  {
   "id": "frame.medication_lookup",
   "kind": "derived",
   "meaning": "[MEDICATION QUESTION] call drug_lookup first; never present papers as drug information."
  },
  {
   "id": "data.calc",
   "kind": "derived",
   "meaning": "[CALCULATION] use the calculate tool; one expression including rounding; temperature pinned to 0.1."
  },
  {
   "id": "data.bmi",
   "kind": "derived",
   "meaning": "[BMI CALCULATION] call calculate_bmi in the user's units; report exactly."
  },
  {
   "id": "data.dose",
   "kind": "derived",
   "meaning": "[DOSE CALCULATION] call calculate_dosage; a mg/kg figure drops the drug label prefetch."
  },
  {
   "id": "data.barcode",
   "kind": "derived",
   "meaning": "[PRODUCT LOOKUP] open_food_facts by barcode; no web search."
  },
  {
   "id": "data.nutrition",
   "kind": "derived",
   "meaning": "[NUTRITION LOOKUP] usda_food_search with the food as specific as the user said."
  },
  {
   "id": "memory.server_handled",
   "kind": "derived",
   "meaning": "[MEMORY COMMAND HANDLED BY THE SERVER] do not call memory tools or claim a save; answer the rest."
  },
  {
   "id": "memory.server_verified",
   "kind": "derived",
   "meaning": "[SERVER-VERIFIED MEMORY ACTION] saved / NOT saved (consent) / pending confirmation."
  },
  {
   "id": "note.health_memory_off",
   "kind": "derived",
   "meaning": "[HEALTH MEMORY OFF] say how to turn it on, not that records are inaccessible."
  },
  {
   "id": "note.premise_hipaa",
   "kind": "derived",
   "meaning": "VERIFIED FACT FOR THIS TURN: the cited 45 CFR section does not exist."
  },
  {
   "id": "note.pasted_injection",
   "kind": "derived",
   "meaning": "The pasted text is framed as untrusted data; the user's own request stays outside the frame."
  },
  {
   "id": "note.history_cut",
   "kind": "derived",
   "meaning": "Only the recent part of the conversation is visible; say so instead of guessing."
  },
  {
   "id": "note.regenerated_not_edited",
   "kind": "derived",
   "meaning": "Tell the user the image was re-generated, not edited."
  },
  {
   "id": "guard.no_image_this_turn",
   "kind": "derived",
   "meaning": "The agent's own generate_image is refused this turn (RepeatedImageGuard)."
  },
  {
   "id": "note.live_figure",
   "kind": "derived",
   "meaning": "LIVE_DATA_NOTE / MOVING_FIGURE_NOTE on the results block."
  }
 ]
}