place.hud.sendChatMessage

Add the person's message to a chat (a new one where none is named), and start the model's answer: it reads with HUD's read tools as the person and draws its answer as tiles. Answers at once; the answer comes on getChatEvents, and is in getChat once done. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.

Repository @lexicons.hud.place did:plc:3tzbz4pml36u4mkresb6pdhv not from the namespace authority
Details · procedure
Kindprocedure
Authorityhud.place
Commit rev3n3jbjejsvsju
Indexed

Procedure

procedure · POST

Input

application/json

chat

string

The chat's id; none starts a new chat.

  • minLength: 12
  • maxLength: 12

text

requiredstring

The person's message.

  • minLength: 1
  • maxLength: 8000

Output

application/json

chat

requiredstring

The chat's id, new or as given.

  • minLength: 12
  • maxLength: 12

turn

requiredinteger

The turn the message and its answer share.

  • minimum: 1

Errors

NotFound

No chat of this id is the person's.

Busy

The model is still answering this chat's last message.

ChatUnavailable

No longer answered: a server with no model to chat with serves no sendChatMessage (MethodNotImplemented).

InvalidRequest

The input is not what the method takes.

AuthRequired

No live web session or HUD access token: sign in.

Similar lexicons

semantic match

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

  • place.hud.getChatEvents

    query not from the namespace authority

    A chat's answer as the model writes it, as server-sent events.

  • place.hud.getChat

    query not from the namespace authority

    A chat, whole.

  • Send a message in one of the caller's conversations. Requires an authenticated Lovesky session.

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

  • The person's chats, the latest first.