Expand description
The message union and its multimodal content parts.
Structs§
- Activity
Message - A structured progress update the client renders as it likes.
- Assistant
Message - Model output, optionally requesting tool calls.
- Binary
Input Content - The legacy
binarycontent part. - Developer
Message - Out-of-band instructions from the application developer.
- Media
Input Content - An image, audio, video or document content part.
- Reasoning
Message - Model reasoning, shown separately from the reply.
- System
Message - The system prompt.
- Text
Input Content - A plain-text content part.
- Tool
Message - The result of a tool call, fed back to the model.
- User
Message - End-user input, possibly multimodal.
Enums§
- Input
Content - One part of a multimodal user message.
- Input
Content Source - Where the bytes of a multimodal part live.
- Message
- A message in a thread, discriminated by its
role. - Role
- Every role the protocol defines.
- User
Content - The body of a user message: either a bare string or an ordered list of multimodal parts.