_id Id — OPTIONALMongoDB document ObjectID |
id IdThe identifier, which can be referenced in API endpoints. |
object Object25Possible values: [thread.message ] The object type, which is always thread.message . |
created_at Created AtThe Unix timestamp (in seconds) for when the message was created. |
thread_id Thread IdThe thread ID that this message belongs to. |
role Role7Possible values: [user , assistant , tool_call , tool_output ] The entity that produced the message. One of user or assistant . |
content undefined[]The content of the message in array of text and/or images. |
assistant_id Assistant IdIf applicable, the ID of the assistant that authored this message. |
run_id Run IdIf applicable, the ID of the run associated with the authoring of this message. |
file_ids string[]A list of file IDs that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files. A maximum of 10 files can be attached to a message. |
metadata objectSet 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. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long. |