Expand description
Provider-agnostic chat-message types.
Structs§
- Citation
- Source citation produced by the assistant. Populated only on the Anthropic-direct path when the model emits citations. Other providers return an empty vector.
- Message
- One message in a chat exchange. The body is a list of content
blocks; most callers pass a single
ContentBlock::Text. - Usage
- Token usage reported by the provider on a non-streaming response
(or as the final event of a stream). Fields default to
0on providers that don’t surface that breakdown.
Enums§
- Content
Block - One block of message content. Today: just text; future: image /
tool-use (Anthropic) / function-call (
OpenAI). - Role
- Who said what.