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 <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
  • Loading branch information
algolia-bot and Fluf22 committed Aug 6, 2024
1 parent abb98c7 commit d90d5bb
Show file tree
Hide file tree
Showing 3 changed files with 627 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lib/Api/IngestionClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
use Algolia\AlgoliaSearch\RetryStrategy\ClusterHosts;
use Algolia\AlgoliaSearch\Support\Helpers;
use GuzzleHttp\Psr7\Query;

/**
Expand Down Expand Up @@ -1743,6 +1744,28 @@ public function listTasksV1($itemsPerPage = null, $page = null, $action = null,
return $this->sendRequest('GET', $resourcePath, $headers, $queryParameters, $httpBody, $requestOptions);
}

/**
* Retrieves a list of existing LLM transformation helpers.
*
* Required API Key ACLs:
* - addObject
* - deleteIndex
* - editSettings
*
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Ingestion\TransformationModels|array<string, mixed>
*/
public function listTransformationModels($requestOptions = [])
{
$resourcePath = '/1/transformations/copilot';
$queryParameters = [];
$headers = [];
$httpBody = null;

return $this->sendRequest('GET', $resourcePath, $headers, $queryParameters, $httpBody, $requestOptions);
}

/**
* Retrieves a list of transformations.
*
Expand Down
Loading

0 comments on commit d90d5bb

Please sign in to comment.