Read New Bot Chat Messages
Changed onPoll a chat: where its bots stand, and the messages, media, files and question posted since cursor. Pass wait to hold the request until the bots finish or ask something. Call again with the returned cursor until finished is true.
Request
- Base URLhttps://api.krea.ai
- AuthHTTP bearer
Path parameters
Query parameters
The cursor of the previous response, so only what happened since is returned. Without one, the read starts after your own newest message.
Seconds to wait for the bots to finish or ask something before answering. 0 answers at once; the most is 30.
Response
The state of the chat.
working while a bot is mid-turn, needs_input when a bot waits on question, then done, failed or stopped.
True once status is done, failed or stopped.
New steps of the working bots' turns.
New visible messages since cursor, oldest first.
The bots' new message text, joined.
Images, video and audio the bots posted since cursor.
Present when status is failed. out_of_compute, bot_usage_limit and chat_usage_limit are billing holds, not faults.
Bots held in this chat because the workspace ran out of compute units. Add units, then call retry or send a message.
True when wait ran out while a bot was still working, or more is unread than one response carries. Read again with cursor.
Changes
- info
endpoint added
- info