Skip to main content

Module message

Module message 

Source
Expand description

Core message types shared across all providers.

A Message represents a single turn in a conversation. Providers are responsible for converting these generic types into their API-specific format via From/TryFrom.

Structs§

Text
Plain text content.
ToolCall
A tool invocation requested by the model.
ToolResult
The result of executing a tool, sent back to the model.

Enums§

AssistantContent
Content that can appear in an assistant-turn message.
Message
A single turn in a conversation.
UserContent
Content that can appear in a user-turn message.