commonMain.com.xebia.functional.openai.generated.model.ThreadObject.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.ThreadObjectToolResources
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*
/**
* Represents a thread that contains [messages](/docs/api-reference/messages).
*
* @param id The identifier, which can be referenced in API endpoints.
* @param `object` The object type, which is always `thread`.
* @param createdAt The Unix timestamp (in seconds) for when the thread was created.
* @param toolResources
* @param metadata Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
*/
@Serializable
data class ThreadObject (
/* The identifier, which can be referenced in API endpoints. */
@SerialName(value = "id") val id: kotlin.String,
/* The object type, which is always `thread`. */
@SerialName(value = "object") val `object`: ThreadObject.`Object`,
/* The Unix timestamp (in seconds) for when the thread was created. */
@SerialName(value = "created_at") val createdAt: kotlin.Int,
@SerialName(value = "tool_resources") val toolResources: ThreadObjectToolResources?,
/* Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long. */
@SerialName(value = "metadata") val metadata: kotlinx.serialization.json.JsonObject?
) {
/**
* The object type, which is always `thread`.
*
* Values: thread
*/
@Serializable
enum class `Object`(val value: kotlin.String) {
@SerialName(value = "thread") thread("thread");
}
}