Skip to content

Commit

Permalink
feat(specs): add transformation copilot to ingestion (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3479

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Thomas Raffray <[email protected]>
  • Loading branch information
algolia-bot and Fluf22 committed Aug 6, 2024
1 parent 9af2f15 commit 2f2c6ae
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
)
Original file line number Diff line number Diff line change
@@ -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<Model>,
)

0 comments on commit 2f2c6ae

Please sign in to comment.