id: string | null

The ID of this item, or null for legacy user messages whose ID was not recorded.

minLength0

The content of the message. User messages contain input text or images; assistant messages contain output text.

minItems0
maxItems2000
One of the following:
MessageContentResourceInputText { text, type }

Text supplied by the user.

text: string

The text supplied by the user.

minLength0
type: "input_text"

The type of the object. Always input_text.

MessageContentResourceInputImage { image_url, type }

An image supplied by the user.

image_url: string

The URL of the image supplied by the user, which may be a base64-encoded data URL.

minLength0
type: "input_image"

The type of the object. Always input_image.

MessageContentResourceOutputText { text, type }

Text produced by the assistant.

text: string

The text produced by the assistant.

minLength0
type: "output_text"

The type of the object. Always output_text.

phase: "commentary" | "final_answer" | null

The phase of an assistant message. Null for user messages.

One of the following:
"commentary"

Commentary produced while the agent works.

"final_answer"

The agent’s final answer.

role: "user" | "assistant"

The role of the message author.

One of the following:
"user"
"assistant"

The status of the message. User messages are always completed.

turn_id: string

The ID of the turn that contains this item.

minLength0
type: "message"

The item type. Always message.