place.hud.chatDefs
What the chat's methods and its event stream hold: a chat, its messages, the steps a model took and the tiles it drew.
Details · defs
| Kind | defs |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3kx77nr7eju |
| Indexed |
Showing version bafyreif2szplhfnlnlmksl6yz73bj5ynzmgycudfpgnjds63pzkxvpypzm. Show the latest
#artifact
objectSomething 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).
Properties
The model's name for it, unique in the chat: 1 to 40 of a-z, 0-9 and -.
minLength: 1maxLength: 40
maxLength: 32knownValues: app | view
Its newest version.
minimum: 1
An app's name, a view's title, as its latest version has it.
maxLength: 2000maxGraphemes: 200
published
refThe versions kept, oldest first: at most 10, the oldest dropped first, never a published one.
#artifactEvent
objectThe answer made a version of an artifact (made, with the artifact as it is now), or tried to and was refused (made with problems).
Properties
minimum: 1
#artifactRef
objectA version of an artifact a turn made, or a version it tried to make and was refused: its problems, and no version.
#artifactVersion
objectA 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.
Properties
edits
integerWith how edits, how many.
minimum: 1
whole: given whole; edits: the version before it, changed by edits.
maxLength: 32knownValues: whole | edits
name
stringAn app's name.
maxLength: 640maxGraphemes: 64
origins
arrayThe origins an app loads pictures and audio from; left out where it names none.
maxLength: 8
reads
arrayThe public collections an app reads beyond its entries; left out where it names none.
maxLength: 16
summary
stringAn app's summary.
maxLength: 3000maxGraphemes: 300
turn
integerThe chat's turn that made it, where a turn did.
minimum: 1
minimum: 1
writes
arrayThe collections an app writes beyond its entries; left out where it names none.
maxLength: 8
#chatSummary
objectA chat, as the list of a person's chats shows it.
#chatView
objectA chat whole: every message, oldest first.
Properties
artifacts
arrayWhat the chat made, apps and views, oldest first, each with its versions.
minLength: 12maxLength: 12
Whether the model is answering its last message now: its progress comes on getChatEvents.
maxLength: 2000maxGraphemes: 200
#doneEvent
objectThe answer is done, or ended early (error): the chat holds it whole now.
#message
objectA message: the person's, or the model's answer to the one before.
Properties
artifacts
arrayThe 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.
createdAt
string · datetimeerror
stringWhy the model's answer ended before it was done, in a line.
maxLength: 2000
maxLength: 32knownValues: person | model
The tool calls the model made for its answer, in order: none for a person's.
What was written, as plain text with Markdown's emphasis, links and lists.
maxLength: 10000
The exchange it belongs to: a person's message and the answer after it share one.
minimum: 1
#problem
objectA problem with what the model gave, in a line.
Properties
maxLength: 2000
#published
objectWhere an app artifact was published from the chat (place.hud.publishChatArtifact): its place.hud.app record and its page.
#step
objectA tool call the model made.
Properties
arguments
unknownWhat it was called with, an object.
The call's id, the same on each event about it.
maxLength: 64
ms
integerHow long it took, once done or failed.
minimum: 0
maxLength: 32knownValues: running | done | failed
summary
stringThe tool's own short summary of its answer, or why it failed.
maxLength: 2000
The tool, by its MCP name.
maxLength: 64
#stepEvent
objectA step began, or ended: the step as it is now, replacing the one of its id.
#storage
objectWhere 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).
#textEvent
objectMore of the model's answer's words, to add to what came before.
#tile
objectWhat 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.
Properties
The tool's arguments, an object; at most 64 KiB as JSON.
artifact
stringThe key of the view artifact it is a version of, where the model named one: drawing the same key again is its next version.
maxLength: 40
The call of the step that drew it.
maxLength: 64
title
stringWhat the model calls what it draws.
maxLength: 2000maxGraphemes: 200
maxLength: 64knownValues: describe_repo | describe_app | list_records | get_record | query | open_app
#tileEvent
objectThe answer draws another tile.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
A message of a chat, in its person's repo in the chat's space (place.hud.chat), keyed by a TID of when it was written: the person's words, or the model's answer to them, as place.hud.chatDefs#message holds it.
-
Something a chat made, an app or a view, in its person's repo in the chat's space (place.hud.chat), keyed by its key: the name the model gave it (1 to 40 of a-z, 0-9 and -). Its versions are place.hud.chat.version records keyed <key>-<version>.
-
place.hud.chat.version
recordA version of something a chat made (place.hud.chat.artifact), in its person's repo in the chat's space (place.hud.chat), keyed <key>-<version>: an app's document, words and kinds, as preview_app takes them, its files blobs that this record alone references, so its PDS serves them through com.atproto.space.getBlob alone; or a view's tile.
-
place.hud.chat
spaceA chat of HUD's, keyed by the chat's id (12 hex digits), with the person who chats as its authority, a personal space they alone read: its info, one place.hud.chat.info record keyed self; its messages, each a place.hud.chat.message record keyed by a TID; and what it made, each a place.hud.chat.artifact record keyed by its key and its versions, place.hud.chat.version records keyed <key>-<version>, all in that person's repo in the space. The views the person's chats remember are in their space of
-
place.hud.getChatApp
queryAn app a chat made, as its page shows it.