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

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

There is a newer version: 0.0.5-alpha.118
Show 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");
                }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy