io.cequence.openaiscala.domain.ChatRole.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openai-scala-core_2.13 Show documentation
Show all versions of openai-scala-core_2.13 Show documentation
Core module of OpenAI Scala client
package io.cequence.openaiscala.domain
import io.cequence.wsclient.domain.EnumValue
sealed trait ChatRole extends EnumValue {
override def toString: String = super.toString.toLowerCase
}
sealed trait ThreadAndRunRole
object ChatRole {
case object User extends ChatRole with ThreadAndRunRole
case object System extends ChatRole
case object Assistant extends ChatRole with ThreadAndRunRole
@Deprecated
case object Function extends ChatRole
case object Tool extends ChatRole
}