commonMain.com.xebia.functional.openai.generated.model.FineTuneChatCompletionRequestAssistantMessage.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.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
* @param weight Controls whether the assistant message is trained against (0 or 1)
*/
@Serializable
data class FineTuneChatCompletionRequestAssistantMessage (
/* The role of the messages author, in this case `assistant`. */
@SerialName(value = "role") val role: FineTuneChatCompletionRequestAssistantMessage.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,
/* Controls whether the assistant message is trained against (0 or 1) */
@SerialName(value = "weight") val weight: FineTuneChatCompletionRequestAssistantMessage.Weight? = 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");
}
/**
* Controls whether the assistant message is trained against (0 or 1)
*
* Values: _0,_1
*/
@Serializable
enum class Weight(val value: kotlin.Int) {
@SerialName(value = "0") _0(0),
@SerialName(value = "1") _1(1);
}
}