Messages
Build Assistants that can call models and use tools.
ModelsExpand Collapse
FileCitationDeltaAnnotation = object { index, type, end_index, 3 more } A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.
ImageFile = object { file_id, detail }
The File ID of the image in the message content. Set purpose="vision" when uploading the File if you need to later display the file content.
ImageFileDelta = object { detail, file_id }
detail: optional "auto" or "low" or "high"Specifies the detail level of the image if specified by the user. low uses fewer tokens, you can opt in to high resolution using high.
Specifies the detail level of the image if specified by the user. low uses fewer tokens, you can opt in to high resolution using high.
The File ID of the image in the message content. Set purpose="vision" when uploading the File if you need to later display the file content.
ImageFileDeltaBlock = object { index, type, image_file } References an image File in the content of a message.
References an image File in the content of a message.
Message = object { id, assistant_id, attachments, 11 more } Represents a message within a thread.
Represents a message within a thread.
If applicable, the ID of the assistant that authored this message.
attachments: array of object { file_id, tools } A list of files attached to the message, and the tools they were added to.
A list of files attached to the message, and the tools they were added to.
content: array of ImageFileContentBlock { image_file, type } or ImageURLContentBlock { image_url, type } or TextContentBlock { text, type } or RefusalContentBlock { refusal, type } The content of the message in array of text and/or images.
The content of the message in array of text and/or images.
ImageFileContentBlock = object { image_file, type } References an image File in the content of a message.
References an image File in the content of a message.
ImageURLContentBlock = object { image_url, type } References an image URL in the content of a message.
References an image URL in the content of a message.
incomplete_details: object { reason } On an incomplete message, details about why the message is incomplete.
On an incomplete message, details about why the message is incomplete.
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
The ID of the run associated with the creation of this message. Value is null when messages are created manually using the create message or create thread endpoints.
status: "in_progress" or "incomplete" or "completed"The status of the message, which can be either in_progress, incomplete, or completed.
The status of the message, which can be either in_progress, incomplete, or completed.
The thread ID that this message belongs to.
MessageDelta = object { content, role } The delta containing the fields that have changed on the Message.
The delta containing the fields that have changed on the Message.
content: optional array of ImageFileDeltaBlock { index, type, image_file } or TextDeltaBlock { index, type, text } or RefusalDeltaBlock { index, type, refusal } or ImageURLDeltaBlock { index, type, image_url } The content of the message in array of text and/or images.
The content of the message in array of text and/or images.
ImageFileDeltaBlock = object { index, type, image_file } References an image File in the content of a message.
References an image File in the content of a message.
Text = object { annotations, value }
annotations: array of FileCitationAnnotation { end_index, file_citation, start_index, 2 more } or FilePathAnnotation { end_index, file_path, start_index, 2 more }
FileCitationAnnotation = object { end_index, file_citation, start_index, 2 more } A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.
TextDelta = object { annotations, value }
annotations: optional array of FileCitationDeltaAnnotation { index, type, end_index, 3 more } or FilePathDeltaAnnotation { index, type, end_index, 3 more }
FileCitationDeltaAnnotation = object { index, type, end_index, 3 more } A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.