sttp.openai.requests.threads.messages.ThreadMessagesRequestBody.CreateMessage
See theCreateMessage companion object
case class CreateMessage(role: String, content: String, attachments: Option[Seq[Attachment]], metadata: Option[Map[String, String]])
Value parameters
- attachments
-
A list of files attached to the message, and the tools they were added to.
- content
-
string Required The content of the message.
- metadata
-
map Optional 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/createMessage
- role
-
string Required The role of the entity that is creating the message. Currently only user is supported.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article