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 |
AutoragConfigAiSearch200Response autoragConfigAiSearch(id, accountId, autoragConfigAiSearchRequest)
AI Search
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');
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | ||
| accountId | String | ||
| autoragConfigAiSearchRequest | AutoragConfigAiSearchRequest | [optional] |
AutoragConfigAiSearch200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AutoragConfigSearch200Response autoragConfigSearch(id, accountId, autoragConfigSearchRequest)
Search
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');
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | ||
| accountId | String | ||
| autoragConfigSearchRequest | AutoragConfigSearchRequest | [optional] |
AutoragConfigSearch200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]