Class AiServiceProvidersApi
java.lang.Object
org.wso2.am.integration.clients.admin.api.AiServiceProvidersApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAIServiceProvider(String name, String apiVersion, String configurations, File apiDefinition, String description, String multipleModelProviderSupport, String modelProviders) Add a AI Service provider Add a new AI Service providerokhttp3.CalladdAIServiceProviderAsync(String name, String apiVersion, String configurations, File apiDefinition, String description, String multipleModelProviderSupport, String modelProviders, ApiCallback<AIServiceProviderResponseDTO> _callback) Add a AI Service provider (asynchronously) Add a new AI Service providerokhttp3.CalladdAIServiceProviderCall(String name, String apiVersion, String configurations, File apiDefinition, String description, String multipleModelProviderSupport, String modelProviders, ApiCallback _callback) Build call for addAIServiceProvideraddAIServiceProviderWithHttpInfo(String name, String apiVersion, String configurations, File apiDefinition, String description, String multipleModelProviderSupport, String modelProviders) Add a AI Service provider Add a new AI Service providerGet all AI Service providers Get all AI Service providersokhttp3.CallGet all AI Service providers (asynchronously) Get all AI Service providersokhttp3.CallgetAIServiceProvidersCall(ApiCallback _callback) Build call for getAIServiceProvidersGet all AI Service providers Get all AI Service providersvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
AiServiceProvidersApi
public AiServiceProvidersApi() -
AiServiceProvidersApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
addAIServiceProviderCall
public okhttp3.Call addAIServiceProviderCall(String name, String apiVersion, String configurations, File apiDefinition, String description, String multipleModelProviderSupport, String modelProviders, ApiCallback _callback) throws ApiException Build call for addAIServiceProvider- Parameters:
name- (required)apiVersion- (required)configurations- LLM Provider configurations (required)apiDefinition- OpenAPI specification (required)description- (optional)multipleModelProviderSupport- Indicates whether the AI Service Provider supports multiple model providers. If true, the AI Service Provider can support multiple model providers. If false, the AI Service Provider supports only one model provider. (optional, default to "false")modelProviders- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
addAIServiceProvider
public AIServiceProviderResponseDTO addAIServiceProvider(String name, String apiVersion, String configurations, File apiDefinition, String description, String multipleModelProviderSupport, String modelProviders) throws ApiException Add a AI Service provider Add a new AI Service provider- Parameters:
name- (required)apiVersion- (required)configurations- LLM Provider configurations (required)apiDefinition- OpenAPI specification (required)description- (optional)multipleModelProviderSupport- Indicates whether the AI Service Provider supports multiple model providers. If true, the AI Service Provider can support multiple model providers. If false, the AI Service Provider supports only one model provider. (optional, default to "false")modelProviders- (optional)- Returns:
- AIServiceProviderResponseDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
addAIServiceProviderWithHttpInfo
public ApiResponse<AIServiceProviderResponseDTO> addAIServiceProviderWithHttpInfo(String name, String apiVersion, String configurations, File apiDefinition, String description, String multipleModelProviderSupport, String modelProviders) throws ApiException Add a AI Service provider Add a new AI Service provider- Parameters:
name- (required)apiVersion- (required)configurations- LLM Provider configurations (required)apiDefinition- OpenAPI specification (required)description- (optional)multipleModelProviderSupport- Indicates whether the AI Service Provider supports multiple model providers. If true, the AI Service Provider can support multiple model providers. If false, the AI Service Provider supports only one model provider. (optional, default to "false")modelProviders- (optional)- Returns:
- ApiResponse<AIServiceProviderResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
addAIServiceProviderAsync
public okhttp3.Call addAIServiceProviderAsync(String name, String apiVersion, String configurations, File apiDefinition, String description, String multipleModelProviderSupport, String modelProviders, ApiCallback<AIServiceProviderResponseDTO> _callback) throws ApiException Add a AI Service provider (asynchronously) Add a new AI Service provider- Parameters:
name- (required)apiVersion- (required)configurations- LLM Provider configurations (required)apiDefinition- OpenAPI specification (required)description- (optional)multipleModelProviderSupport- Indicates whether the AI Service Provider supports multiple model providers. If true, the AI Service Provider can support multiple model providers. If false, the AI Service Provider supports only one model provider. (optional, default to "false")modelProviders- (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getAIServiceProvidersCall
Build call for getAIServiceProviders- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getAIServiceProviders
Get all AI Service providers Get all AI Service providers- Returns:
- AIServiceProviderSummaryResponseListDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAIServiceProvidersWithHttpInfo
public ApiResponse<AIServiceProviderSummaryResponseListDTO> getAIServiceProvidersWithHttpInfo() throws ApiExceptionGet all AI Service providers Get all AI Service providers- Returns:
- ApiResponse<AIServiceProviderSummaryResponseListDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAIServiceProvidersAsync
public okhttp3.Call getAIServiceProvidersAsync(ApiCallback<AIServiceProviderSummaryResponseListDTO> _callback) throws ApiException Get all AI Service providers (asynchronously) Get all AI Service providers- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-