content?: Array<MessageContentDelta>

The content of the message in array of text and/or images.

One of the following:
ImageFileDeltaBlock { index, type, image_file }

References an image File in the content of a message.

index: number

The index of the content part in the message.

type: "image_file"

Always image_file.

image_file?: ImageFileDelta { detail, file_id }
TextDeltaBlock { index, type, text }

The text content that is part of a message.

index: number

The index of the content part in the message.

type: "text"

Always text.

text?: TextDelta { annotations, value }
RefusalDeltaBlock { index, type, refusal }

The refusal content that is part of a message.

index: number

The index of the refusal part in the message.

type: "refusal"

Always refusal.

refusal?: string
ImageURLDeltaBlock { index, type, image_url }

References an image URL in the content of a message.

index: number

The index of the content part in the message.

type: "image_url"

Always image_url.

image_url?: ImageURLDelta { detail, url }
role?: "user" | "assistant"

The entity that produced the message. One of user or assistant.

One of the following:
"user"
"assistant"