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

commonMain.com.xebia.functional.openai.generated.model.ChatCompletionRequestAssistantMessage.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.ChatCompletionMessageToolCall
import com.xebia.functional.openai.generated.model.ChatCompletionRequestAssistantMessageContent
import com.xebia.functional.openai.generated.model.ChatCompletionRequestAssistantMessageFunctionCall



import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*

/**
* 
*
    * @param role The role of the messages author, in this case `assistant`.
    * @param content 
    * @param refusal The refusal message by the assistant.
    * @param name An optional name for the participant. Provides the model information to differentiate between participants of the same role.
    * @param toolCalls The tool calls generated by the model, such as function calls.
    * @param functionCall 
*/
@Serializable


data class ChatCompletionRequestAssistantMessage (
        /* The role of the messages author, in this case `assistant`. */
    @SerialName(value = "role") val role: ChatCompletionRequestAssistantMessage.Role,
        @SerialName(value = "content") val content: ChatCompletionRequestAssistantMessageContent? = null,
        /* The refusal message by the assistant. */
    @SerialName(value = "refusal") val refusal: kotlin.String? = null,
        /* 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 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: ChatCompletionRequestAssistantMessageFunctionCall? = null
) {

            /**
            * The role of the messages author, in this case `assistant`.
            *
            * Values: assistant
            */
            @Serializable
            enum class Role(val value: kotlin.String) {
                @SerialName(value = "assistant") assistant("assistant");
                }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy