Defined in: realtime/types.ts
A message in a realtime conversation. Contains one or more content parts representing text, audio, tool calls, or images.
id: string;
Unique message identifier.
role: 'user' | 'assistant';
Message role.
timestamp: number;
Timestamp when the message was created (milliseconds since epoch).
parts: Array<RealtimeMessagePart>;
Content parts of the message. Can include RealtimeTextPart, RealtimeAudioPart, RealtimeToolCallPart, RealtimeToolResultPart, or RealtimeImagePart.
optional interrupted: boolean;
Whether this message was interrupted by the user.
optional audioId: string;
Reference to audio buffer if stored.
optional durationMs: number;
Duration of the audio in milliseconds.