Send Message
User message, 1–2000 characters.
Actor role sending the message (non-empty string, e.g. "user").
Existing thread to continue. If omitted, a new thread is created.
Session identifier for grouping threads.
App-specific lesson context, passed through to prompt construction.
App-specific session context, passed through to prompt construction.
Free-form page/document context.
Prior messages to seed context, if not relying on threadId.
Response
Fraction of context window used (0–1)
Send Message (Streaming)
Same request body as Send Message, plus:
Response
Content-Type: text/event-stream. Each data: event is one of:
Errors