commonMain.com.xebia.functional.openai.generated.model.RunToolCallObject.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
/**
*
* 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.RunToolCallObjectFunction
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*
/**
* Tool call objects
*
* @param id The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.
* @param type The type of tool call the output is required for. For now, this is always `function`.
* @param function
*/
@Serializable
data class RunToolCallObject (
/* The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint. */
@SerialName(value = "id") val id: kotlin.String,
/* The type of tool call the output is required for. For now, this is always `function`. */
@SerialName(value = "type") val type: RunToolCallObject.Type,
@SerialName(value = "function") val function: RunToolCallObjectFunction
) {
/**
* The type of tool call the output is required for. For now, this is always `function`.
*
* Values: function
*/
@Serializable
enum class Type(val value: kotlin.String) {
@SerialName(value = "function") function("function");
}
}