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
Kinddefs
Authorityhud.place
Commit rev3n3kx77nr7eju
Indexed

#artifact

object

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).

Properties

key

requiredstring

The model's name for it, unique in the chat: 1 to 40 of a-z, 0-9 and -.

  • minLength: 1
  • maxLength: 40

kind

requiredstring
  • maxLength: 32
  • knownValues: app | view

latest

requiredinteger

Its newest version.

  • minimum: 1

name

requiredstring

An app's name, a view's title, as its latest version has it.

  • maxLength: 2000
  • maxGraphemes: 200
Reference

versions

requiredarray

The versions kept, oldest first: at most 10, the oldest dropped first, never a published one.

itemsref
Reference

#artifactEvent

object

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).

Properties

Reference

made

requiredref
Reference

turn

requiredinteger
  • minimum: 1

#artifactRef

object

A version of an artifact a turn made, or a version it tried to make and was refused: its problems, and no version.

Properties

key

requiredstring
  • minLength: 1
  • maxLength: 40

Why the version was refused, each problem in a line.

  • maxLength: 50
itemsref
Reference

version

integer

The version made.

  • minimum: 1

#artifactVersion

object

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.

Properties

createdAt

requiredstring · datetime

edits

integer

With how edits, how many.

  • minimum: 1

how

requiredstring

whole: given whole; edits: the version before it, changed by edits.

  • maxLength: 32
  • knownValues: whole | edits

name

string

An app's name.

  • maxLength: 640
  • maxGraphemes: 64

origins

array

The origins an app loads pictures and audio from; left out where it names none.

  • maxLength: 8
itemsref

reads

array

The public collections an app reads beyond its entries; left out where it names none.

  • maxLength: 16
itemsref

summary

string

An app's summary.

  • maxLength: 3000
  • maxGraphemes: 300

tile

ref

A view's tile.

Reference

turn

integer

The chat's turn that made it, where a turn did.

  • minimum: 1

version

requiredinteger
  • minimum: 1

writes

array

The collections an app writes beyond its entries; left out where it names none.

  • maxLength: 8
itemsref

#chatSummary

object

A chat, as the list of a person's chats shows it.

Properties

chat

requiredstring

The chat's id: 12 hex digits.

  • minLength: 12
  • maxLength: 12

title

requiredstring

Its first message, cut short.

  • maxLength: 2000
  • maxGraphemes: 200

updatedAt

requiredstring · datetime

When its last message was written.

#chatView

object

A chat whole: every message, oldest first.

Properties

What the chat made, apps and views, oldest first, each with its versions.

itemsref
Reference

chat

requiredstring
  • minLength: 12
  • maxLength: 12

messages

requiredarray
itemsref
Reference

running

requiredboolean

Whether the model is answering its last message now: its progress comes on getChatEvents.

Reference

title

requiredstring
  • maxLength: 2000
  • maxGraphemes: 200

#doneEvent

object

The answer is done, or ended early (error): the chat holds it whole now.

Properties

error

string
  • maxLength: 2000

turn

requiredinteger
  • minimum: 1

#message

object

A message: the person's, or the model's answer to the one before.

Properties

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.

itemsref
Reference

createdAt

string · datetime

error

string

Why the model's answer ended before it was done, in a line.

  • maxLength: 2000

role

requiredstring
  • maxLength: 32
  • knownValues: person | model

steps

requiredarray

The tool calls the model made for its answer, in order: none for a person's.

itemsref
Reference

text

requiredstring

What was written, as plain text with Markdown's emphasis, links and lists.

  • maxLength: 10000

tiles

requiredarray

What its answer draws, in order: none for a person's.

itemsref
Reference

turn

requiredinteger

The exchange it belongs to: a person's message and the answer after it share one.

  • minimum: 1

#problem

object

A problem with what the model gave, in a line.

Properties

message

requiredstring
  • maxLength: 2000

#published

object

Where an app artifact was published from the chat (place.hud.publishChatArtifact): its place.hud.app record and its page.

Properties

cid

requiredstring · cid

uri

requiredstring · at-uri

url

requiredstring · uri

The app's page, /a/<handle>/<rkey> on this server.

version

requiredinteger

The version published last.

  • minimum: 1

#step

object

A tool call the model made.

Properties

arguments

unknown

What it was called with, an object.

call

requiredstring

The call's id, the same on each event about it.

  • maxLength: 64

ms

integer

How long it took, once done or failed.

  • minimum: 0

status

requiredstring
  • maxLength: 32
  • knownValues: running | done | failed

summary

string

The tool's own short summary of its answer, or why it failed.

  • maxLength: 2000

tool

requiredstring

The tool, by its MCP name.

  • maxLength: 64

#stepEvent

object

A step began, or ended: the step as it is now, replacing the one of its id.

Properties

step

requiredref
Reference

turn

requiredinteger
  • minimum: 1

#storage

object

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).

Properties

kind

requiredstring
  • maxLength: 32
  • knownValues: space | file

reason

string

Why it is in this server's files, in a line.

  • maxLength: 2000

uri

string

The space, at:space/<did>/place.hud.chat/<chat>.

  • maxLength: 2000

#textEvent

object

More of the model's answer's words, to add to what came before.

Properties

text

requiredstring
  • maxLength: 10000

turn

requiredinteger
  • minimum: 1

#tile

object

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.

Properties

arguments

requiredunknown

The tool's arguments, an object; at most 64 KiB as JSON.

artifact

string

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.

  • maxLength: 40

step

requiredstring

The call of the step that drew it.

  • maxLength: 64

title

string

What the model calls what it draws.

  • maxLength: 2000
  • maxGraphemes: 200

tool

requiredstring
  • maxLength: 64
  • knownValues: describe_repo | describe_app | list_records | get_record | query | open_app

#tileEvent

object

The answer draws another tile.

Properties

tile

requiredref
Reference

turn

requiredinteger
  • minimum: 1

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • place.hud.chat.message

    record not from the namespace authority

    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.

  • place.hud.chat.artifact

    record not from the namespace authority

    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>.

  • A 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.

  • A 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

  • An app a chat made, as its page shows it.