Model Message
v6 wire-shape message — the type passed to LanguageModel generations. Renamed from CoreMessage (v5) per the AI SDK v6 migration.
A message has a role and a list of content parts. For simple text messages, content is a single ContentPart.Text. Tool calls and tool results travel as their own content part variants. Tool approval (request and response) likewise rides on dedicated content parts so approval state is persisted in the message log alongside everything else.
Since
0.3.0-beta01