Class LlmProvidersApi
- java.lang.Object
-
- org.wso2.am.integration.clients.admin.api.LlmProvidersApi
-
public class LlmProvidersApi extends Object
-
-
Constructor Summary
Constructors Constructor Description LlmProvidersApi()LlmProvidersApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()LLMProviderSummaryResponseListDTOllmProvidersGet()Get all LLM providers Get all LLM providersokhttp3.CallllmProvidersGetAsync(ApiCallback<LLMProviderSummaryResponseListDTO> _callback)Get all LLM providers (asynchronously) Get all LLM providersokhttp3.CallllmProvidersGetCall(ApiCallback _callback)Build call for llmProvidersGetApiResponse<LLMProviderSummaryResponseListDTO>llmProvidersGetWithHttpInfo()Get all LLM providers Get all LLM providersLLMProviderResponseDTOllmProvidersPost(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList)Add a LLM provider Add a new LLM providerokhttp3.CallllmProvidersPostAsync(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList, ApiCallback<LLMProviderResponseDTO> _callback)Add a LLM provider (asynchronously) Add a new LLM providerokhttp3.CallllmProvidersPostCall(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList, ApiCallback _callback)Build call for llmProvidersPostApiResponse<LLMProviderResponseDTO>llmProvidersPostWithHttpInfo(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList)Add a LLM provider Add a new LLM providervoidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
LlmProvidersApi
public LlmProvidersApi()
-
LlmProvidersApi
public LlmProvidersApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
llmProvidersGetCall
public okhttp3.Call llmProvidersGetCall(ApiCallback _callback) throws ApiException
Build call for llmProvidersGet- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
llmProvidersGet
public LLMProviderSummaryResponseListDTO llmProvidersGet() throws ApiException
Get all LLM providers Get all LLM providers- Returns:
- LLMProviderSummaryResponseListDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
llmProvidersGetWithHttpInfo
public ApiResponse<LLMProviderSummaryResponseListDTO> llmProvidersGetWithHttpInfo() throws ApiException
Get all LLM providers Get all LLM providers- Returns:
- ApiResponse<LLMProviderSummaryResponseListDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
llmProvidersGetAsync
public okhttp3.Call llmProvidersGetAsync(ApiCallback<LLMProviderSummaryResponseListDTO> _callback) throws ApiException
Get all LLM providers (asynchronously) Get all LLM 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
-
llmProvidersPostCall
public okhttp3.Call llmProvidersPostCall(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList, ApiCallback _callback) throws ApiException
Build call for llmProvidersPost- Parameters:
name- (optional)apiVersion- (optional)description- (optional)configurations- LLM Provider configurations (optional)apiDefinition- OpenAPI specification (optional)modelList- List of models supported by the LLM Provider as a stringified JSON array (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
llmProvidersPost
public LLMProviderResponseDTO llmProvidersPost(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList) throws ApiException
Add a LLM provider Add a new LLM provider- Parameters:
name- (optional)apiVersion- (optional)description- (optional)configurations- LLM Provider configurations (optional)apiDefinition- OpenAPI specification (optional)modelList- List of models supported by the LLM Provider as a stringified JSON array (optional)- Returns:
- LLMProviderResponseDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
llmProvidersPostWithHttpInfo
public ApiResponse<LLMProviderResponseDTO> llmProvidersPostWithHttpInfo(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList) throws ApiException
Add a LLM provider Add a new LLM provider- Parameters:
name- (optional)apiVersion- (optional)description- (optional)configurations- LLM Provider configurations (optional)apiDefinition- OpenAPI specification (optional)modelList- List of models supported by the LLM Provider as a stringified JSON array (optional)- Returns:
- ApiResponse<LLMProviderResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
llmProvidersPostAsync
public okhttp3.Call llmProvidersPostAsync(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList, ApiCallback<LLMProviderResponseDTO> _callback) throws ApiException
Add a LLM provider (asynchronously) Add a new LLM provider- Parameters:
name- (optional)apiVersion- (optional)description- (optional)configurations- LLM Provider configurations (optional)apiDefinition- OpenAPI specification (optional)modelList- List of models supported by the LLM Provider as a stringified JSON array (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
-
-