Class AiConfigsApi


  • public class AiConfigsApi
    extends java.lang.Object
    • Constructor Detail

      • AiConfigsApi

        public AiConfigsApi()
      • AiConfigsApi

        public AiConfigsApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getHostIndex

        public int getHostIndex()
      • setHostIndex

        public void setHostIndex​(int hostIndex)
      • getCustomBaseUrl

        public java.lang.String getCustomBaseUrl()
      • setCustomBaseUrl

        public void setCustomBaseUrl​(java.lang.String customBaseUrl)
      • deleteAIConfigCall

        public okhttp3.Call deleteAIConfigCall​(@Nonnull
                                               java.lang.String projectKey,
                                               @Nonnull
                                               java.lang.String configKey,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for deleteAIConfig
        Parameters:
        projectKey - (required)
        configKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteAIConfig

        public void deleteAIConfig​(@Nonnull
                                   java.lang.String projectKey,
                                   @Nonnull
                                   java.lang.String configKey)
                            throws ApiException
        Delete AI Config Delete an existing AI Config.
        Parameters:
        projectKey - (required)
        configKey - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteAIConfigWithHttpInfo

        public ApiResponse<java.lang.Void> deleteAIConfigWithHttpInfo​(@Nonnull
                                                                      java.lang.String projectKey,
                                                                      @Nonnull
                                                                      java.lang.String configKey)
                                                               throws ApiException
        Delete AI Config Delete an existing AI Config.
        Parameters:
        projectKey - (required)
        configKey - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteAIConfigAsync

        public okhttp3.Call deleteAIConfigAsync​(@Nonnull
                                                java.lang.String projectKey,
                                                @Nonnull
                                                java.lang.String configKey,
                                                ApiCallback<java.lang.Void> _callback)
                                         throws ApiException
        Delete AI Config (asynchronously) Delete an existing AI Config.
        Parameters:
        projectKey - (required)
        configKey - (required)
        _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
      • deleteAIConfigVariationCall

        public okhttp3.Call deleteAIConfigVariationCall​(@Nonnull
                                                        java.lang.String projectKey,
                                                        @Nonnull
                                                        java.lang.String configKey,
                                                        @Nonnull
                                                        java.lang.String variationKey,
                                                        ApiCallback _callback)
                                                 throws ApiException
        Build call for deleteAIConfigVariation
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteAIConfigVariation

        public void deleteAIConfigVariation​(@Nonnull
                                            java.lang.String projectKey,
                                            @Nonnull
                                            java.lang.String configKey,
                                            @Nonnull
                                            java.lang.String variationKey)
                                     throws ApiException
        Delete AI Config variation Delete a specific variation of an AI Config by config key and variation key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteAIConfigVariationWithHttpInfo

        public ApiResponse<java.lang.Void> deleteAIConfigVariationWithHttpInfo​(@Nonnull
                                                                               java.lang.String projectKey,
                                                                               @Nonnull
                                                                               java.lang.String configKey,
                                                                               @Nonnull
                                                                               java.lang.String variationKey)
                                                                        throws ApiException
        Delete AI Config variation Delete a specific variation of an AI Config by config key and variation key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteAIConfigVariationAsync

        public okhttp3.Call deleteAIConfigVariationAsync​(@Nonnull
                                                         java.lang.String projectKey,
                                                         @Nonnull
                                                         java.lang.String configKey,
                                                         @Nonnull
                                                         java.lang.String variationKey,
                                                         ApiCallback<java.lang.Void> _callback)
                                                  throws ApiException
        Delete AI Config variation (asynchronously) Delete a specific variation of an AI Config by config key and variation key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        _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
      • deleteAIToolCall

        public okhttp3.Call deleteAIToolCall​(@Nonnull
                                             java.lang.String projectKey,
                                             @Nonnull
                                             java.lang.String toolKey,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for deleteAITool
        Parameters:
        projectKey - (required)
        toolKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteAITool

        public void deleteAITool​(@Nonnull
                                 java.lang.String projectKey,
                                 @Nonnull
                                 java.lang.String toolKey)
                          throws ApiException
        Delete AI tool Delete an existing AI tool.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteAIToolWithHttpInfo

        public ApiResponse<java.lang.Void> deleteAIToolWithHttpInfo​(@Nonnull
                                                                    java.lang.String projectKey,
                                                                    @Nonnull
                                                                    java.lang.String toolKey)
                                                             throws ApiException
        Delete AI tool Delete an existing AI tool.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteAIToolAsync

        public okhttp3.Call deleteAIToolAsync​(@Nonnull
                                              java.lang.String projectKey,
                                              @Nonnull
                                              java.lang.String toolKey,
                                              ApiCallback<java.lang.Void> _callback)
                                       throws ApiException
        Delete AI tool (asynchronously) Delete an existing AI tool.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        _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
      • deleteAgentGraphCall

        public okhttp3.Call deleteAgentGraphCall​(@Nonnull
                                                 java.lang.String ldAPIVersion,
                                                 @Nonnull
                                                 java.lang.String projectKey,
                                                 @Nonnull
                                                 java.lang.String graphKey,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for deleteAgentGraph
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteAgentGraph

        public void deleteAgentGraph​(@Nonnull
                                     java.lang.String ldAPIVersion,
                                     @Nonnull
                                     java.lang.String projectKey,
                                     @Nonnull
                                     java.lang.String graphKey)
                              throws ApiException
        Delete agent graph Delete an existing agent graph and all of its edges.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteAgentGraphWithHttpInfo

        public ApiResponse<java.lang.Void> deleteAgentGraphWithHttpInfo​(@Nonnull
                                                                        java.lang.String ldAPIVersion,
                                                                        @Nonnull
                                                                        java.lang.String projectKey,
                                                                        @Nonnull
                                                                        java.lang.String graphKey)
                                                                 throws ApiException
        Delete agent graph Delete an existing agent graph and all of its edges.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteAgentGraphAsync

        public okhttp3.Call deleteAgentGraphAsync​(@Nonnull
                                                  java.lang.String ldAPIVersion,
                                                  @Nonnull
                                                  java.lang.String projectKey,
                                                  @Nonnull
                                                  java.lang.String graphKey,
                                                  ApiCallback<java.lang.Void> _callback)
                                           throws ApiException
        Delete agent graph (asynchronously) Delete an existing agent graph and all of its edges.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        _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
      • deleteModelConfigCall

        public okhttp3.Call deleteModelConfigCall​(@Nonnull
                                                  java.lang.String projectKey,
                                                  @Nonnull
                                                  java.lang.String modelConfigKey,
                                                  ApiCallback _callback)
                                           throws ApiException
        Build call for deleteModelConfig
        Parameters:
        projectKey - (required)
        modelConfigKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteModelConfig

        public void deleteModelConfig​(@Nonnull
                                      java.lang.String projectKey,
                                      @Nonnull
                                      java.lang.String modelConfigKey)
                               throws ApiException
        Delete an AI model config Delete an AI model config.
        Parameters:
        projectKey - (required)
        modelConfigKey - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteModelConfigWithHttpInfo

        public ApiResponse<java.lang.Void> deleteModelConfigWithHttpInfo​(@Nonnull
                                                                         java.lang.String projectKey,
                                                                         @Nonnull
                                                                         java.lang.String modelConfigKey)
                                                                  throws ApiException
        Delete an AI model config Delete an AI model config.
        Parameters:
        projectKey - (required)
        modelConfigKey - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteModelConfigAsync

        public okhttp3.Call deleteModelConfigAsync​(@Nonnull
                                                   java.lang.String projectKey,
                                                   @Nonnull
                                                   java.lang.String modelConfigKey,
                                                   ApiCallback<java.lang.Void> _callback)
                                            throws ApiException
        Delete an AI model config (asynchronously) Delete an AI model config.
        Parameters:
        projectKey - (required)
        modelConfigKey - (required)
        _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
      • deleteRestrictedModelsCall

        public okhttp3.Call deleteRestrictedModelsCall​(@Nonnull
                                                       java.lang.String projectKey,
                                                       @Nonnull
                                                       RestrictedModelsRequest restrictedModelsRequest,
                                                       ApiCallback _callback)
                                                throws ApiException
        Build call for deleteRestrictedModels
        Parameters:
        projectKey - (required)
        restrictedModelsRequest - List of AI model keys to remove from the restricted list (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteRestrictedModels

        public void deleteRestrictedModels​(@Nonnull
                                           java.lang.String projectKey,
                                           @Nonnull
                                           RestrictedModelsRequest restrictedModelsRequest)
                                    throws ApiException
        Remove AI models from the restricted list Remove AI models, by key, from the restricted list.
        Parameters:
        projectKey - (required)
        restrictedModelsRequest - List of AI model keys to remove from the restricted list (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteRestrictedModelsWithHttpInfo

        public ApiResponse<java.lang.Void> deleteRestrictedModelsWithHttpInfo​(@Nonnull
                                                                              java.lang.String projectKey,
                                                                              @Nonnull
                                                                              RestrictedModelsRequest restrictedModelsRequest)
                                                                       throws ApiException
        Remove AI models from the restricted list Remove AI models, by key, from the restricted list.
        Parameters:
        projectKey - (required)
        restrictedModelsRequest - List of AI model keys to remove from the restricted list (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteRestrictedModelsAsync

        public okhttp3.Call deleteRestrictedModelsAsync​(@Nonnull
                                                        java.lang.String projectKey,
                                                        @Nonnull
                                                        RestrictedModelsRequest restrictedModelsRequest,
                                                        ApiCallback<java.lang.Void> _callback)
                                                 throws ApiException
        Remove AI models from the restricted list (asynchronously) Remove AI models, by key, from the restricted list.
        Parameters:
        projectKey - (required)
        restrictedModelsRequest - List of AI model keys to remove from the restricted list (required)
        _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
      • getAIConfigCall

        public okhttp3.Call getAIConfigCall​(@Nonnull
                                            java.lang.String projectKey,
                                            @Nonnull
                                            java.lang.String configKey,
                                            ApiCallback _callback)
                                     throws ApiException
        Build call for getAIConfig
        Parameters:
        projectKey - (required)
        configKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAIConfig

        public AIConfig getAIConfig​(@Nonnull
                                    java.lang.String projectKey,
                                    @Nonnull
                                    java.lang.String configKey)
                             throws ApiException
        Get AI Config Retrieve a specific AI Config by its key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        Returns:
        AIConfig
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigWithHttpInfo

        public ApiResponse<AIConfig> getAIConfigWithHttpInfo​(@Nonnull
                                                             java.lang.String projectKey,
                                                             @Nonnull
                                                             java.lang.String configKey)
                                                      throws ApiException
        Get AI Config Retrieve a specific AI Config by its key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        Returns:
        ApiResponse<AIConfig>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigAsync

        public okhttp3.Call getAIConfigAsync​(@Nonnull
                                             java.lang.String projectKey,
                                             @Nonnull
                                             java.lang.String configKey,
                                             ApiCallback<AIConfig> _callback)
                                      throws ApiException
        Get AI Config (asynchronously) Retrieve a specific AI Config by its key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        _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
      • getAIConfigMetricsCall

        public okhttp3.Call getAIConfigMetricsCall​(@Nonnull
                                                   java.lang.String projectKey,
                                                   @Nonnull
                                                   java.lang.String configKey,
                                                   @Nonnull
                                                   java.lang.Integer from,
                                                   @Nonnull
                                                   java.lang.Integer to,
                                                   @Nonnull
                                                   java.lang.String env,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for getAIConfigMetrics
        Parameters:
        projectKey - (required)
        configKey - (required)
        from - The starting time, as milliseconds since epoch (inclusive). (required)
        to - The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. (required)
        env - An environment key. Only metrics from this environment will be included. (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAIConfigMetrics

        public Metrics getAIConfigMetrics​(@Nonnull
                                          java.lang.String projectKey,
                                          @Nonnull
                                          java.lang.String configKey,
                                          @Nonnull
                                          java.lang.Integer from,
                                          @Nonnull
                                          java.lang.Integer to,
                                          @Nonnull
                                          java.lang.String env)
                                   throws ApiException
        Get AI Config metrics Retrieve usage metrics for an AI Config by config key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        from - The starting time, as milliseconds since epoch (inclusive). (required)
        to - The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. (required)
        env - An environment key. Only metrics from this environment will be included. (required)
        Returns:
        Metrics
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigMetricsWithHttpInfo

        public ApiResponse<Metrics> getAIConfigMetricsWithHttpInfo​(@Nonnull
                                                                   java.lang.String projectKey,
                                                                   @Nonnull
                                                                   java.lang.String configKey,
                                                                   @Nonnull
                                                                   java.lang.Integer from,
                                                                   @Nonnull
                                                                   java.lang.Integer to,
                                                                   @Nonnull
                                                                   java.lang.String env)
                                                            throws ApiException
        Get AI Config metrics Retrieve usage metrics for an AI Config by config key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        from - The starting time, as milliseconds since epoch (inclusive). (required)
        to - The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. (required)
        env - An environment key. Only metrics from this environment will be included. (required)
        Returns:
        ApiResponse<Metrics>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigMetricsAsync

        public okhttp3.Call getAIConfigMetricsAsync​(@Nonnull
                                                    java.lang.String projectKey,
                                                    @Nonnull
                                                    java.lang.String configKey,
                                                    @Nonnull
                                                    java.lang.Integer from,
                                                    @Nonnull
                                                    java.lang.Integer to,
                                                    @Nonnull
                                                    java.lang.String env,
                                                    ApiCallback<Metrics> _callback)
                                             throws ApiException
        Get AI Config metrics (asynchronously) Retrieve usage metrics for an AI Config by config key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        from - The starting time, as milliseconds since epoch (inclusive). (required)
        to - The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. (required)
        env - An environment key. Only metrics from this environment will be included. (required)
        _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
      • getAIConfigMetricsByVariationCall

        public okhttp3.Call getAIConfigMetricsByVariationCall​(@Nonnull
                                                              java.lang.String projectKey,
                                                              @Nonnull
                                                              java.lang.String configKey,
                                                              @Nonnull
                                                              java.lang.Integer from,
                                                              @Nonnull
                                                              java.lang.Integer to,
                                                              @Nonnull
                                                              java.lang.String env,
                                                              ApiCallback _callback)
                                                       throws ApiException
        Build call for getAIConfigMetricsByVariation
        Parameters:
        projectKey - (required)
        configKey - (required)
        from - The starting time, as milliseconds since epoch (inclusive). (required)
        to - The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. (required)
        env - An environment key. Only metrics from this environment will be included. (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAIConfigMetricsByVariation

        public java.util.List<MetricByVariation> getAIConfigMetricsByVariation​(@Nonnull
                                                                               java.lang.String projectKey,
                                                                               @Nonnull
                                                                               java.lang.String configKey,
                                                                               @Nonnull
                                                                               java.lang.Integer from,
                                                                               @Nonnull
                                                                               java.lang.Integer to,
                                                                               @Nonnull
                                                                               java.lang.String env)
                                                                        throws ApiException
        Get AI Config metrics by variation Retrieve usage metrics for an AI Config by config key, with results split by variation.
        Parameters:
        projectKey - (required)
        configKey - (required)
        from - The starting time, as milliseconds since epoch (inclusive). (required)
        to - The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. (required)
        env - An environment key. Only metrics from this environment will be included. (required)
        Returns:
        List<MetricByVariation>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigMetricsByVariationWithHttpInfo

        public ApiResponse<java.util.List<MetricByVariation>> getAIConfigMetricsByVariationWithHttpInfo​(@Nonnull
                                                                                                        java.lang.String projectKey,
                                                                                                        @Nonnull
                                                                                                        java.lang.String configKey,
                                                                                                        @Nonnull
                                                                                                        java.lang.Integer from,
                                                                                                        @Nonnull
                                                                                                        java.lang.Integer to,
                                                                                                        @Nonnull
                                                                                                        java.lang.String env)
                                                                                                 throws ApiException
        Get AI Config metrics by variation Retrieve usage metrics for an AI Config by config key, with results split by variation.
        Parameters:
        projectKey - (required)
        configKey - (required)
        from - The starting time, as milliseconds since epoch (inclusive). (required)
        to - The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. (required)
        env - An environment key. Only metrics from this environment will be included. (required)
        Returns:
        ApiResponse<List<MetricByVariation>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigMetricsByVariationAsync

        public okhttp3.Call getAIConfigMetricsByVariationAsync​(@Nonnull
                                                               java.lang.String projectKey,
                                                               @Nonnull
                                                               java.lang.String configKey,
                                                               @Nonnull
                                                               java.lang.Integer from,
                                                               @Nonnull
                                                               java.lang.Integer to,
                                                               @Nonnull
                                                               java.lang.String env,
                                                               ApiCallback<java.util.List<MetricByVariation>> _callback)
                                                        throws ApiException
        Get AI Config metrics by variation (asynchronously) Retrieve usage metrics for an AI Config by config key, with results split by variation.
        Parameters:
        projectKey - (required)
        configKey - (required)
        from - The starting time, as milliseconds since epoch (inclusive). (required)
        to - The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`. (required)
        env - An environment key. Only metrics from this environment will be included. (required)
        _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
      • getAIConfigTargetingCall

        public okhttp3.Call getAIConfigTargetingCall​(@Nonnull
                                                     java.lang.String projectKey,
                                                     @Nonnull
                                                     java.lang.String configKey,
                                                     ApiCallback _callback)
                                              throws ApiException
        Build call for getAIConfigTargeting
        Parameters:
        projectKey - (required)
        configKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAIConfigTargeting

        public AIConfigTargeting getAIConfigTargeting​(@Nonnull
                                                      java.lang.String projectKey,
                                                      @Nonnull
                                                      java.lang.String configKey)
                                               throws ApiException
        Show an AI Config's targeting Retrieves a specific AI Config's targeting by its key
        Parameters:
        projectKey - (required)
        configKey - (required)
        Returns:
        AIConfigTargeting
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigTargetingWithHttpInfo

        public ApiResponse<AIConfigTargeting> getAIConfigTargetingWithHttpInfo​(@Nonnull
                                                                               java.lang.String projectKey,
                                                                               @Nonnull
                                                                               java.lang.String configKey)
                                                                        throws ApiException
        Show an AI Config's targeting Retrieves a specific AI Config's targeting by its key
        Parameters:
        projectKey - (required)
        configKey - (required)
        Returns:
        ApiResponse<AIConfigTargeting>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigTargetingAsync

        public okhttp3.Call getAIConfigTargetingAsync​(@Nonnull
                                                      java.lang.String projectKey,
                                                      @Nonnull
                                                      java.lang.String configKey,
                                                      ApiCallback<AIConfigTargeting> _callback)
                                               throws ApiException
        Show an AI Config's targeting (asynchronously) Retrieves a specific AI Config's targeting by its key
        Parameters:
        projectKey - (required)
        configKey - (required)
        _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
      • getAIConfigVariationCall

        public okhttp3.Call getAIConfigVariationCall​(@Nonnull
                                                     java.lang.String projectKey,
                                                     @Nonnull
                                                     java.lang.String configKey,
                                                     @Nonnull
                                                     java.lang.String variationKey,
                                                     ApiCallback _callback)
                                              throws ApiException
        Build call for getAIConfigVariation
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAIConfigVariation

        public AIConfigVariationsResponse getAIConfigVariation​(@Nonnull
                                                               java.lang.String projectKey,
                                                               @Nonnull
                                                               java.lang.String configKey,
                                                               @Nonnull
                                                               java.lang.String variationKey)
                                                        throws ApiException
        Get AI Config variation Get an AI Config variation by key. The response includes all variation versions for the given variation key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        Returns:
        AIConfigVariationsResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigVariationWithHttpInfo

        public ApiResponse<AIConfigVariationsResponse> getAIConfigVariationWithHttpInfo​(@Nonnull
                                                                                        java.lang.String projectKey,
                                                                                        @Nonnull
                                                                                        java.lang.String configKey,
                                                                                        @Nonnull
                                                                                        java.lang.String variationKey)
                                                                                 throws ApiException
        Get AI Config variation Get an AI Config variation by key. The response includes all variation versions for the given variation key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        Returns:
        ApiResponse<AIConfigVariationsResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigVariationAsync

        public okhttp3.Call getAIConfigVariationAsync​(@Nonnull
                                                      java.lang.String projectKey,
                                                      @Nonnull
                                                      java.lang.String configKey,
                                                      @Nonnull
                                                      java.lang.String variationKey,
                                                      ApiCallback<AIConfigVariationsResponse> _callback)
                                               throws ApiException
        Get AI Config variation (asynchronously) Get an AI Config variation by key. The response includes all variation versions for the given variation key.
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        _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
      • getAIConfigsCall

        public okhttp3.Call getAIConfigsCall​(@Nonnull
                                             java.lang.String projectKey,
                                             @Nullable
                                             java.lang.String sort,
                                             @Nullable
                                             java.lang.Integer limit,
                                             @Nullable
                                             java.lang.Integer offset,
                                             @Nullable
                                             java.lang.String filter,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for getAIConfigs
        Parameters:
        projectKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        filter - A filter to apply to the list of AI Configs. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAIConfigs

        public AIConfigs getAIConfigs​(@Nonnull
                                      java.lang.String projectKey,
                                      @Nullable
                                      java.lang.String sort,
                                      @Nullable
                                      java.lang.Integer limit,
                                      @Nullable
                                      java.lang.Integer offset,
                                      @Nullable
                                      java.lang.String filter)
                               throws ApiException
        List AI Configs Get a list of all AI Configs in the given project.
        Parameters:
        projectKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        filter - A filter to apply to the list of AI Configs. (optional)
        Returns:
        AIConfigs
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigsWithHttpInfo

        public ApiResponse<AIConfigs> getAIConfigsWithHttpInfo​(@Nonnull
                                                               java.lang.String projectKey,
                                                               @Nullable
                                                               java.lang.String sort,
                                                               @Nullable
                                                               java.lang.Integer limit,
                                                               @Nullable
                                                               java.lang.Integer offset,
                                                               @Nullable
                                                               java.lang.String filter)
                                                        throws ApiException
        List AI Configs Get a list of all AI Configs in the given project.
        Parameters:
        projectKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        filter - A filter to apply to the list of AI Configs. (optional)
        Returns:
        ApiResponse<AIConfigs>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIConfigsAsync

        public okhttp3.Call getAIConfigsAsync​(@Nonnull
                                              java.lang.String projectKey,
                                              @Nullable
                                              java.lang.String sort,
                                              @Nullable
                                              java.lang.Integer limit,
                                              @Nullable
                                              java.lang.Integer offset,
                                              @Nullable
                                              java.lang.String filter,
                                              ApiCallback<AIConfigs> _callback)
                                       throws ApiException
        List AI Configs (asynchronously) Get a list of all AI Configs in the given project.
        Parameters:
        projectKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        filter - A filter to apply to the list of AI Configs. (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
      • getAIToolCall

        public okhttp3.Call getAIToolCall​(@Nonnull
                                          java.lang.String projectKey,
                                          @Nonnull
                                          java.lang.String toolKey,
                                          ApiCallback _callback)
                                   throws ApiException
        Build call for getAITool
        Parameters:
        projectKey - (required)
        toolKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAITool

        public AITool getAITool​(@Nonnull
                                java.lang.String projectKey,
                                @Nonnull
                                java.lang.String toolKey)
                         throws ApiException
        Get AI tool Retrieve a specific AI tool by its key.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        Returns:
        AITool
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIToolWithHttpInfo

        public ApiResponse<AITool> getAIToolWithHttpInfo​(@Nonnull
                                                         java.lang.String projectKey,
                                                         @Nonnull
                                                         java.lang.String toolKey)
                                                  throws ApiException
        Get AI tool Retrieve a specific AI tool by its key.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        Returns:
        ApiResponse<AITool>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAIToolAsync

        public okhttp3.Call getAIToolAsync​(@Nonnull
                                           java.lang.String projectKey,
                                           @Nonnull
                                           java.lang.String toolKey,
                                           ApiCallback<AITool> _callback)
                                    throws ApiException
        Get AI tool (asynchronously) Retrieve a specific AI tool by its key.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        _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
      • getAgentGraphCall

        public okhttp3.Call getAgentGraphCall​(@Nonnull
                                              java.lang.String ldAPIVersion,
                                              @Nonnull
                                              java.lang.String projectKey,
                                              @Nonnull
                                              java.lang.String graphKey,
                                              ApiCallback _callback)
                                       throws ApiException
        Build call for getAgentGraph
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAgentGraph

        public AgentGraph getAgentGraph​(@Nonnull
                                        java.lang.String ldAPIVersion,
                                        @Nonnull
                                        java.lang.String projectKey,
                                        @Nonnull
                                        java.lang.String graphKey)
                                 throws ApiException
        Get agent graph Retrieve a specific agent graph by its key, including its edges.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        Returns:
        AgentGraph
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAgentGraphWithHttpInfo

        public ApiResponse<AgentGraph> getAgentGraphWithHttpInfo​(@Nonnull
                                                                 java.lang.String ldAPIVersion,
                                                                 @Nonnull
                                                                 java.lang.String projectKey,
                                                                 @Nonnull
                                                                 java.lang.String graphKey)
                                                          throws ApiException
        Get agent graph Retrieve a specific agent graph by its key, including its edges.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        Returns:
        ApiResponse<AgentGraph>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAgentGraphAsync

        public okhttp3.Call getAgentGraphAsync​(@Nonnull
                                               java.lang.String ldAPIVersion,
                                               @Nonnull
                                               java.lang.String projectKey,
                                               @Nonnull
                                               java.lang.String graphKey,
                                               ApiCallback<AgentGraph> _callback)
                                        throws ApiException
        Get agent graph (asynchronously) Retrieve a specific agent graph by its key, including its edges.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        _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
      • getModelConfigCall

        public okhttp3.Call getModelConfigCall​(@Nonnull
                                               java.lang.String projectKey,
                                               @Nonnull
                                               java.lang.String modelConfigKey,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for getModelConfig
        Parameters:
        projectKey - (required)
        modelConfigKey - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getModelConfig

        public ModelConfig getModelConfig​(@Nonnull
                                          java.lang.String projectKey,
                                          @Nonnull
                                          java.lang.String modelConfigKey)
                                   throws ApiException
        Get AI model config Get an AI model config by key.
        Parameters:
        projectKey - (required)
        modelConfigKey - (required)
        Returns:
        ModelConfig
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getModelConfigWithHttpInfo

        public ApiResponse<ModelConfig> getModelConfigWithHttpInfo​(@Nonnull
                                                                   java.lang.String projectKey,
                                                                   @Nonnull
                                                                   java.lang.String modelConfigKey)
                                                            throws ApiException
        Get AI model config Get an AI model config by key.
        Parameters:
        projectKey - (required)
        modelConfigKey - (required)
        Returns:
        ApiResponse<ModelConfig>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getModelConfigAsync

        public okhttp3.Call getModelConfigAsync​(@Nonnull
                                                java.lang.String projectKey,
                                                @Nonnull
                                                java.lang.String modelConfigKey,
                                                ApiCallback<ModelConfig> _callback)
                                         throws ApiException
        Get AI model config (asynchronously) Get an AI model config by key.
        Parameters:
        projectKey - (required)
        modelConfigKey - (required)
        _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
      • listAIToolVersionsCall

        public okhttp3.Call listAIToolVersionsCall​(@Nonnull
                                                   java.lang.String projectKey,
                                                   @Nonnull
                                                   java.lang.String toolKey,
                                                   @Nullable
                                                   java.lang.String sort,
                                                   @Nullable
                                                   java.lang.Integer limit,
                                                   @Nullable
                                                   java.lang.Integer offset,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for listAIToolVersions
        Parameters:
        projectKey - (required)
        toolKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • listAIToolVersions

        public AITools listAIToolVersions​(@Nonnull
                                          java.lang.String projectKey,
                                          @Nonnull
                                          java.lang.String toolKey,
                                          @Nullable
                                          java.lang.String sort,
                                          @Nullable
                                          java.lang.Integer limit,
                                          @Nullable
                                          java.lang.Integer offset)
                                   throws ApiException
        List AI tool versions Get a list of all versions of an AI tool in the given project.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        Returns:
        AITools
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listAIToolVersionsWithHttpInfo

        public ApiResponse<AITools> listAIToolVersionsWithHttpInfo​(@Nonnull
                                                                   java.lang.String projectKey,
                                                                   @Nonnull
                                                                   java.lang.String toolKey,
                                                                   @Nullable
                                                                   java.lang.String sort,
                                                                   @Nullable
                                                                   java.lang.Integer limit,
                                                                   @Nullable
                                                                   java.lang.Integer offset)
                                                            throws ApiException
        List AI tool versions Get a list of all versions of an AI tool in the given project.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        Returns:
        ApiResponse<AITools>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listAIToolVersionsAsync

        public okhttp3.Call listAIToolVersionsAsync​(@Nonnull
                                                    java.lang.String projectKey,
                                                    @Nonnull
                                                    java.lang.String toolKey,
                                                    @Nullable
                                                    java.lang.String sort,
                                                    @Nullable
                                                    java.lang.Integer limit,
                                                    @Nullable
                                                    java.lang.Integer offset,
                                                    ApiCallback<AITools> _callback)
                                             throws ApiException
        List AI tool versions (asynchronously) Get a list of all versions of an AI tool in the given project.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (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
      • listAIToolsCall

        public okhttp3.Call listAIToolsCall​(@Nonnull
                                            java.lang.String projectKey,
                                            @Nullable
                                            java.lang.String sort,
                                            @Nullable
                                            java.lang.Integer limit,
                                            @Nullable
                                            java.lang.Integer offset,
                                            @Nullable
                                            java.lang.String filter,
                                            ApiCallback _callback)
                                     throws ApiException
        Build call for listAITools
        Parameters:
        projectKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        filter - A filter to apply to the list of AI Configs. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • listAITools

        public AITools listAITools​(@Nonnull
                                   java.lang.String projectKey,
                                   @Nullable
                                   java.lang.String sort,
                                   @Nullable
                                   java.lang.Integer limit,
                                   @Nullable
                                   java.lang.Integer offset,
                                   @Nullable
                                   java.lang.String filter)
                            throws ApiException
        List AI tools Get a list of all AI tools in the given project.
        Parameters:
        projectKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        filter - A filter to apply to the list of AI Configs. (optional)
        Returns:
        AITools
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listAIToolsWithHttpInfo

        public ApiResponse<AITools> listAIToolsWithHttpInfo​(@Nonnull
                                                            java.lang.String projectKey,
                                                            @Nullable
                                                            java.lang.String sort,
                                                            @Nullable
                                                            java.lang.Integer limit,
                                                            @Nullable
                                                            java.lang.Integer offset,
                                                            @Nullable
                                                            java.lang.String filter)
                                                     throws ApiException
        List AI tools Get a list of all AI tools in the given project.
        Parameters:
        projectKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        filter - A filter to apply to the list of AI Configs. (optional)
        Returns:
        ApiResponse<AITools>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listAIToolsAsync

        public okhttp3.Call listAIToolsAsync​(@Nonnull
                                             java.lang.String projectKey,
                                             @Nullable
                                             java.lang.String sort,
                                             @Nullable
                                             java.lang.Integer limit,
                                             @Nullable
                                             java.lang.Integer offset,
                                             @Nullable
                                             java.lang.String filter,
                                             ApiCallback<AITools> _callback)
                                      throws ApiException
        List AI tools (asynchronously) Get a list of all AI tools in the given project.
        Parameters:
        projectKey - (required)
        sort - A sort to apply to the list of AI Configs. (optional)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        filter - A filter to apply to the list of AI Configs. (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
      • listAgentGraphsCall

        public okhttp3.Call listAgentGraphsCall​(@Nonnull
                                                java.lang.String ldAPIVersion,
                                                @Nonnull
                                                java.lang.String projectKey,
                                                @Nullable
                                                java.lang.Integer limit,
                                                @Nullable
                                                java.lang.Integer offset,
                                                ApiCallback _callback)
                                         throws ApiException
        Build call for listAgentGraphs
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • listAgentGraphs

        public AgentGraphs listAgentGraphs​(@Nonnull
                                           java.lang.String ldAPIVersion,
                                           @Nonnull
                                           java.lang.String projectKey,
                                           @Nullable
                                           java.lang.Integer limit,
                                           @Nullable
                                           java.lang.Integer offset)
                                    throws ApiException
        List agent graphs Get a list of all agent graphs in the given project. Returns metadata only, without edge data.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        Returns:
        AgentGraphs
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listAgentGraphsWithHttpInfo

        public ApiResponse<AgentGraphs> listAgentGraphsWithHttpInfo​(@Nonnull
                                                                    java.lang.String ldAPIVersion,
                                                                    @Nonnull
                                                                    java.lang.String projectKey,
                                                                    @Nullable
                                                                    java.lang.Integer limit,
                                                                    @Nullable
                                                                    java.lang.Integer offset)
                                                             throws ApiException
        List agent graphs Get a list of all agent graphs in the given project. Returns metadata only, without edge data.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        Returns:
        ApiResponse<AgentGraphs>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listAgentGraphsAsync

        public okhttp3.Call listAgentGraphsAsync​(@Nonnull
                                                 java.lang.String ldAPIVersion,
                                                 @Nonnull
                                                 java.lang.String projectKey,
                                                 @Nullable
                                                 java.lang.Integer limit,
                                                 @Nullable
                                                 java.lang.Integer offset,
                                                 ApiCallback<AgentGraphs> _callback)
                                          throws ApiException
        List agent graphs (asynchronously) Get a list of all agent graphs in the given project. Returns metadata only, without edge data.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        limit - The number of AI Configs to return. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (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
      • listModelConfigsCall

        public okhttp3.Call listModelConfigsCall​(@Nonnull
                                                 java.lang.String projectKey,
                                                 @Nullable
                                                 java.lang.Boolean restricted,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for listModelConfigs
        Parameters:
        projectKey - (required)
        restricted - Whether to return only restricted models (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • listModelConfigs

        public java.util.List<ModelConfig> listModelConfigs​(@Nonnull
                                                            java.lang.String projectKey,
                                                            @Nullable
                                                            java.lang.Boolean restricted)
                                                     throws ApiException
        List AI model configs Get all AI model configs for a project.
        Parameters:
        projectKey - (required)
        restricted - Whether to return only restricted models (optional)
        Returns:
        List<ModelConfig>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listModelConfigsWithHttpInfo

        public ApiResponse<java.util.List<ModelConfig>> listModelConfigsWithHttpInfo​(@Nonnull
                                                                                     java.lang.String projectKey,
                                                                                     @Nullable
                                                                                     java.lang.Boolean restricted)
                                                                              throws ApiException
        List AI model configs Get all AI model configs for a project.
        Parameters:
        projectKey - (required)
        restricted - Whether to return only restricted models (optional)
        Returns:
        ApiResponse<List<ModelConfig>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listModelConfigsAsync

        public okhttp3.Call listModelConfigsAsync​(@Nonnull
                                                  java.lang.String projectKey,
                                                  @Nullable
                                                  java.lang.Boolean restricted,
                                                  ApiCallback<java.util.List<ModelConfig>> _callback)
                                           throws ApiException
        List AI model configs (asynchronously) Get all AI model configs for a project.
        Parameters:
        projectKey - (required)
        restricted - Whether to return only restricted models (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
      • patchAIConfigCall

        public okhttp3.Call patchAIConfigCall​(@Nonnull
                                              java.lang.String projectKey,
                                              @Nonnull
                                              java.lang.String configKey,
                                              @Nullable
                                              AIConfigPatch aiConfigPatch,
                                              ApiCallback _callback)
                                       throws ApiException
        Build call for patchAIConfig
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigPatch - AI Config object to update (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchAIConfig

        public AIConfig patchAIConfig​(@Nonnull
                                      java.lang.String projectKey,
                                      @Nonnull
                                      java.lang.String configKey,
                                      @Nullable
                                      AIConfigPatch aiConfigPatch)
                               throws ApiException
        Update AI Config Edit an existing AI Config. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { \"description\": \"Example updated description\", \"tags\": [\"new-tag\"] } ```
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigPatch - AI Config object to update (optional)
        Returns:
        AIConfig
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAIConfigWithHttpInfo

        public ApiResponse<AIConfig> patchAIConfigWithHttpInfo​(@Nonnull
                                                               java.lang.String projectKey,
                                                               @Nonnull
                                                               java.lang.String configKey,
                                                               @Nullable
                                                               AIConfigPatch aiConfigPatch)
                                                        throws ApiException
        Update AI Config Edit an existing AI Config. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { \"description\": \"Example updated description\", \"tags\": [\"new-tag\"] } ```
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigPatch - AI Config object to update (optional)
        Returns:
        ApiResponse<AIConfig>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAIConfigAsync

        public okhttp3.Call patchAIConfigAsync​(@Nonnull
                                               java.lang.String projectKey,
                                               @Nonnull
                                               java.lang.String configKey,
                                               @Nullable
                                               AIConfigPatch aiConfigPatch,
                                               ApiCallback<AIConfig> _callback)
                                        throws ApiException
        Update AI Config (asynchronously) Edit an existing AI Config. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { \"description\": \"Example updated description\", \"tags\": [\"new-tag\"] } ```
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigPatch - AI Config object to update (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
      • patchAIConfigTargetingCall

        public okhttp3.Call patchAIConfigTargetingCall​(@Nonnull
                                                       java.lang.String projectKey,
                                                       @Nonnull
                                                       java.lang.String configKey,
                                                       @Nullable
                                                       AIConfigTargetingPatch aiConfigTargetingPatch,
                                                       ApiCallback _callback)
                                                throws ApiException
        Build call for patchAIConfigTargeting
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigTargetingPatch - AI Config targeting semantic patch instructions (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchAIConfigTargeting

        public AIConfigTargeting patchAIConfigTargeting​(@Nonnull
                                                        java.lang.String projectKey,
                                                        @Nonnull
                                                        java.lang.String configKey,
                                                        @Nullable
                                                        AIConfigTargetingPatch aiConfigTargetingPatch)
                                                 throws ApiException
        Update AI Config targeting Perform a partial update to an AI Config's targeting. The request body must be a valid semantic patch. ### Using semantic patches on an AI Config To make a semantic patch request, you must append `domain-model=launchdarkly.semanticpatch` to your `Content-Type` header. To learn more, read [Updates using semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch). The body of a semantic patch request for updating an AI Config's targeting takes the following properties: * `comment` (string): (Optional) A description of the update. * `environmentKey` (string): The key of the LaunchDarkly environment. * `instructions` (array): (Required) A list of actions the update should perform. Each action in the list must be an object with a `kind` property that indicates the instruction. If the action requires parameters, you must include those parameters as additional fields in the object. The body of a single semantic patch can contain many different instructions. ### Instructions Semantic patch requests support the following `kind` instructions for updating AI Configs. <details> <summary>Click to expand instructions for <strong>working with targeting and variations</strong> for AI Configs</summary> #### addClauses Adds the given clauses to the rule indicated by `ruleId`. ##### Parameters - `ruleId`: ID of a rule in the AI Config. - `clauses`: Array of clause objects, with `contextKind` (string), `attribute` (string), `op` (string), `negate` (boolean), and `values` (array of strings, numbers, or dates) properties. The `contextKind`, `attribute`, and `values` are case sensitive. The `op` must be lower-case. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addClauses\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauses\": [{ \"contextKind\": \"user\", \"attribute\": \"country\", \"op\": \"in\", \"negate\": false, \"values\": [\"USA\", \"Canada\"] }] }] } ``` #### addRule Adds a new targeting rule to the AI Config. The rule may contain `clauses` and serve the variation that `variationId` indicates, or serve a percentage rollout that `rolloutWeights`, `rolloutBucketBy`, and `rolloutContextKind` indicate. If you set `beforeRuleId`, this adds the new rule before the indicated rule. Otherwise, adds the new rule to the end of the list. ##### Parameters - `clauses`: Array of clause objects, with `contextKind` (string), `attribute` (string), `op` (string), `negate` (boolean), and `values` (array of strings, numbers, or dates) properties. The `contextKind`, `attribute`, and `values` are case sensitive. The `op` must be lower-case. - `beforeRuleId`: (Optional) ID of a rule. - Either - `variationId`: ID of a variation. or - `rolloutWeights`: (Optional) Map of `variationId` to weight, in thousandths of a percent (0-100000). - `rolloutBucketBy`: (Optional) Context attribute available in the specified `rolloutContextKind`. - `rolloutContextKind`: (Optional) Context kind, defaults to `user` Here's an example that uses a `variationId`: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addRule\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\", \"clauses\": [{ \"contextKind\": \"organization\", \"attribute\": \"located_in\", \"op\": \"in\", \"negate\": false, \"values\": [\"Sweden\", \"Norway\"] }] }] } ``` Here's an example that uses a percentage rollout: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addRule\", \"clauses\": [{ \"contextKind\": \"organization\", \"attribute\": \"located_in\", \"op\": \"in\", \"negate\": false, \"values\": [\"Sweden\", \"Norway\"] }], \"rolloutContextKind\": \"organization\", \"rolloutWeights\": { \"2f43f67c-3e4e-4945-a18a-26559378ca00\": 15000, // serve 15% this variation \"e5830889-1ec5-4b0c-9cc9-c48790090c43\": 85000 // serve 85% this variation } }] } ``` #### addTargets Adds context keys to the individual context targets for the context kind that `contextKind` specifies and the variation that `variationId` specifies. Returns an error if this causes the AI Config to target the same context key in multiple variations. ##### Parameters - `values`: List of context keys. - `contextKind`: (Optional) Context kind to target, defaults to `user` - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addTargets\", \"values\": [\"context-key-123abc\", \"context-key-456def\"], \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` #### addValuesToClause Adds `values` to the values of the clause that `ruleId` and `clauseId` indicate. Does not update the context kind, attribute, or operator. ##### Parameters - `ruleId`: ID of a rule in the AI Config. - `clauseId`: ID of a clause in that rule. - `values`: Array of strings, case sensitive. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addValuesToClause\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseId\": \"10a58772-3121-400f-846b-b8a04e8944ed\", \"values\": [\"beta_testers\"] }] } ``` #### clearTargets Removes all individual targets from the variation that `variationId` specifies. This includes both user and non-user targets. ##### Parameters - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"clearTargets\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" } ] } ``` #### removeClauses Removes the clauses specified by `clauseIds` from the rule indicated by `ruleId`. ##### Parameters - `ruleId`: ID of a rule. - `clauseIds`: Array of IDs of clauses in the rule. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"removeClauses\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseIds\": [\"10a58772-3121-400f-846b-b8a04e8944ed\", \"36a461dc-235e-4b08-97b9-73ce9365873e\"] }] } ``` #### removeRule Removes the targeting rule specified by `ruleId`. Does nothing if the rule does not exist. ##### Parameters - `ruleId`: ID of a rule. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"removeRule\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\" } ] } ``` #### removeTargets Removes context keys from the individual context targets for the context kind that `contextKind` specifies and the variation that `variationId` specifies. Does nothing if the flag does not target the context keys. ##### Parameters - `values`: List of context keys. - `contextKind`: (Optional) Context kind to target, defaults to `user` - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"removeTargets\", \"values\": [\"context-key-123abc\", \"context-key-456def\"], \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` #### removeValuesFromClause Removes `values` from the values of the clause indicated by `ruleId` and `clauseId`. Does not update the context kind, attribute, or operator. ##### Parameters - `ruleId`: ID of a rule. - `clauseId`: ID of a clause in that rule. - `values`: Array of strings, case sensitive. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"removeValuesFromClause\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseId\": \"10a58772-3121-400f-846b-b8a04e8944ed\", \"values\": [\"beta_testers\"] }] } ``` #### reorderRules Rearranges the rules to match the order given in `ruleIds`. Returns an error if `ruleIds` does not match the current set of rules on the AI Config. ##### Parameters - `ruleIds`: Array of IDs of all rules. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"reorderRules\", \"ruleIds\": [\"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"63c238d1-835d-435e-8f21-c8d5e40b2a3d\"] }] } ``` #### replaceRules Removes all targeting rules for the AI Config and replaces them with the list you provide. ##### Parameters - `rules`: A list of rules. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"replaceRules\", \"rules\": [ { \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\", \"description\": \"My new rule\", \"clauses\": [ { \"contextKind\": \"user\", \"attribute\": \"segmentMatch\", \"op\": \"segmentMatch\", \"values\": [\"test\"] } ] } ] } ] } ``` #### replaceTargets Removes all existing targeting and replaces it with the list of targets you provide. ##### Parameters - `targets`: A list of context targeting. Each item in the list includes an optional `contextKind` that defaults to `user`, a required `variationId`, and a required list of `values`. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"replaceTargets\", \"targets\": [ { \"contextKind\": \"user\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\", \"values\": [\"user-key-123abc\"] }, { \"contextKind\": \"device\", \"variationId\": \"e5830889-1ec5-4b0c-9cc9-c48790090c43\", \"values\": [\"device-key-456def\"] } ] } ] } ``` #### updateClause Replaces the clause indicated by `ruleId` and `clauseId` with `clause`. ##### Parameters - `ruleId`: ID of a rule. - `clauseId`: ID of a clause in that rule. - `clause`: New `clause` object, with `contextKind` (string), `attribute` (string), `op` (string), `negate` (boolean), and `values` (array of strings, numbers, or dates) properties. The `contextKind`, `attribute`, and `values` are case sensitive. The `op` must be lower-case. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateClause\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseId\": \"10c7462a-2062-45ba-a8bb-dfb3de0f8af5\", \"clause\": { \"contextKind\": \"user\", \"attribute\": \"country\", \"op\": \"in\", \"negate\": false, \"values\": [\"Mexico\", \"Canada\"] } }] } ``` #### updateDefaultVariation Updates the default on or off variation of the AI Config. ##### Parameters - `onVariationValue`: (Optional) The value of the variation of the new on variation. - `offVariationValue`: (Optional) The value of the variation of the new off variation Here's an example: ```json { \"instructions\": [ { \"kind\": \"updateDefaultVariation\", \"OnVariationValue\": true, \"OffVariationValue\": false } ] } ``` #### updateFallthroughVariationOrRollout Updates the default or \"fallthrough\" rule for the AI Config, which the AI Config serves when a context matches none of the targeting rules. The rule can serve either the variation that `variationId` indicates, or a percentage rollout that `rolloutWeights` and `rolloutBucketBy` indicate. ##### Parameters - `variationId`: ID of a variation. or - `rolloutWeights`: Map of `variationId` to weight, in thousandths of a percent (0-100000). - `rolloutBucketBy`: (Optional) Context attribute available in the specified `rolloutContextKind`. - `rolloutContextKind`: (Optional) Context kind, defaults to `user` Here's an example that uses a `variationId`: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateFallthroughVariationOrRollout\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` Here's an example that uses a percentage rollout: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateFallthroughVariationOrRollout\", \"rolloutContextKind\": \"user\", \"rolloutWeights\": { \"2f43f67c-3e4e-4945-a18a-26559378ca00\": 15000, // serve 15% this variation \"e5830889-1ec5-4b0c-9cc9-c48790090c43\": 85000 // serve 85% this variation } }] } ``` #### updateOffVariation Updates the default off variation to `variationId`. The AI Config serves the default off variation when the AI Config's targeting is **Off**. ##### Parameters - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"updateOffVariation\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" } ] } ``` #### updateRuleDescription Updates the description of the targeting rule. ##### Parameters - `description`: The new human-readable description for this rule. - `ruleId`: The ID of the rule. You can retrieve this by making a GET request for the AI Config. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateRuleDescription\", \"description\": \"New rule description\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\" }] } ``` #### updateRuleTrackEvents Updates whether or not LaunchDarkly tracks events for the AI Config associated with this rule. ##### Parameters - `ruleId`: The ID of the rule. You can retrieve this by making a GET request for the AI Config. - `trackEvents`: Whether or not events are tracked. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateRuleTrackEvents\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"trackEvents\": true }] } ``` #### updateRuleVariationOrRollout Updates what `ruleId` serves when its clauses evaluate to true. The rule can serve either the variation that `variationId` indicates, or a percent rollout that `rolloutWeights` and `rolloutBucketBy` indicate. ##### Parameters - `ruleId`: ID of a rule. - `variationId`: ID of a variation. or - `rolloutWeights`: Map of `variationId` to weight, in thousandths of a percent (0-100000). - `rolloutBucketBy`: (Optional) Context attribute available in the specified `rolloutContextKind`. - `rolloutContextKind`: (Optional) Context kind, defaults to `user` Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateRuleVariationOrRollout\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` #### updateTrackEvents Updates whether or not LaunchDarkly tracks events for the AI Config, for all rules. ##### Parameters - `trackEvents`: Whether or not events are tracked. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"updateTrackEvents\", \"trackEvents\": true } ] } ``` #### updateTrackEventsFallthrough Updates whether or not LaunchDarkly tracks events for the AI Config, for the default rule. ##### Parameters - `trackEvents`: Whether or not events are tracked. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"updateTrackEventsFallthrough\", \"trackEvents\": true } ] } ``` </details>
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigTargetingPatch - AI Config targeting semantic patch instructions (optional)
        Returns:
        AIConfigTargeting
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAIConfigTargetingWithHttpInfo

        public ApiResponse<AIConfigTargeting> patchAIConfigTargetingWithHttpInfo​(@Nonnull
                                                                                 java.lang.String projectKey,
                                                                                 @Nonnull
                                                                                 java.lang.String configKey,
                                                                                 @Nullable
                                                                                 AIConfigTargetingPatch aiConfigTargetingPatch)
                                                                          throws ApiException
        Update AI Config targeting Perform a partial update to an AI Config's targeting. The request body must be a valid semantic patch. ### Using semantic patches on an AI Config To make a semantic patch request, you must append `domain-model=launchdarkly.semanticpatch` to your `Content-Type` header. To learn more, read [Updates using semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch). The body of a semantic patch request for updating an AI Config's targeting takes the following properties: * `comment` (string): (Optional) A description of the update. * `environmentKey` (string): The key of the LaunchDarkly environment. * `instructions` (array): (Required) A list of actions the update should perform. Each action in the list must be an object with a `kind` property that indicates the instruction. If the action requires parameters, you must include those parameters as additional fields in the object. The body of a single semantic patch can contain many different instructions. ### Instructions Semantic patch requests support the following `kind` instructions for updating AI Configs. <details> <summary>Click to expand instructions for <strong>working with targeting and variations</strong> for AI Configs</summary> #### addClauses Adds the given clauses to the rule indicated by `ruleId`. ##### Parameters - `ruleId`: ID of a rule in the AI Config. - `clauses`: Array of clause objects, with `contextKind` (string), `attribute` (string), `op` (string), `negate` (boolean), and `values` (array of strings, numbers, or dates) properties. The `contextKind`, `attribute`, and `values` are case sensitive. The `op` must be lower-case. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addClauses\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauses\": [{ \"contextKind\": \"user\", \"attribute\": \"country\", \"op\": \"in\", \"negate\": false, \"values\": [\"USA\", \"Canada\"] }] }] } ``` #### addRule Adds a new targeting rule to the AI Config. The rule may contain `clauses` and serve the variation that `variationId` indicates, or serve a percentage rollout that `rolloutWeights`, `rolloutBucketBy`, and `rolloutContextKind` indicate. If you set `beforeRuleId`, this adds the new rule before the indicated rule. Otherwise, adds the new rule to the end of the list. ##### Parameters - `clauses`: Array of clause objects, with `contextKind` (string), `attribute` (string), `op` (string), `negate` (boolean), and `values` (array of strings, numbers, or dates) properties. The `contextKind`, `attribute`, and `values` are case sensitive. The `op` must be lower-case. - `beforeRuleId`: (Optional) ID of a rule. - Either - `variationId`: ID of a variation. or - `rolloutWeights`: (Optional) Map of `variationId` to weight, in thousandths of a percent (0-100000). - `rolloutBucketBy`: (Optional) Context attribute available in the specified `rolloutContextKind`. - `rolloutContextKind`: (Optional) Context kind, defaults to `user` Here's an example that uses a `variationId`: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addRule\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\", \"clauses\": [{ \"contextKind\": \"organization\", \"attribute\": \"located_in\", \"op\": \"in\", \"negate\": false, \"values\": [\"Sweden\", \"Norway\"] }] }] } ``` Here's an example that uses a percentage rollout: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addRule\", \"clauses\": [{ \"contextKind\": \"organization\", \"attribute\": \"located_in\", \"op\": \"in\", \"negate\": false, \"values\": [\"Sweden\", \"Norway\"] }], \"rolloutContextKind\": \"organization\", \"rolloutWeights\": { \"2f43f67c-3e4e-4945-a18a-26559378ca00\": 15000, // serve 15% this variation \"e5830889-1ec5-4b0c-9cc9-c48790090c43\": 85000 // serve 85% this variation } }] } ``` #### addTargets Adds context keys to the individual context targets for the context kind that `contextKind` specifies and the variation that `variationId` specifies. Returns an error if this causes the AI Config to target the same context key in multiple variations. ##### Parameters - `values`: List of context keys. - `contextKind`: (Optional) Context kind to target, defaults to `user` - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addTargets\", \"values\": [\"context-key-123abc\", \"context-key-456def\"], \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` #### addValuesToClause Adds `values` to the values of the clause that `ruleId` and `clauseId` indicate. Does not update the context kind, attribute, or operator. ##### Parameters - `ruleId`: ID of a rule in the AI Config. - `clauseId`: ID of a clause in that rule. - `values`: Array of strings, case sensitive. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addValuesToClause\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseId\": \"10a58772-3121-400f-846b-b8a04e8944ed\", \"values\": [\"beta_testers\"] }] } ``` #### clearTargets Removes all individual targets from the variation that `variationId` specifies. This includes both user and non-user targets. ##### Parameters - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"clearTargets\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" } ] } ``` #### removeClauses Removes the clauses specified by `clauseIds` from the rule indicated by `ruleId`. ##### Parameters - `ruleId`: ID of a rule. - `clauseIds`: Array of IDs of clauses in the rule. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"removeClauses\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseIds\": [\"10a58772-3121-400f-846b-b8a04e8944ed\", \"36a461dc-235e-4b08-97b9-73ce9365873e\"] }] } ``` #### removeRule Removes the targeting rule specified by `ruleId`. Does nothing if the rule does not exist. ##### Parameters - `ruleId`: ID of a rule. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"removeRule\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\" } ] } ``` #### removeTargets Removes context keys from the individual context targets for the context kind that `contextKind` specifies and the variation that `variationId` specifies. Does nothing if the flag does not target the context keys. ##### Parameters - `values`: List of context keys. - `contextKind`: (Optional) Context kind to target, defaults to `user` - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"removeTargets\", \"values\": [\"context-key-123abc\", \"context-key-456def\"], \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` #### removeValuesFromClause Removes `values` from the values of the clause indicated by `ruleId` and `clauseId`. Does not update the context kind, attribute, or operator. ##### Parameters - `ruleId`: ID of a rule. - `clauseId`: ID of a clause in that rule. - `values`: Array of strings, case sensitive. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"removeValuesFromClause\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseId\": \"10a58772-3121-400f-846b-b8a04e8944ed\", \"values\": [\"beta_testers\"] }] } ``` #### reorderRules Rearranges the rules to match the order given in `ruleIds`. Returns an error if `ruleIds` does not match the current set of rules on the AI Config. ##### Parameters - `ruleIds`: Array of IDs of all rules. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"reorderRules\", \"ruleIds\": [\"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"63c238d1-835d-435e-8f21-c8d5e40b2a3d\"] }] } ``` #### replaceRules Removes all targeting rules for the AI Config and replaces them with the list you provide. ##### Parameters - `rules`: A list of rules. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"replaceRules\", \"rules\": [ { \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\", \"description\": \"My new rule\", \"clauses\": [ { \"contextKind\": \"user\", \"attribute\": \"segmentMatch\", \"op\": \"segmentMatch\", \"values\": [\"test\"] } ] } ] } ] } ``` #### replaceTargets Removes all existing targeting and replaces it with the list of targets you provide. ##### Parameters - `targets`: A list of context targeting. Each item in the list includes an optional `contextKind` that defaults to `user`, a required `variationId`, and a required list of `values`. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"replaceTargets\", \"targets\": [ { \"contextKind\": \"user\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\", \"values\": [\"user-key-123abc\"] }, { \"contextKind\": \"device\", \"variationId\": \"e5830889-1ec5-4b0c-9cc9-c48790090c43\", \"values\": [\"device-key-456def\"] } ] } ] } ``` #### updateClause Replaces the clause indicated by `ruleId` and `clauseId` with `clause`. ##### Parameters - `ruleId`: ID of a rule. - `clauseId`: ID of a clause in that rule. - `clause`: New `clause` object, with `contextKind` (string), `attribute` (string), `op` (string), `negate` (boolean), and `values` (array of strings, numbers, or dates) properties. The `contextKind`, `attribute`, and `values` are case sensitive. The `op` must be lower-case. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateClause\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseId\": \"10c7462a-2062-45ba-a8bb-dfb3de0f8af5\", \"clause\": { \"contextKind\": \"user\", \"attribute\": \"country\", \"op\": \"in\", \"negate\": false, \"values\": [\"Mexico\", \"Canada\"] } }] } ``` #### updateDefaultVariation Updates the default on or off variation of the AI Config. ##### Parameters - `onVariationValue`: (Optional) The value of the variation of the new on variation. - `offVariationValue`: (Optional) The value of the variation of the new off variation Here's an example: ```json { \"instructions\": [ { \"kind\": \"updateDefaultVariation\", \"OnVariationValue\": true, \"OffVariationValue\": false } ] } ``` #### updateFallthroughVariationOrRollout Updates the default or \"fallthrough\" rule for the AI Config, which the AI Config serves when a context matches none of the targeting rules. The rule can serve either the variation that `variationId` indicates, or a percentage rollout that `rolloutWeights` and `rolloutBucketBy` indicate. ##### Parameters - `variationId`: ID of a variation. or - `rolloutWeights`: Map of `variationId` to weight, in thousandths of a percent (0-100000). - `rolloutBucketBy`: (Optional) Context attribute available in the specified `rolloutContextKind`. - `rolloutContextKind`: (Optional) Context kind, defaults to `user` Here's an example that uses a `variationId`: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateFallthroughVariationOrRollout\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` Here's an example that uses a percentage rollout: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateFallthroughVariationOrRollout\", \"rolloutContextKind\": \"user\", \"rolloutWeights\": { \"2f43f67c-3e4e-4945-a18a-26559378ca00\": 15000, // serve 15% this variation \"e5830889-1ec5-4b0c-9cc9-c48790090c43\": 85000 // serve 85% this variation } }] } ``` #### updateOffVariation Updates the default off variation to `variationId`. The AI Config serves the default off variation when the AI Config's targeting is **Off**. ##### Parameters - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"updateOffVariation\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" } ] } ``` #### updateRuleDescription Updates the description of the targeting rule. ##### Parameters - `description`: The new human-readable description for this rule. - `ruleId`: The ID of the rule. You can retrieve this by making a GET request for the AI Config. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateRuleDescription\", \"description\": \"New rule description\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\" }] } ``` #### updateRuleTrackEvents Updates whether or not LaunchDarkly tracks events for the AI Config associated with this rule. ##### Parameters - `ruleId`: The ID of the rule. You can retrieve this by making a GET request for the AI Config. - `trackEvents`: Whether or not events are tracked. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateRuleTrackEvents\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"trackEvents\": true }] } ``` #### updateRuleVariationOrRollout Updates what `ruleId` serves when its clauses evaluate to true. The rule can serve either the variation that `variationId` indicates, or a percent rollout that `rolloutWeights` and `rolloutBucketBy` indicate. ##### Parameters - `ruleId`: ID of a rule. - `variationId`: ID of a variation. or - `rolloutWeights`: Map of `variationId` to weight, in thousandths of a percent (0-100000). - `rolloutBucketBy`: (Optional) Context attribute available in the specified `rolloutContextKind`. - `rolloutContextKind`: (Optional) Context kind, defaults to `user` Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateRuleVariationOrRollout\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` #### updateTrackEvents Updates whether or not LaunchDarkly tracks events for the AI Config, for all rules. ##### Parameters - `trackEvents`: Whether or not events are tracked. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"updateTrackEvents\", \"trackEvents\": true } ] } ``` #### updateTrackEventsFallthrough Updates whether or not LaunchDarkly tracks events for the AI Config, for the default rule. ##### Parameters - `trackEvents`: Whether or not events are tracked. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"updateTrackEventsFallthrough\", \"trackEvents\": true } ] } ``` </details>
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigTargetingPatch - AI Config targeting semantic patch instructions (optional)
        Returns:
        ApiResponse<AIConfigTargeting>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAIConfigTargetingAsync

        public okhttp3.Call patchAIConfigTargetingAsync​(@Nonnull
                                                        java.lang.String projectKey,
                                                        @Nonnull
                                                        java.lang.String configKey,
                                                        @Nullable
                                                        AIConfigTargetingPatch aiConfigTargetingPatch,
                                                        ApiCallback<AIConfigTargeting> _callback)
                                                 throws ApiException
        Update AI Config targeting (asynchronously) Perform a partial update to an AI Config's targeting. The request body must be a valid semantic patch. ### Using semantic patches on an AI Config To make a semantic patch request, you must append `domain-model=launchdarkly.semanticpatch` to your `Content-Type` header. To learn more, read [Updates using semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch). The body of a semantic patch request for updating an AI Config's targeting takes the following properties: * `comment` (string): (Optional) A description of the update. * `environmentKey` (string): The key of the LaunchDarkly environment. * `instructions` (array): (Required) A list of actions the update should perform. Each action in the list must be an object with a `kind` property that indicates the instruction. If the action requires parameters, you must include those parameters as additional fields in the object. The body of a single semantic patch can contain many different instructions. ### Instructions Semantic patch requests support the following `kind` instructions for updating AI Configs. <details> <summary>Click to expand instructions for <strong>working with targeting and variations</strong> for AI Configs</summary> #### addClauses Adds the given clauses to the rule indicated by `ruleId`. ##### Parameters - `ruleId`: ID of a rule in the AI Config. - `clauses`: Array of clause objects, with `contextKind` (string), `attribute` (string), `op` (string), `negate` (boolean), and `values` (array of strings, numbers, or dates) properties. The `contextKind`, `attribute`, and `values` are case sensitive. The `op` must be lower-case. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addClauses\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauses\": [{ \"contextKind\": \"user\", \"attribute\": \"country\", \"op\": \"in\", \"negate\": false, \"values\": [\"USA\", \"Canada\"] }] }] } ``` #### addRule Adds a new targeting rule to the AI Config. The rule may contain `clauses` and serve the variation that `variationId` indicates, or serve a percentage rollout that `rolloutWeights`, `rolloutBucketBy`, and `rolloutContextKind` indicate. If you set `beforeRuleId`, this adds the new rule before the indicated rule. Otherwise, adds the new rule to the end of the list. ##### Parameters - `clauses`: Array of clause objects, with `contextKind` (string), `attribute` (string), `op` (string), `negate` (boolean), and `values` (array of strings, numbers, or dates) properties. The `contextKind`, `attribute`, and `values` are case sensitive. The `op` must be lower-case. - `beforeRuleId`: (Optional) ID of a rule. - Either - `variationId`: ID of a variation. or - `rolloutWeights`: (Optional) Map of `variationId` to weight, in thousandths of a percent (0-100000). - `rolloutBucketBy`: (Optional) Context attribute available in the specified `rolloutContextKind`. - `rolloutContextKind`: (Optional) Context kind, defaults to `user` Here's an example that uses a `variationId`: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addRule\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\", \"clauses\": [{ \"contextKind\": \"organization\", \"attribute\": \"located_in\", \"op\": \"in\", \"negate\": false, \"values\": [\"Sweden\", \"Norway\"] }] }] } ``` Here's an example that uses a percentage rollout: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addRule\", \"clauses\": [{ \"contextKind\": \"organization\", \"attribute\": \"located_in\", \"op\": \"in\", \"negate\": false, \"values\": [\"Sweden\", \"Norway\"] }], \"rolloutContextKind\": \"organization\", \"rolloutWeights\": { \"2f43f67c-3e4e-4945-a18a-26559378ca00\": 15000, // serve 15% this variation \"e5830889-1ec5-4b0c-9cc9-c48790090c43\": 85000 // serve 85% this variation } }] } ``` #### addTargets Adds context keys to the individual context targets for the context kind that `contextKind` specifies and the variation that `variationId` specifies. Returns an error if this causes the AI Config to target the same context key in multiple variations. ##### Parameters - `values`: List of context keys. - `contextKind`: (Optional) Context kind to target, defaults to `user` - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addTargets\", \"values\": [\"context-key-123abc\", \"context-key-456def\"], \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` #### addValuesToClause Adds `values` to the values of the clause that `ruleId` and `clauseId` indicate. Does not update the context kind, attribute, or operator. ##### Parameters - `ruleId`: ID of a rule in the AI Config. - `clauseId`: ID of a clause in that rule. - `values`: Array of strings, case sensitive. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"addValuesToClause\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseId\": \"10a58772-3121-400f-846b-b8a04e8944ed\", \"values\": [\"beta_testers\"] }] } ``` #### clearTargets Removes all individual targets from the variation that `variationId` specifies. This includes both user and non-user targets. ##### Parameters - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"clearTargets\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" } ] } ``` #### removeClauses Removes the clauses specified by `clauseIds` from the rule indicated by `ruleId`. ##### Parameters - `ruleId`: ID of a rule. - `clauseIds`: Array of IDs of clauses in the rule. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"removeClauses\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseIds\": [\"10a58772-3121-400f-846b-b8a04e8944ed\", \"36a461dc-235e-4b08-97b9-73ce9365873e\"] }] } ``` #### removeRule Removes the targeting rule specified by `ruleId`. Does nothing if the rule does not exist. ##### Parameters - `ruleId`: ID of a rule. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"removeRule\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\" } ] } ``` #### removeTargets Removes context keys from the individual context targets for the context kind that `contextKind` specifies and the variation that `variationId` specifies. Does nothing if the flag does not target the context keys. ##### Parameters - `values`: List of context keys. - `contextKind`: (Optional) Context kind to target, defaults to `user` - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"removeTargets\", \"values\": [\"context-key-123abc\", \"context-key-456def\"], \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` #### removeValuesFromClause Removes `values` from the values of the clause indicated by `ruleId` and `clauseId`. Does not update the context kind, attribute, or operator. ##### Parameters - `ruleId`: ID of a rule. - `clauseId`: ID of a clause in that rule. - `values`: Array of strings, case sensitive. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"removeValuesFromClause\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseId\": \"10a58772-3121-400f-846b-b8a04e8944ed\", \"values\": [\"beta_testers\"] }] } ``` #### reorderRules Rearranges the rules to match the order given in `ruleIds`. Returns an error if `ruleIds` does not match the current set of rules on the AI Config. ##### Parameters - `ruleIds`: Array of IDs of all rules. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"reorderRules\", \"ruleIds\": [\"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"63c238d1-835d-435e-8f21-c8d5e40b2a3d\"] }] } ``` #### replaceRules Removes all targeting rules for the AI Config and replaces them with the list you provide. ##### Parameters - `rules`: A list of rules. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"replaceRules\", \"rules\": [ { \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\", \"description\": \"My new rule\", \"clauses\": [ { \"contextKind\": \"user\", \"attribute\": \"segmentMatch\", \"op\": \"segmentMatch\", \"values\": [\"test\"] } ] } ] } ] } ``` #### replaceTargets Removes all existing targeting and replaces it with the list of targets you provide. ##### Parameters - `targets`: A list of context targeting. Each item in the list includes an optional `contextKind` that defaults to `user`, a required `variationId`, and a required list of `values`. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"replaceTargets\", \"targets\": [ { \"contextKind\": \"user\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\", \"values\": [\"user-key-123abc\"] }, { \"contextKind\": \"device\", \"variationId\": \"e5830889-1ec5-4b0c-9cc9-c48790090c43\", \"values\": [\"device-key-456def\"] } ] } ] } ``` #### updateClause Replaces the clause indicated by `ruleId` and `clauseId` with `clause`. ##### Parameters - `ruleId`: ID of a rule. - `clauseId`: ID of a clause in that rule. - `clause`: New `clause` object, with `contextKind` (string), `attribute` (string), `op` (string), `negate` (boolean), and `values` (array of strings, numbers, or dates) properties. The `contextKind`, `attribute`, and `values` are case sensitive. The `op` must be lower-case. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateClause\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"clauseId\": \"10c7462a-2062-45ba-a8bb-dfb3de0f8af5\", \"clause\": { \"contextKind\": \"user\", \"attribute\": \"country\", \"op\": \"in\", \"negate\": false, \"values\": [\"Mexico\", \"Canada\"] } }] } ``` #### updateDefaultVariation Updates the default on or off variation of the AI Config. ##### Parameters - `onVariationValue`: (Optional) The value of the variation of the new on variation. - `offVariationValue`: (Optional) The value of the variation of the new off variation Here's an example: ```json { \"instructions\": [ { \"kind\": \"updateDefaultVariation\", \"OnVariationValue\": true, \"OffVariationValue\": false } ] } ``` #### updateFallthroughVariationOrRollout Updates the default or \"fallthrough\" rule for the AI Config, which the AI Config serves when a context matches none of the targeting rules. The rule can serve either the variation that `variationId` indicates, or a percentage rollout that `rolloutWeights` and `rolloutBucketBy` indicate. ##### Parameters - `variationId`: ID of a variation. or - `rolloutWeights`: Map of `variationId` to weight, in thousandths of a percent (0-100000). - `rolloutBucketBy`: (Optional) Context attribute available in the specified `rolloutContextKind`. - `rolloutContextKind`: (Optional) Context kind, defaults to `user` Here's an example that uses a `variationId`: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateFallthroughVariationOrRollout\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` Here's an example that uses a percentage rollout: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateFallthroughVariationOrRollout\", \"rolloutContextKind\": \"user\", \"rolloutWeights\": { \"2f43f67c-3e4e-4945-a18a-26559378ca00\": 15000, // serve 15% this variation \"e5830889-1ec5-4b0c-9cc9-c48790090c43\": 85000 // serve 85% this variation } }] } ``` #### updateOffVariation Updates the default off variation to `variationId`. The AI Config serves the default off variation when the AI Config's targeting is **Off**. ##### Parameters - `variationId`: ID of a variation. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"updateOffVariation\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" } ] } ``` #### updateRuleDescription Updates the description of the targeting rule. ##### Parameters - `description`: The new human-readable description for this rule. - `ruleId`: The ID of the rule. You can retrieve this by making a GET request for the AI Config. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateRuleDescription\", \"description\": \"New rule description\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\" }] } ``` #### updateRuleTrackEvents Updates whether or not LaunchDarkly tracks events for the AI Config associated with this rule. ##### Parameters - `ruleId`: The ID of the rule. You can retrieve this by making a GET request for the AI Config. - `trackEvents`: Whether or not events are tracked. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateRuleTrackEvents\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"trackEvents\": true }] } ``` #### updateRuleVariationOrRollout Updates what `ruleId` serves when its clauses evaluate to true. The rule can serve either the variation that `variationId` indicates, or a percent rollout that `rolloutWeights` and `rolloutBucketBy` indicate. ##### Parameters - `ruleId`: ID of a rule. - `variationId`: ID of a variation. or - `rolloutWeights`: Map of `variationId` to weight, in thousandths of a percent (0-100000). - `rolloutBucketBy`: (Optional) Context attribute available in the specified `rolloutContextKind`. - `rolloutContextKind`: (Optional) Context kind, defaults to `user` Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [{ \"kind\": \"updateRuleVariationOrRollout\", \"ruleId\": \"a902ef4a-2faf-4eaf-88e1-ecc356708a29\", \"variationId\": \"2f43f67c-3e4e-4945-a18a-26559378ca00\" }] } ``` #### updateTrackEvents Updates whether or not LaunchDarkly tracks events for the AI Config, for all rules. ##### Parameters - `trackEvents`: Whether or not events are tracked. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"updateTrackEvents\", \"trackEvents\": true } ] } ``` #### updateTrackEventsFallthrough Updates whether or not LaunchDarkly tracks events for the AI Config, for the default rule. ##### Parameters - `trackEvents`: Whether or not events are tracked. Here's an example: ```json { \"environmentKey\": \"environment-key-123abc\", \"instructions\": [ { \"kind\": \"updateTrackEventsFallthrough\", \"trackEvents\": true } ] } ``` </details>
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigTargetingPatch - AI Config targeting semantic patch instructions (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
      • patchAIConfigVariationCall

        public okhttp3.Call patchAIConfigVariationCall​(@Nonnull
                                                       java.lang.String projectKey,
                                                       @Nonnull
                                                       java.lang.String configKey,
                                                       @Nonnull
                                                       java.lang.String variationKey,
                                                       @Nullable
                                                       AIConfigVariationPatch aiConfigVariationPatch,
                                                       ApiCallback _callback)
                                                throws ApiException
        Build call for patchAIConfigVariation
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        aiConfigVariationPatch - AI Config variation object to update (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchAIConfigVariation

        public AIConfigVariation patchAIConfigVariation​(@Nonnull
                                                        java.lang.String projectKey,
                                                        @Nonnull
                                                        java.lang.String configKey,
                                                        @Nonnull
                                                        java.lang.String variationKey,
                                                        @Nullable
                                                        AIConfigVariationPatch aiConfigVariationPatch)
                                                 throws ApiException
        Update AI Config variation Edit an existing variation of an AI Config. This creates a new version of the variation. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { \"messages\": [ { \"role\": \"system\", \"content\": \"The new message\" } ] } ```
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        aiConfigVariationPatch - AI Config variation object to update (optional)
        Returns:
        AIConfigVariation
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAIConfigVariationWithHttpInfo

        public ApiResponse<AIConfigVariation> patchAIConfigVariationWithHttpInfo​(@Nonnull
                                                                                 java.lang.String projectKey,
                                                                                 @Nonnull
                                                                                 java.lang.String configKey,
                                                                                 @Nonnull
                                                                                 java.lang.String variationKey,
                                                                                 @Nullable
                                                                                 AIConfigVariationPatch aiConfigVariationPatch)
                                                                          throws ApiException
        Update AI Config variation Edit an existing variation of an AI Config. This creates a new version of the variation. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { \"messages\": [ { \"role\": \"system\", \"content\": \"The new message\" } ] } ```
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        aiConfigVariationPatch - AI Config variation object to update (optional)
        Returns:
        ApiResponse<AIConfigVariation>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAIConfigVariationAsync

        public okhttp3.Call patchAIConfigVariationAsync​(@Nonnull
                                                        java.lang.String projectKey,
                                                        @Nonnull
                                                        java.lang.String configKey,
                                                        @Nonnull
                                                        java.lang.String variationKey,
                                                        @Nullable
                                                        AIConfigVariationPatch aiConfigVariationPatch,
                                                        ApiCallback<AIConfigVariation> _callback)
                                                 throws ApiException
        Update AI Config variation (asynchronously) Edit an existing variation of an AI Config. This creates a new version of the variation. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { \"messages\": [ { \"role\": \"system\", \"content\": \"The new message\" } ] } ```
        Parameters:
        projectKey - (required)
        configKey - (required)
        variationKey - (required)
        aiConfigVariationPatch - AI Config variation object to update (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
      • patchAIToolCall

        public okhttp3.Call patchAIToolCall​(@Nonnull
                                            java.lang.String projectKey,
                                            @Nonnull
                                            java.lang.String toolKey,
                                            @Nullable
                                            AIToolPatch aiToolPatch,
                                            ApiCallback _callback)
                                     throws ApiException
        Build call for patchAITool
        Parameters:
        projectKey - (required)
        toolKey - (required)
        aiToolPatch - AI tool object to update (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchAITool

        public AITool patchAITool​(@Nonnull
                                  java.lang.String projectKey,
                                  @Nonnull
                                  java.lang.String toolKey,
                                  @Nullable
                                  AIToolPatch aiToolPatch)
                           throws ApiException
        Update AI tool Edit an existing AI tool.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        aiToolPatch - AI tool object to update (optional)
        Returns:
        AITool
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAIToolWithHttpInfo

        public ApiResponse<AITool> patchAIToolWithHttpInfo​(@Nonnull
                                                           java.lang.String projectKey,
                                                           @Nonnull
                                                           java.lang.String toolKey,
                                                           @Nullable
                                                           AIToolPatch aiToolPatch)
                                                    throws ApiException
        Update AI tool Edit an existing AI tool.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        aiToolPatch - AI tool object to update (optional)
        Returns:
        ApiResponse<AITool>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAIToolAsync

        public okhttp3.Call patchAIToolAsync​(@Nonnull
                                             java.lang.String projectKey,
                                             @Nonnull
                                             java.lang.String toolKey,
                                             @Nullable
                                             AIToolPatch aiToolPatch,
                                             ApiCallback<AITool> _callback)
                                      throws ApiException
        Update AI tool (asynchronously) Edit an existing AI tool.
        Parameters:
        projectKey - (required)
        toolKey - (required)
        aiToolPatch - AI tool object to update (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
      • patchAgentGraphCall

        public okhttp3.Call patchAgentGraphCall​(@Nonnull
                                                java.lang.String ldAPIVersion,
                                                @Nonnull
                                                java.lang.String projectKey,
                                                @Nonnull
                                                java.lang.String graphKey,
                                                @Nullable
                                                AgentGraphPatch agentGraphPatch,
                                                ApiCallback _callback)
                                         throws ApiException
        Build call for patchAgentGraph
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        agentGraphPatch - Agent graph object to update (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchAgentGraph

        public AgentGraph patchAgentGraph​(@Nonnull
                                          java.lang.String ldAPIVersion,
                                          @Nonnull
                                          java.lang.String projectKey,
                                          @Nonnull
                                          java.lang.String graphKey,
                                          @Nullable
                                          AgentGraphPatch agentGraphPatch)
                                   throws ApiException
        Update agent graph Edit an existing agent graph. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. If the update includes `rootConfigKey` or `edges`, both must be present and will be treated as full replacements.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        agentGraphPatch - Agent graph object to update (optional)
        Returns:
        AgentGraph
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAgentGraphWithHttpInfo

        public ApiResponse<AgentGraph> patchAgentGraphWithHttpInfo​(@Nonnull
                                                                   java.lang.String ldAPIVersion,
                                                                   @Nonnull
                                                                   java.lang.String projectKey,
                                                                   @Nonnull
                                                                   java.lang.String graphKey,
                                                                   @Nullable
                                                                   AgentGraphPatch agentGraphPatch)
                                                            throws ApiException
        Update agent graph Edit an existing agent graph. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. If the update includes `rootConfigKey` or `edges`, both must be present and will be treated as full replacements.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        agentGraphPatch - Agent graph object to update (optional)
        Returns:
        ApiResponse<AgentGraph>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchAgentGraphAsync

        public okhttp3.Call patchAgentGraphAsync​(@Nonnull
                                                 java.lang.String ldAPIVersion,
                                                 @Nonnull
                                                 java.lang.String projectKey,
                                                 @Nonnull
                                                 java.lang.String graphKey,
                                                 @Nullable
                                                 AgentGraphPatch agentGraphPatch,
                                                 ApiCallback<AgentGraph> _callback)
                                          throws ApiException
        Update agent graph (asynchronously) Edit an existing agent graph. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. If the update includes `rootConfigKey` or `edges`, both must be present and will be treated as full replacements.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        graphKey - (required)
        agentGraphPatch - Agent graph object to update (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
      • postAIConfigCall

        public okhttp3.Call postAIConfigCall​(@Nonnull
                                             java.lang.String projectKey,
                                             @Nonnull
                                             AIConfigPost aiConfigPost,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for postAIConfig
        Parameters:
        projectKey - (required)
        aiConfigPost - AI Config object to create (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postAIConfig

        public AIConfig postAIConfig​(@Nonnull
                                     java.lang.String projectKey,
                                     @Nonnull
                                     AIConfigPost aiConfigPost)
                              throws ApiException
        Create new AI Config Create a new AI Config within the given project.
        Parameters:
        projectKey - (required)
        aiConfigPost - AI Config object to create (required)
        Returns:
        AIConfig
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAIConfigWithHttpInfo

        public ApiResponse<AIConfig> postAIConfigWithHttpInfo​(@Nonnull
                                                              java.lang.String projectKey,
                                                              @Nonnull
                                                              AIConfigPost aiConfigPost)
                                                       throws ApiException
        Create new AI Config Create a new AI Config within the given project.
        Parameters:
        projectKey - (required)
        aiConfigPost - AI Config object to create (required)
        Returns:
        ApiResponse<AIConfig>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAIConfigAsync

        public okhttp3.Call postAIConfigAsync​(@Nonnull
                                              java.lang.String projectKey,
                                              @Nonnull
                                              AIConfigPost aiConfigPost,
                                              ApiCallback<AIConfig> _callback)
                                       throws ApiException
        Create new AI Config (asynchronously) Create a new AI Config within the given project.
        Parameters:
        projectKey - (required)
        aiConfigPost - AI Config object to create (required)
        _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
      • postAIConfigVariationCall

        public okhttp3.Call postAIConfigVariationCall​(@Nonnull
                                                      java.lang.String projectKey,
                                                      @Nonnull
                                                      java.lang.String configKey,
                                                      @Nonnull
                                                      AIConfigVariationPost aiConfigVariationPost,
                                                      ApiCallback _callback)
                                               throws ApiException
        Build call for postAIConfigVariation
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigVariationPost - AI Config variation object to create (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postAIConfigVariation

        public AIConfigVariation postAIConfigVariation​(@Nonnull
                                                       java.lang.String projectKey,
                                                       @Nonnull
                                                       java.lang.String configKey,
                                                       @Nonnull
                                                       AIConfigVariationPost aiConfigVariationPost)
                                                throws ApiException
        Create AI Config variation Create a new variation for a given AI Config. The <code>model</code> in the request body requires a <code>modelName</code> and <code>parameters</code>, for example: ``` \"model\": { \"modelName\": \"claude-3-opus-20240229\", \"parameters\": { \"max_tokens\": 1024 } } ```
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigVariationPost - AI Config variation object to create (required)
        Returns:
        AIConfigVariation
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAIConfigVariationWithHttpInfo

        public ApiResponse<AIConfigVariation> postAIConfigVariationWithHttpInfo​(@Nonnull
                                                                                java.lang.String projectKey,
                                                                                @Nonnull
                                                                                java.lang.String configKey,
                                                                                @Nonnull
                                                                                AIConfigVariationPost aiConfigVariationPost)
                                                                         throws ApiException
        Create AI Config variation Create a new variation for a given AI Config. The <code>model</code> in the request body requires a <code>modelName</code> and <code>parameters</code>, for example: ``` \"model\": { \"modelName\": \"claude-3-opus-20240229\", \"parameters\": { \"max_tokens\": 1024 } } ```
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigVariationPost - AI Config variation object to create (required)
        Returns:
        ApiResponse<AIConfigVariation>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAIConfigVariationAsync

        public okhttp3.Call postAIConfigVariationAsync​(@Nonnull
                                                       java.lang.String projectKey,
                                                       @Nonnull
                                                       java.lang.String configKey,
                                                       @Nonnull
                                                       AIConfigVariationPost aiConfigVariationPost,
                                                       ApiCallback<AIConfigVariation> _callback)
                                                throws ApiException
        Create AI Config variation (asynchronously) Create a new variation for a given AI Config. The <code>model</code> in the request body requires a <code>modelName</code> and <code>parameters</code>, for example: ``` \"model\": { \"modelName\": \"claude-3-opus-20240229\", \"parameters\": { \"max_tokens\": 1024 } } ```
        Parameters:
        projectKey - (required)
        configKey - (required)
        aiConfigVariationPost - AI Config variation object to create (required)
        _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
      • postAIToolCall

        public okhttp3.Call postAIToolCall​(@Nonnull
                                           java.lang.String projectKey,
                                           @Nonnull
                                           AIToolPost aiToolPost,
                                           ApiCallback _callback)
                                    throws ApiException
        Build call for postAITool
        Parameters:
        projectKey - (required)
        aiToolPost - AI tool object to create (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postAITool

        public AITool postAITool​(@Nonnull
                                 java.lang.String projectKey,
                                 @Nonnull
                                 AIToolPost aiToolPost)
                          throws ApiException
        Create an AI tool Create an AI tool
        Parameters:
        projectKey - (required)
        aiToolPost - AI tool object to create (required)
        Returns:
        AITool
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAIToolWithHttpInfo

        public ApiResponse<AITool> postAIToolWithHttpInfo​(@Nonnull
                                                          java.lang.String projectKey,
                                                          @Nonnull
                                                          AIToolPost aiToolPost)
                                                   throws ApiException
        Create an AI tool Create an AI tool
        Parameters:
        projectKey - (required)
        aiToolPost - AI tool object to create (required)
        Returns:
        ApiResponse<AITool>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAIToolAsync

        public okhttp3.Call postAIToolAsync​(@Nonnull
                                            java.lang.String projectKey,
                                            @Nonnull
                                            AIToolPost aiToolPost,
                                            ApiCallback<AITool> _callback)
                                     throws ApiException
        Create an AI tool (asynchronously) Create an AI tool
        Parameters:
        projectKey - (required)
        aiToolPost - AI tool object to create (required)
        _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
      • postAgentGraphCall

        public okhttp3.Call postAgentGraphCall​(@Nonnull
                                               java.lang.String ldAPIVersion,
                                               @Nonnull
                                               java.lang.String projectKey,
                                               @Nonnull
                                               AgentGraphPost agentGraphPost,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for postAgentGraph
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        agentGraphPost - Agent graph object to create (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postAgentGraph

        public AgentGraph postAgentGraph​(@Nonnull
                                         java.lang.String ldAPIVersion,
                                         @Nonnull
                                         java.lang.String projectKey,
                                         @Nonnull
                                         AgentGraphPost agentGraphPost)
                                  throws ApiException
        Create new agent graph Create a new agent graph within the given project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        agentGraphPost - Agent graph object to create (required)
        Returns:
        AgentGraph
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAgentGraphWithHttpInfo

        public ApiResponse<AgentGraph> postAgentGraphWithHttpInfo​(@Nonnull
                                                                  java.lang.String ldAPIVersion,
                                                                  @Nonnull
                                                                  java.lang.String projectKey,
                                                                  @Nonnull
                                                                  AgentGraphPost agentGraphPost)
                                                           throws ApiException
        Create new agent graph Create a new agent graph within the given project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        agentGraphPost - Agent graph object to create (required)
        Returns:
        ApiResponse<AgentGraph>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAgentGraphAsync

        public okhttp3.Call postAgentGraphAsync​(@Nonnull
                                                java.lang.String ldAPIVersion,
                                                @Nonnull
                                                java.lang.String projectKey,
                                                @Nonnull
                                                AgentGraphPost agentGraphPost,
                                                ApiCallback<AgentGraph> _callback)
                                         throws ApiException
        Create new agent graph (asynchronously) Create a new agent graph within the given project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - (required)
        agentGraphPost - Agent graph object to create (required)
        _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
      • postModelConfigCall

        public okhttp3.Call postModelConfigCall​(@Nonnull
                                                java.lang.String projectKey,
                                                @Nonnull
                                                ModelConfigPost modelConfigPost,
                                                ApiCallback _callback)
                                         throws ApiException
        Build call for postModelConfig
        Parameters:
        projectKey - (required)
        modelConfigPost - AI model config object to create (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postModelConfig

        public ModelConfig postModelConfig​(@Nonnull
                                           java.lang.String projectKey,
                                           @Nonnull
                                           ModelConfigPost modelConfigPost)
                                    throws ApiException
        Create an AI model config Create an AI model config. You can use this in any variation for any AI Config in your project.
        Parameters:
        projectKey - (required)
        modelConfigPost - AI model config object to create (required)
        Returns:
        ModelConfig
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postModelConfigWithHttpInfo

        public ApiResponse<ModelConfig> postModelConfigWithHttpInfo​(@Nonnull
                                                                    java.lang.String projectKey,
                                                                    @Nonnull
                                                                    ModelConfigPost modelConfigPost)
                                                             throws ApiException
        Create an AI model config Create an AI model config. You can use this in any variation for any AI Config in your project.
        Parameters:
        projectKey - (required)
        modelConfigPost - AI model config object to create (required)
        Returns:
        ApiResponse<ModelConfig>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postModelConfigAsync

        public okhttp3.Call postModelConfigAsync​(@Nonnull
                                                 java.lang.String projectKey,
                                                 @Nonnull
                                                 ModelConfigPost modelConfigPost,
                                                 ApiCallback<ModelConfig> _callback)
                                          throws ApiException
        Create an AI model config (asynchronously) Create an AI model config. You can use this in any variation for any AI Config in your project.
        Parameters:
        projectKey - (required)
        modelConfigPost - AI model config object to create (required)
        _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
      • postRestrictedModelsCall

        public okhttp3.Call postRestrictedModelsCall​(@Nonnull
                                                     java.lang.String projectKey,
                                                     @Nonnull
                                                     RestrictedModelsRequest restrictedModelsRequest,
                                                     ApiCallback _callback)
                                              throws ApiException
        Build call for postRestrictedModels
        Parameters:
        projectKey - (required)
        restrictedModelsRequest - List of AI model keys to add to the restricted list. (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postRestrictedModels

        public RestrictedModelsResponse postRestrictedModels​(@Nonnull
                                                             java.lang.String projectKey,
                                                             @Nonnull
                                                             RestrictedModelsRequest restrictedModelsRequest)
                                                      throws ApiException
        Add AI models to the restricted list Add AI models, by key, to the restricted list. Keys are included in the response from the [List AI model configs](https://launchdarkly.com/docs/api/ai-configs/list-model-configs) endpoint.
        Parameters:
        projectKey - (required)
        restrictedModelsRequest - List of AI model keys to add to the restricted list. (required)
        Returns:
        RestrictedModelsResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postRestrictedModelsWithHttpInfo

        public ApiResponse<RestrictedModelsResponse> postRestrictedModelsWithHttpInfo​(@Nonnull
                                                                                      java.lang.String projectKey,
                                                                                      @Nonnull
                                                                                      RestrictedModelsRequest restrictedModelsRequest)
                                                                               throws ApiException
        Add AI models to the restricted list Add AI models, by key, to the restricted list. Keys are included in the response from the [List AI model configs](https://launchdarkly.com/docs/api/ai-configs/list-model-configs) endpoint.
        Parameters:
        projectKey - (required)
        restrictedModelsRequest - List of AI model keys to add to the restricted list. (required)
        Returns:
        ApiResponse<RestrictedModelsResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postRestrictedModelsAsync

        public okhttp3.Call postRestrictedModelsAsync​(@Nonnull
                                                      java.lang.String projectKey,
                                                      @Nonnull
                                                      RestrictedModelsRequest restrictedModelsRequest,
                                                      ApiCallback<RestrictedModelsResponse> _callback)
                                               throws ApiException
        Add AI models to the restricted list (asynchronously) Add AI models, by key, to the restricted list. Keys are included in the response from the [List AI model configs](https://launchdarkly.com/docs/api/ai-configs/list-model-configs) endpoint.
        Parameters:
        projectKey - (required)
        restrictedModelsRequest - List of AI model keys to add to the restricted list. (required)
        _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