full diff

place.hud.chatDefs

From
bafyreidktckmissj534fjtwekgr5ggjnsdmccswemebsgf7yo4sunh7vc4 indexed 2026-11-30 08:05 UTC View this version
To
bafyreif2szplhfnlnlmksl6yz73bj5ynzmgycudfpgnjds63pzkxvpypzm indexed 2026-12-01 00:05 UTC View this version

Compatibility

backward compatible Backward compatible. 17 non-breaking changes.

Non-breaking changes (17)
  • AddedVertex AddedVertex { vertex_id: "place.hud.app#collection" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.app#origin" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.origins" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.origins:items" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.reads" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.reads:items" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.writes" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.writes:items" }
  • AddedEdge AddedEdge { src: "place.hud.chatDefs#artifactVersion", tgt: "place.hud.chatDefs#artifactVersion.origins", kind: "prop", name: Some("origins") }
  • AddedEdge AddedEdge { src: "place.hud.chatDefs#artifactVersion", tgt: "place.hud.chatDefs#artifactVersion.reads", kind: "prop", name: Some("reads") }
  • AddedEdge AddedEdge { src: "place.hud.chatDefs#artifactVersion", tgt: "place.hud.chatDefs#artifactVersion.writes", kind: "prop", name: Some("writes") }
  • AddedEdge AddedEdge { src: "place.hud.chatDefs#artifactVersion.origins", tgt: "place.hud.chatDefs#artifactVersion.origins:items", kind: "items", name: None }
  • AddedEdge AddedEdge { src: "place.hud.chatDefs#artifactVersion.origins:items", tgt: "place.hud.app#origin", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "place.hud.chatDefs#artifactVersion.reads", tgt: "place.hud.chatDefs#artifactVersion.reads:items", kind: "items", name: None }
  • AddedEdge AddedEdge { src: "place.hud.chatDefs#artifactVersion.reads:items", tgt: "place.hud.app#collection", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "place.hud.chatDefs#artifactVersion.writes", tgt: "place.hud.chatDefs#artifactVersion.writes:items", kind: "items", name: None }
  • AddedEdge AddedEdge { src: "place.hud.chatDefs#artifactVersion.writes:items", tgt: "place.hud.app#collection", kind: "ref", name: None }

Migration guidance

Added

  • AddedVertex { vertex_id: "place.hud.app#collection" }
  • AddedVertex { vertex_id: "place.hud.app#origin" }
  • AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.origins" }
  • AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.origins:items" }
  • AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.reads" }
  • AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.reads:items" }
  • AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.writes" }
  • AddedVertex { vertex_id: "place.hud.chatDefs#artifactVersion.writes:items" }

Notes

  • Non-breaking: AddedEdge { src: "place.hud.chatDefs#artifactVersion", tgt: "place.hud.chatDefs#artifactVersion.origins", kind: "prop", name: Some("origins") }
  • Non-breaking: AddedEdge { src: "place.hud.chatDefs#artifactVersion", tgt: "place.hud.chatDefs#artifactVersion.reads", kind: "prop", name: Some("reads") }
  • Non-breaking: AddedEdge { src: "place.hud.chatDefs#artifactVersion", tgt: "place.hud.chatDefs#artifactVersion.writes", kind: "prop", name: Some("writes") }
  • Non-breaking: AddedEdge { src: "place.hud.chatDefs#artifactVersion.origins", tgt: "place.hud.chatDefs#artifactVersion.origins:items", kind: "items", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.chatDefs#artifactVersion.origins:items", tgt: "place.hud.app#origin", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.chatDefs#artifactVersion.reads", tgt: "place.hud.chatDefs#artifactVersion.reads:items", kind: "items", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.chatDefs#artifactVersion.reads:items", tgt: "place.hud.app#collection", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.chatDefs#artifactVersion.writes", tgt: "place.hud.chatDefs#artifactVersion.writes:items", kind: "items", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.chatDefs#artifactVersion.writes:items", tgt: "place.hud.app#collection", kind: "ref", name: None }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "artifact": {
55 "description": "Something the chat made, kept with it in versions: an app (a frame app not yet published, or published from the chat), or a view (a tile the model named).",
66 "properties": {
77 "key": {
88 "description": "The model's name for it, unique in the chat: 1 to 40 of a-z, 0-9 and -.",
99 "maxLength": 40,
1010 "minLength": 1,
1111 "type": "string"
1212 },
1313 "kind": {
1414 "knownValues": [
1515 "app",
1616 "view"
1717 ],
1818 "maxLength": 32,
1919 "type": "string"
2020 },
2121 "latest": {
2222 "description": "Its newest version.",
2323 "minimum": 1,
2424 "type": "integer"
2525 },
2626 "name": {
2727 "description": "An app's name, a view's title, as its latest version has it.",
2828 "maxGraphemes": 200,
2929 "maxLength": 2000,
3030 "type": "string"
3131 },
3232 "published": {
3333 "ref": "#published",
3434 "type": "ref"
3535 },
3636 "versions": {
3737 "description": "The versions kept, oldest first: at most 10, the oldest dropped first, never a published one.",
3838 "items": {
3939 "ref": "#artifactVersion",
4040 "type": "ref"
4141 },
4242 "type": "array"
4343 }
4444 },
4545 "required": [
4646 "key",
4747 "kind",
4848 "name",
4949 "latest",
5050 "versions"
5151 ],
5252 "type": "object"
5353 },
5454 "artifactEvent": {
5555 "description": "The answer made a version of an artifact (made, with the artifact as it is now), or tried to and was refused (made with problems).",
5656 "properties": {
5757 "artifact": {
5858 "ref": "#artifact",
5959 "type": "ref"
6060 },
6161 "made": {
6262 "ref": "#artifactRef",
6363 "type": "ref"
6464 },
6565 "turn": {
6666 "minimum": 1,
6767 "type": "integer"
6868 }
6969 },
7070 "required": [
7171 "turn",
7272 "made"
7373 ],
7474 "type": "object"
7575 },
7676 "artifactRef": {
7777 "description": "A version of an artifact a turn made, or a version it tried to make and was refused: its problems, and no version.",
7878 "properties": {
7979 "key": {
8080 "maxLength": 40,
8181 "minLength": 1,
8282 "type": "string"
8383 },
8484 "problems": {
8585 "description": "Why the version was refused, each problem in a line.",
8686 "items": {
8787 "ref": "#problem",
8888 "type": "ref"
8989 },
9090 "maxLength": 50,
9191 "type": "array"
9292 },
9393 "version": {
9494 "description": "The version made.",
9595 "minimum": 1,
9696 "type": "integer"
9797 }
9898 },
9999 "required": [
100100 "key"
101101 ],
102102 "type": "object"
103103 },
104104 "artifactVersion": {
105105 "description": "A version of an artifact. An app's document is read with get_app_source, and drawn at /a/chat/<chat>/<key>/<version>; a view's is its tile.",
106106 "properties": {
107107 "createdAt": {
108108 "format": "datetime",
109109 "type": "string"
110110 },
111111 "edits": {
112112 "description": "With how edits, how many.",
113113 "minimum": 1,
114114 "type": "integer"
115115 },
116116 "how": {
117117 "description": "whole: given whole; edits: the version before it, changed by edits.",
118118 "knownValues": [
119119 "whole",
120120 "edits"
121121 ],
122122 "maxLength": 32,
123123 "type": "string"
124124 },
125125 "name": {
126126 "description": "An app's name.",
127127 "maxGraphemes": 64,
128128 "maxLength": 640,
129129 "type": "string"
130130 },
131 "origins": {
132 "description": "The origins an app loads pictures and audio from; left out where it names none.",
133 "items": {
134 "ref": "place.hud.app#origin",
135 "type": "ref"
136 },
137 "maxLength": 8,
138 "type": "array"
139 },
140 "reads": {
141 "description": "The public collections an app reads beyond its entries; left out where it names none.",
142 "items": {
143 "ref": "place.hud.app#collection",
144 "type": "ref"
145 },
146 "maxLength": 16,
147 "type": "array"
148 },
131149 "summary": {
132150 "description": "An app's summary.",
133151 "maxGraphemes": 300,
134152 "maxLength": 3000,
135153 "type": "string"
136154 },
137155 "tile": {
138156 "description": "A view's tile.",
139157 "ref": "#tile",
140158 "type": "ref"
141159 },
142160 "turn": {
143161 "description": "The chat's turn that made it, where a turn did.",
144162 "minimum": 1,
145163 "type": "integer"
146164 },
147165 "version": {
148166 "minimum": 1,
149167 "type": "integer"
168 },
169 "writes": {
170 "description": "The collections an app writes beyond its entries; left out where it names none.",
171 "items": {
172 "ref": "place.hud.app#collection",
173 "type": "ref"
174 },
175 "maxLength": 8,
176 "type": "array"
150177 }
151178 },
152179 "required": [
153180 "version",
154181 "createdAt",
155182 "how"
156183 ],
157184 "type": "object"
158185 },
159186 "chatSummary": {
160187 "description": "A chat, as the list of a person's chats shows it.",
161188 "properties": {
162189 "chat": {
163190 "description": "The chat's id: 12 hex digits.",
164191 "maxLength": 12,
165192 "minLength": 12,
166193 "type": "string"
167194 },
168195 "title": {
169196 "description": "Its first message, cut short.",
170197 "maxGraphemes": 200,
171198 "maxLength": 2000,
172199 "type": "string"
173200 },
174201 "updatedAt": {
175202 "description": "When its last message was written.",
176203 "format": "datetime",
177204 "type": "string"
178205 }
179206 },
180207 "required": [
181208 "chat",
182209 "title",
183210 "updatedAt"
184211 ],
185212 "type": "object"
186213 },
187214 "chatView": {
188215 "description": "A chat whole: every message, oldest first.",
189216 "properties": {
190217 "artifacts": {
191218 "description": "What the chat made, apps and views, oldest first, each with its versions.",
192219 "items": {
193220 "ref": "#artifact",
194221 "type": "ref"
195222 },
196223 "type": "array"
197224 },
198225 "chat": {
199226 "maxLength": 12,
200227 "minLength": 12,
201228 "type": "string"
202229 },
203230 "messages": {
204231 "items": {
205232 "ref": "#message",
206233 "type": "ref"
207234 },
208235 "type": "array"
209236 },
210237 "running": {
211238 "description": "Whether the model is answering its last message now: its progress comes on getChatEvents.",
212239 "type": "boolean"
213240 },
214241 "storage": {
215242 "ref": "#storage",
216243 "type": "ref"
217244 },
218245 "title": {
219246 "maxGraphemes": 200,
220247 "maxLength": 2000,
221248 "type": "string"
222249 }
223250 },
224251 "required": [
225252 "chat",
226253 "title",
227254 "messages",
228255 "running"
229256 ],
230257 "type": "object"
231258 },
232259 "doneEvent": {
233260 "description": "The answer is done, or ended early (error): the chat holds it whole now.",
234261 "properties": {
235262 "error": {
236263 "maxLength": 2000,
237264 "type": "string"
238265 },
239266 "turn": {
240267 "minimum": 1,
241268 "type": "integer"
242269 }
243270 },
244271 "required": [
245272 "turn"
246273 ],
247274 "type": "object"
248275 },
249276 "message": {
250277 "description": "A message: the person's, or the model's answer to the one before.",
251278 "properties": {
252279 "artifacts": {
253280 "description": "The versions of the chat's artifacts the model's answer made, or tried to make and was refused, in order: an app's drawn as a card in the conversation.",
254281 "items": {
255282 "ref": "#artifactRef",
256283 "type": "ref"
257284 },
258285 "type": "array"
259286 },
260287 "createdAt": {
261288 "format": "datetime",
262289 "type": "string"
263290 },
264291 "error": {
265292 "description": "Why the model's answer ended before it was done, in a line.",
266293 "maxLength": 2000,
267294 "type": "string"
268295 },
269296 "role": {
270297 "knownValues": [
271298 "person",
272299 "model"
273300 ],
274301 "maxLength": 32,
275302 "type": "string"
276303 },
277304 "steps": {
278305 "description": "The tool calls the model made for its answer, in order: none for a person's.",
279306 "items": {
280307 "ref": "#step",
281308 "type": "ref"
282309 },
283310 "type": "array"
284311 },
285312 "text": {
286313 "description": "What was written, as plain text with Markdown's emphasis, links and lists.",
287314 "maxLength": 10000,
288315 "type": "string"
289316 },
290317 "tiles": {
291318 "description": "What its answer draws, in order: none for a person's.",
292319 "items": {
293320 "ref": "#tile",
294321 "type": "ref"
295322 },
296323 "type": "array"
297324 },
298325 "turn": {
299326 "description": "The exchange it belongs to: a person's message and the answer after it share one.",
300327 "minimum": 1,
301328 "type": "integer"
302329 }
303330 },
304331 "required": [
305332 "turn",
306333 "role",
307334 "text",
308335 "steps",
309336 "tiles"
310337 ],
311338 "type": "object"
312339 },
313340 "problem": {
314341 "description": "A problem with what the model gave, in a line.",
315342 "properties": {
316343 "message": {
317344 "maxLength": 2000,
318345 "type": "string"
319346 }
320347 },
321348 "required": [
322349 "message"
323350 ],
324351 "type": "object"
325352 },
326353 "published": {
327354 "description": "Where an app artifact was published from the chat (place.hud.publishChatArtifact): its place.hud.app record and its page.",
328355 "properties": {
329356 "cid": {
330357 "format": "cid",
331358 "type": "string"
332359 },
333360 "uri": {
334361 "format": "at-uri",
335362 "type": "string"
336363 },
337364 "url": {
338365 "description": "The app's page, /a/<handle>/<rkey> on this server.",
339366 "format": "uri",
340367 "type": "string"
341368 },
342369 "version": {
343370 "description": "The version published last.",
344371 "minimum": 1,
345372 "type": "integer"
346373 }
347374 },
348375 "required": [
349376 "uri",
350377 "cid",
351378 "url",
352379 "version"
353380 ],
354381 "type": "object"
355382 },
356383 "step": {
357384 "description": "A tool call the model made.",
358385 "properties": {
359386 "arguments": {
360387 "description": "What it was called with, an object.",
361388 "type": "unknown"
362389 },
363390 "call": {
364391 "description": "The call's id, the same on each event about it.",
365392 "maxLength": 64,
366393 "type": "string"
367394 },
368395 "ms": {
369396 "description": "How long it took, once done or failed.",
370397 "minimum": 0,
371398 "type": "integer"
372399 },
373400 "status": {
374401 "knownValues": [
375402 "running",
376403 "done",
377404 "failed"
378405 ],
379406 "maxLength": 32,
380407 "type": "string"
381408 },
382409 "summary": {
383410 "description": "The tool's own short summary of its answer, or why it failed.",
384411 "maxLength": 2000,
385412 "type": "string"
386413 },
387414 "tool": {
388415 "description": "The tool, by its MCP name.",
389416 "maxLength": 64,
390417 "type": "string"
391418 }
392419 },
393420 "required": [
394421 "call",
395422 "tool",
396423 "status"
397424 ],
398425 "type": "object"
399426 },
400427 "stepEvent": {
401428 "description": "A step began, or ended: the step as it is now, replacing the one of its id.",
402429 "properties": {
403430 "step": {
404431 "ref": "#step",
405432 "type": "ref"
406433 },
407434 "turn": {
408435 "minimum": 1,
409436 "type": "integer"
410437 }
411438 },
412439 "required": [
413440 "turn",
414441 "step"
415442 ],
416443 "type": "object"
417444 },
418445 "storage": {
419446 "description": "Where the chat is kept: in a space of the person's own on their PDS (space, its uri), or in this server's files (file, and why).",
420447 "properties": {
421448 "kind": {
422449 "knownValues": [
423450 "space",
424451 "file"
425452 ],
426453 "maxLength": 32,
427454 "type": "string"
428455 },
429456 "reason": {
430457 "description": "Why it is in this server's files, in a line.",
431458 "maxLength": 2000,
432459 "type": "string"
433460 },
434461 "uri": {
435462 "description": "The space, at:space/<did>/place.hud.chat/<chat>.",
436463 "maxLength": 2000,
437464 "type": "string"
438465 }
439466 },
440467 "required": [
441468 "kind"
442469 ],
443470 "type": "object"
444471 },
445472 "textEvent": {
446473 "description": "More of the model's answer's words, to add to what came before.",
447474 "properties": {
448475 "text": {
449476 "maxLength": 10000,
450477 "type": "string"
451478 },
452479 "turn": {
453480 "minimum": 1,
454481 "type": "integer"
455482 }
456483 },
457484 "required": [
458485 "turn",
459486 "text"
460487 ],
461488 "type": "object"
462489 },
463490 "tile": {
464491 "description": "What an answer draws: a read tool and its arguments, as a canvas's tile names them. The page calls the tool (callTool) to draw it, so it always draws what is there now.",
465492 "properties": {
466493 "arguments": {
467494 "description": "The tool's arguments, an object; at most 64 KiB as JSON.",
468495 "type": "unknown"
469496 },
470497 "artifact": {
471498 "description": "The key of the view artifact it is a version of, where the model named one: drawing the same key again is its next version.",
472499 "maxLength": 40,
473500 "type": "string"
474501 },
475502 "step": {
476503 "description": "The call of the step that drew it.",
477504 "maxLength": 64,
478505 "type": "string"
479506 },
480507 "title": {
481508 "description": "What the model calls what it draws.",
482509 "maxGraphemes": 200,
483510 "maxLength": 2000,
484511 "type": "string"
485512 },
486513 "tool": {
487514 "knownValues": [
488515 "describe_repo",
489516 "describe_app",
490517 "list_records",
491518 "get_record",
492519 "query",
493520 "open_app"
494521 ],
495522 "maxLength": 64,
496523 "type": "string"
497524 }
498525 },
499526 "required": [
500527 "step",
501528 "tool",
502529 "arguments"
503530 ],
504531 "type": "object"
505532 },
506533 "tileEvent": {
507534 "description": "The answer draws another tile.",
508535 "properties": {
509536 "tile": {
510537 "ref": "#tile",
511538 "type": "ref"
512539 },
513540 "turn": {
514541 "minimum": 1,
515542 "type": "integer"
516543 }
517544 },
518545 "required": [
519546 "turn",
520547 "tile"
521548 ],
522549 "type": "object"
523550 }
524551 },
525552 "description": "What the chat's methods and its event stream hold: a chat, its messages, the steps a model took and the tiles it drew.",
526553 "id": "place.hud.chatDefs",
527554 "lexicon": 1
528555}

Compare other versions