All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.xebia.functional.openai.generated.model.ChatCompletionStreamResponseDelta.kt Maven / Gradle / Ivy

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.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");
                }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy