
commonMain.com.xebia.functional.openai.generated.model.ChatCompletionRequestAssistantMessage.kt Maven / Gradle / Ivy
/**
*
* 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.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 The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
* @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,
/* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified. */
@SerialName(value = "content") val content: 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 - 2025 Weber Informatics LLC | Privacy Policy