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