diff --git a/client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt b/client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt index b535eccb..3f645bc9 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt @@ -876,6 +876,26 @@ public class IngestionClient( ) } + /** + * Retrieves a list of existing LLM transformation helpers. + * + * Required API Key ACLs: + * - addObject + * - deleteIndex + * - editSettings + * @param requestOptions additional request configuration. + */ + public suspend fun listTransformationModels(requestOptions: RequestOptions? = null): TransformationModels { + val requestConfig = RequestConfig( + method = RequestMethod.GET, + path = listOf("1", "transformations", "copilot"), + ) + return requester.execute( + requestConfig = requestConfig, + requestOptions = requestOptions, + ) + } + /** * Retrieves a list of transformations. * diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Model.kt b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Model.kt new file mode 100644 index 00000000..09d6479a --- /dev/null +++ b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Model.kt @@ -0,0 +1,28 @@ +/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ +package com.algolia.client.model.ingestion + +import kotlinx.serialization.* +import kotlinx.serialization.json.* + +/** + * Model + * + * @param fullname + * @param modelName + * @param systemPrompt + * @param id + * @param provider + */ +@Serializable +public data class Model( + + @SerialName(value = "fullname") val fullname: String, + + @SerialName(value = "modelName") val modelName: String, + + @SerialName(value = "systemPrompt") val systemPrompt: String, + + @SerialName(value = "id") val id: String, + + @SerialName(value = "provider") val provider: String, +) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationModels.kt b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationModels.kt new file mode 100644 index 00000000..667d18c5 --- /dev/null +++ b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationModels.kt @@ -0,0 +1,16 @@ +/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ +package com.algolia.client.model.ingestion + +import kotlinx.serialization.* +import kotlinx.serialization.json.* + +/** + * List of available AI models for transformation purposes. + * + * @param llms + */ +@Serializable +public data class TransformationModels( + + @SerialName(value = "llms") val llms: List, +)