Message

The `Message` entity.

Definition

TypeScript
interface Message {
  id: string;
  threadId: string;
  authorParticipantId: string;
  content: Array<{ [x: string]: unknown; type: string }>;
  runId: string | null;
  createdAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
threadIdstringrequired — Thread this message belongs to.
authorParticipantIdstringrequired — Participant (user / agent / system) that authored the message.
contentArray<{ [x: string]: unknown; type: string; }>required — Ordered array of UIMessage parts (text, function calls, attachments, etc.).
runIdstring | nullrequired — Run that produced this message; null for user-authored messages.
createdAtstringreadonly required — ISO-8601 timestamp of creation.