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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3jbjejsvsju |
| Indexed |
Procedure
procedure · POSTInput
application/jsonOutput
application/jsonErrors
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 matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
A chat's answer as the model writes it, as server-sent events.
-
A chat, whole.
-
app.lovesky.chat.sendMessage
procedureSend a message in one of the caller's conversations. Requires an authenticated Lovesky session.
-
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.listChats
queryThe person's chats, the latest first.