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, currently text only. The structured entry point of the content model is ContentBlock — to add multimodal content (images / files), add a variant there; the shape of Message stays unchanged, and consumers just match the new variant.

Structs§

ToolCall
A tool call requested by the model.

Enums§

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