commonMain.com.xebia.functional.openai.generated.model.ChatCompletionResponseMessage.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
The newest version!
/**
*
* 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.ChatCompletionMessageToolCall
import com.xebia.functional.openai.generated.model.ChatCompletionResponseMessageFunctionCall
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*
/**
* A chat completion message generated by the model.
*
* @param content The contents of the message.
* @param refusal The refusal message generated by the model.
* @param role The role of the author of this message.
* @param toolCalls The tool calls generated by the model, such as function calls.
* @param functionCall
*/
@Serializable
data class ChatCompletionResponseMessage (
/* The contents of the message. */
@SerialName(value = "content") val content: kotlin.String?,
/* The refusal message generated by the model. */
@SerialName(value = "refusal") val refusal: kotlin.String?,
/* The role of the author of this message. */
@SerialName(value = "role") val role: ChatCompletionResponseMessage.Role,
/* The tool calls generated by the model, such as function calls. */
@SerialName(value = "tool_calls") val toolCalls: kotlin.collections.List? = null,
@Deprecated(message = "This property is deprecated.")
@SerialName(value = "function_call") val functionCall: ChatCompletionResponseMessageFunctionCall? = null
) {
/**
* The role of the author of this message.
*
* Values: assistant
*/
@Serializable
enum class Role(val value: kotlin.String) {
@SerialName(value = "assistant") assistant("assistant");
}
}