ThreadMessage

data class ThreadMessage(val id: String, val createdAt: Int, val threadId: String, val role: ThreadUser, val content: List<ThreadMessageContent>, val assistantId: String?, val runId: String?, val fileIds: List<String>, val metadata: Map<String, String>)

Represents a message in a Thread.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Int, threadId: String, role: ThreadUser, content: List<ThreadMessageContent>, assistantId: String?, runId: String?, fileIds: List<String>, metadata: Map<String, String>)

Properties

Link copied to clipboard

The id of the assistant that this message belongs to, or null

Link copied to clipboard

The content of the message

Link copied to clipboard

The unix timestamp of when the message was created

Link copied to clipboard

The ids of the files attached to this message

Link copied to clipboard
val id: String

The unique id of the message

Link copied to clipboard

The metadata attached to this message

Link copied to clipboard

The role of the user that created the message

Link copied to clipboard

The id of the run that created this message, or null

Link copied to clipboard

The id of the thread that this message belongs to