final case class ChatCompletionRequestMessage(content: Optional[String], functionCall: Optional[FunctionCall] = Optional.Absent, name: Optional[String] = Optional.Absent, role: Role) extends Product with Serializable
ChatCompletionRequestMessage model
- content
The contents of the message.
contentis required for all messages, and may be null for assistant messages with function calls.- functionCall
The name and arguments of a function that should be called, as generated by the model.
- name
The name of the author of this message.
nameis required if role isfunction, and it should be the name of the function whose response is in thecontent. May contain a-z, A-Z, 0-9, and underscores, with a maximum length of 64 characters.- role
The role of the messages author. One of
system,user,assistant, orfunction.
- Alphabetic
- By Inheritance
- ChatCompletionRequestMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ChatCompletionRequestMessage(content: Optional[String], functionCall: Optional[FunctionCall] = Optional.Absent, name: Optional[String] = Optional.Absent, role: Role)
- content
The contents of the message.
contentis required for all messages, and may be null for assistant messages with function calls.- functionCall
The name and arguments of a function that should be called, as generated by the model.
- name
The name of the author of this message.
nameis required if role isfunction, and it should be the name of the function whose response is in thecontent. May contain a-z, A-Z, 0-9, and underscores, with a maximum length of 64 characters.- role
The role of the messages author. One of
system,user,assistant, orfunction.
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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val content: Optional[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val functionCall: Optional[FunctionCall]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: Optional[String]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val role: Role
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()