Skip to content
Sursa Developers

Objects

ChatEvent

Event of the POST /v1/chat stream (a data: <JSON> line; the type field tells events apart). Order: meta, sources, data (if there are datasets), stage/tool (as the answer progresses), token (the answer text in parts), done. After an error that occurs once the stream has started, error comes instead of done. Clients must skip unknown type values.

Fields

Used by