MessageData

sttp.openai.requests.threads.messages.ThreadMessagesResponseData.MessageData
See theMessageData companion object
case class MessageData(id: String, `object`: String, createdAt: Int, threadId: Option[String], role: String, content: Seq[Content], assistantId: Option[String], runId: Option[String], attachments: Option[Seq[Attachment]], metadata: Map[String, String])

Value parameters

assistantId

If applicable, the ID of the assistant that authored this message.

attachments

A list of files attached to the message, and the tools they were added to.

content

The content of the message in array of text and/or images.

createdAt

The Unix timestamp (in seconds) for when the message was created.

id

The identifier, which can be referenced in API endpoints.

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. For more information please visit: https://platform.openai.com/docs/api-reference/messages/object

object

The object type, which is always thread.message.

role

The entity that produced the message. One of user or assistant.

runId

If applicable, the ID of the run associated with the authoring of this message.

threadId

The thread ID that this message belongs to.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product