Skip to main content

Module message

Module message 

Source
Expand description

Conversation messages.

The message data model implements serde serialization / deserialization: session persistence and cross-process transport (tool definitions and messages) serialize these types directly, no manual mapping needed.

A full conversation history is expressed as a Message sequence; each message consists of content blocks (text / images, or vendor-shaped blocks passed through verbatim via ContentBlock::Wire). The structured entry point of the content model is ContentBlock — the shape of Message stays unchanged, and consumers just match the new variant.

Structs§

ImageContent
Raw image data carried in a ContentBlock::Image.
ToolCall
A tool call requested by the model.

Enums§

ContentBlock
A content block within a message.
Message
A single message in a conversation.