Requests
The system prompt, messages and their parts, reasoning effort, and sampling.
Attachments
Images and text files, from disk or from memory, streamed into the request body.
Reading an answer
Whole or streamed answers, events, the completion, reasoning, usage, and cancelling.
Conversations
The request is the conversation. Keeping history, sending reasoning back, storing and restoring.
Tools
Describing tools to a model, answering its calls, and the loop that feeds results back.
Structured output
An answer as JSON, or as JSON that matches a schema, read back into a type.