Class AiServiceProvidersApi


  • public class AiServiceProvidersApi
    extends Object
    • Constructor Detail

      • AiServiceProvidersApi

        public AiServiceProvidersApi()
      • AiServiceProvidersApi

        public AiServiceProvidersApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • 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

        public okhttp3.Call getAIServiceProvidersCall​(ApiCallback _callback)
                                               throws ApiException
        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

        public AIServiceProviderSummaryResponseListDTO getAIServiceProviders()
                                                                      throws ApiException
        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 ApiException
        Get 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