commonMain.com.xebia.functional.openai.generated.model.ChatCompletionRequestUserMessage.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xef-openai-client Show documentation
Show all versions of xef-openai-client Show documentation
Building applications with LLMs through composability in Kotlin
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.xebia.functional.openai.generated.model
import com.xebia.functional.openai.generated.model.ChatCompletionRequestUserMessageContent
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*
/**
*
*
* @param content
* @param role The role of the messages author, in this case `user`.
* @param name An optional name for the participant. Provides the model information to differentiate between participants of the same role.
*/
@Serializable
data class ChatCompletionRequestUserMessage (
@SerialName(value = "content") val content: ChatCompletionRequestUserMessageContent,
/* The role of the messages author, in this case `user`. */
@SerialName(value = "role") val role: ChatCompletionRequestUserMessage.Role,
/* An optional name for the participant. Provides the model information to differentiate between participants of the same role. */
@SerialName(value = "name") val name: kotlin.String? = null
) {
/**
* The role of the messages author, in this case `user`.
*
* Values: user
*/
@Serializable
enum class Role(val value: kotlin.String) {
@SerialName(value = "user") user("user");
}
}