Skip to main content

Module message

Module message 

Source
Expand description

The message union and its multimodal content parts.

Structs§

ActivityMessage
A structured progress update the client renders as it likes.
AssistantMessage
Model output, optionally requesting tool calls.
BinaryInputContent
The legacy binary content part.
DeveloperMessage
Out-of-band instructions from the application developer.
MediaInputContent
An image, audio, video or document content part.
ReasoningMessage
Model reasoning, shown separately from the reply.
SystemMessage
The system prompt.
TextInputContent
A plain-text content part.
ToolMessage
The result of a tool call, fed back to the model.
UserMessage
End-user input, possibly multimodal.

Enums§

InputContent
One part of a multimodal user message.
InputContentSource
Where the bytes of a multimodal part live.
Message
A message in a thread, discriminated by its role.
Role
Every role the protocol defines.
UserContent
The body of a user message: either a bare string or an ordered list of multimodal parts.