For the complete documentation index, see llms.txt. This page is also available as Markdown.

Message

A message is one turn in a Chat. User turns carry text; assistant turns carry an Answer.

Shape

json
{ "object": "message", "id": "msg_k7hcnivfll", "role": "assistant", "answer": { "text": "…", "citations": [ … ] }, "created_at": "…" }

role is user | assistant.

Streaming

With stream: true, the same content arrives as SSE events: message.delta, citation.added, message.completed, error. The final assembled object is identical to the non-streamed response.

chats · chat · answer · streaming-deep-review

Last updated