Skip to content

Commit 2f2c6ae

Browse files
algolia-botFluf22
andcommitted
feat(specs): add transformation copilot to ingestion (generated)
algolia/api-clients-automation#3479 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent 9af2f15 commit 2f2c6ae

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,26 @@ public class IngestionClient(
876876
)
877877
}
878878

879+
/**
880+
* Retrieves a list of existing LLM transformation helpers.
881+
*
882+
* Required API Key ACLs:
883+
* - addObject
884+
* - deleteIndex
885+
* - editSettings
886+
* @param requestOptions additional request configuration.
887+
*/
888+
public suspend fun listTransformationModels(requestOptions: RequestOptions? = null): TransformationModels {
889+
val requestConfig = RequestConfig(
890+
method = RequestMethod.GET,
891+
path = listOf("1", "transformations", "copilot"),
892+
)
893+
return requester.execute(
894+
requestConfig = requestConfig,
895+
requestOptions = requestOptions,
896+
)
897+
}
898+
879899
/**
880900
* Retrieves a list of transformations.
881901
*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/** 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. */
2+
package com.algolia.client.model.ingestion
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* Model
9+
*
10+
* @param fullname
11+
* @param modelName
12+
* @param systemPrompt
13+
* @param id
14+
* @param provider
15+
*/
16+
@Serializable
17+
public data class Model(
18+
19+
@SerialName(value = "fullname") val fullname: String,
20+
21+
@SerialName(value = "modelName") val modelName: String,
22+
23+
@SerialName(value = "systemPrompt") val systemPrompt: String,
24+
25+
@SerialName(value = "id") val id: String,
26+
27+
@SerialName(value = "provider") val provider: String,
28+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/** 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. */
2+
package com.algolia.client.model.ingestion
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* List of available AI models for transformation purposes.
9+
*
10+
* @param llms
11+
*/
12+
@Serializable
13+
public data class TransformationModels(
14+
15+
@SerialName(value = "llms") val llms: List<Model>,
16+
)

0 commit comments

Comments
 (0)