Skip to content

Latest commit

 

History

History
121 lines (88 loc) · 4.61 KB

File metadata and controls

121 lines (88 loc) · 4.61 KB

cloudflare_dart.api.AutoRAGRAGSearchApi

Load the API package

import 'package:cloudflare_dart/api.dart';

All URIs are relative to https://api.cloudflare.com/client/v4

Method HTTP request Description
autoragConfigAiSearch POST /accounts/{account_id}/autorag/rags/{id}/ai-search AI Search
autoragConfigSearch POST /accounts/{account_id}/autorag/rags/{id}/search Search

autoragConfigAiSearch

AutoragConfigAiSearch200Response autoragConfigAiSearch(id, accountId, autoragConfigAiSearchRequest)

AI Search

Example

import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';

final api = CloudflareDart().getAutoRAGRAGSearchApi();
final String id = my-rag; // String | 
final String accountId = c3dc5f0b34a14ff8e1b3ec04895e1b22; // String | 
final AutoragConfigAiSearchRequest autoragConfigAiSearchRequest = ; // AutoragConfigAiSearchRequest | 

try {
    final response = api.autoragConfigAiSearch(id, accountId, autoragConfigAiSearchRequest);
    print(response);
} catch on DioException (e) {
    print('Exception when calling AutoRAGRAGSearchApi->autoragConfigAiSearch: $e\n');
}

Parameters

Name Type Description Notes
id String
accountId String
autoragConfigAiSearchRequest AutoragConfigAiSearchRequest [optional]

Return type

AutoragConfigAiSearch200Response

Authorization

api_key, api_token, api_email

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

autoragConfigSearch

AutoragConfigSearch200Response autoragConfigSearch(id, accountId, autoragConfigSearchRequest)

Search

Example

import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';

final api = CloudflareDart().getAutoRAGRAGSearchApi();
final String id = my-rag; // String | 
final String accountId = c3dc5f0b34a14ff8e1b3ec04895e1b22; // String | 
final AutoragConfigSearchRequest autoragConfigSearchRequest = ; // AutoragConfigSearchRequest | 

try {
    final response = api.autoragConfigSearch(id, accountId, autoragConfigSearchRequest);
    print(response);
} catch on DioException (e) {
    print('Exception when calling AutoRAGRAGSearchApi->autoragConfigSearch: $e\n');
}

Parameters

Name Type Description Notes
id String
accountId String
autoragConfigSearchRequest AutoragConfigSearchRequest [optional]

Return type

AutoragConfigSearch200Response

Authorization

api_key, api_token, api_email

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]