Skip to content

Message

A message in the conversation history.

content: string | MessagePart[]

String for text-only messages, or array of parts for tool calls/results.


role: "system" | "user" | "assistant" | "tool"