final case class MessageObject(id: String, object: Object, createdAt: Int, threadId: String, role: Role, content: Chunk[ContentItem], assistantId: Optional[String], runId: Optional[String], fileIds: Chunk[String], metadata: Optional[Metadata]) extends Product with Serializable
MessageObject model
Represents a message within a [thread](/docs/api-reference/threads).
- id
The identifier, which can be referenced in API endpoints.
- object
The object type, which is always
thread.message.- createdAt
The Unix timestamp (in seconds) for when the message was created.
- threadId
The [thread](/docs/api-reference/threads) ID that this message belongs to.
- role
The entity that produced the message. One of
userorassistant.- content
The content of the message in array of text and/or images.
- assistantId
If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message.
- runId
If applicable, the ID of the [run](/docs/api-reference/runs) associated with the authoring of this message.
- fileIds
A list of [file](/docs/api-reference/files) 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
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. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
- Alphabetic
- By Inheritance
- MessageObject
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MessageObject(id: String, object: Object, createdAt: Int, threadId: String, role: Role, content: Chunk[ContentItem], assistantId: Optional[String], runId: Optional[String], fileIds: Chunk[String], metadata: Optional[Metadata])
- id
The identifier, which can be referenced in API endpoints.
- object
The object type, which is always
thread.message.- createdAt
The Unix timestamp (in seconds) for when the message was created.
- threadId
The [thread](/docs/api-reference/threads) ID that this message belongs to.
- role
The entity that produced the message. One of
userorassistant.- content
The content of the message in array of text and/or images.
- assistantId
If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message.
- runId
If applicable, the ID of the [run](/docs/api-reference/runs) associated with the authoring of this message.
- fileIds
A list of [file](/docs/api-reference/files) 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
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. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val assistantId: Optional[String]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- val content: Chunk[ContentItem]
- val createdAt: Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val fileIds: Chunk[String]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- val id: String
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val metadata: Optional[Metadata]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- val object: Object
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val role: Role
- val runId: Optional[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val threadId: String
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])