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

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

There is a newer version: 0.0.5-alpha.119
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.MessageContentTextAnnotationsFileCitationObjectFileCitation



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

/**
* A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.
*
    * @param type Always `file_citation`.
    * @param text The text in the message content that needs to be replaced.
    * @param fileCitation 
    * @param startIndex 
    * @param endIndex 
*/
@Serializable


data class MessageContentTextAnnotationsFileCitationObject (
        /* Always `file_citation`. */
    @SerialName(value = "type") val type: MessageContentTextAnnotationsFileCitationObject.Type,
        /* The text in the message content that needs to be replaced. */
    @SerialName(value = "text") val text: kotlin.String,
        @SerialName(value = "file_citation") val fileCitation: MessageContentTextAnnotationsFileCitationObjectFileCitation,
        @SerialName(value = "start_index") val startIndex: kotlin.Int,
        @SerialName(value = "end_index") val endIndex: kotlin.Int
) {

            /**
            * Always `file_citation`.
            *
            * Values: file_citation
            */
            @Serializable
            enum class Type(val value: kotlin.String) {
                @SerialName(value = "file_citation") file_citation("file_citation");
                }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy