Package com.launchdarkly.api.api
Class AiConfigsApi
- java.lang.Object
-
- com.launchdarkly.api.api.AiConfigsApi
-
public class AiConfigsApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AiConfigsApi()AiConfigsApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteAgentGraph(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey)Delete agent graph Delete an existing agent graph and all of its edges.okhttp3.CalldeleteAgentGraphAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey, ApiCallback<java.lang.Void> _callback)Delete agent graph (asynchronously) Delete an existing agent graph and all of its edges.okhttp3.CalldeleteAgentGraphCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey, ApiCallback _callback)Build call for deleteAgentGraphApiResponse<java.lang.Void>deleteAgentGraphWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey)Delete agent graph Delete an existing agent graph and all of its edges.voiddeleteAIConfig(java.lang.String projectKey, java.lang.String configKey)Delete AI Config Delete an existing AI Config.okhttp3.CalldeleteAIConfigAsync(java.lang.String projectKey, java.lang.String configKey, ApiCallback<java.lang.Void> _callback)Delete AI Config (asynchronously) Delete an existing AI Config.okhttp3.CalldeleteAIConfigCall(java.lang.String projectKey, java.lang.String configKey, ApiCallback _callback)Build call for deleteAIConfigvoiddeleteAIConfigVariation(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey)Delete AI Config variation Delete a specific variation of an AI Config by config key and variation key.okhttp3.CalldeleteAIConfigVariationAsync(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey, ApiCallback<java.lang.Void> _callback)Delete AI Config variation (asynchronously) Delete a specific variation of an AI Config by config key and variation key.okhttp3.CalldeleteAIConfigVariationCall(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey, ApiCallback _callback)Build call for deleteAIConfigVariationApiResponse<java.lang.Void>deleteAIConfigVariationWithHttpInfo(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey)Delete AI Config variation Delete a specific variation of an AI Config by config key and variation key.ApiResponse<java.lang.Void>deleteAIConfigWithHttpInfo(java.lang.String projectKey, java.lang.String configKey)Delete AI Config Delete an existing AI Config.voiddeleteAITool(java.lang.String projectKey, java.lang.String toolKey)Delete AI tool Delete an existing AI tool.okhttp3.CalldeleteAIToolAsync(java.lang.String projectKey, java.lang.String toolKey, ApiCallback<java.lang.Void> _callback)Delete AI tool (asynchronously) Delete an existing AI tool.okhttp3.CalldeleteAIToolCall(java.lang.String projectKey, java.lang.String toolKey, ApiCallback _callback)Build call for deleteAIToolApiResponse<java.lang.Void>deleteAIToolWithHttpInfo(java.lang.String projectKey, java.lang.String toolKey)Delete AI tool Delete an existing AI tool.voiddeleteModelConfig(java.lang.String projectKey, java.lang.String modelConfigKey)Delete an AI model config Delete an AI model config.okhttp3.CalldeleteModelConfigAsync(java.lang.String projectKey, java.lang.String modelConfigKey, ApiCallback<java.lang.Void> _callback)Delete an AI model config (asynchronously) Delete an AI model config.okhttp3.CalldeleteModelConfigCall(java.lang.String projectKey, java.lang.String modelConfigKey, ApiCallback _callback)Build call for deleteModelConfigApiResponse<java.lang.Void>deleteModelConfigWithHttpInfo(java.lang.String projectKey, java.lang.String modelConfigKey)Delete an AI model config Delete an AI model config.voiddeleteRestrictedModels(java.lang.String projectKey, RestrictedModelsRequest restrictedModelsRequest)Remove AI models from the restricted list Remove AI models, by key, from the restricted list.okhttp3.CalldeleteRestrictedModelsAsync(java.lang.String projectKey, RestrictedModelsRequest restrictedModelsRequest, ApiCallback<java.lang.Void> _callback)Remove AI models from the restricted list (asynchronously) Remove AI models, by key, from the restricted list.okhttp3.CalldeleteRestrictedModelsCall(java.lang.String projectKey, RestrictedModelsRequest restrictedModelsRequest, ApiCallback _callback)Build call for deleteRestrictedModelsApiResponse<java.lang.Void>deleteRestrictedModelsWithHttpInfo(java.lang.String projectKey, RestrictedModelsRequest restrictedModelsRequest)Remove AI models from the restricted list Remove AI models, by key, from the restricted list.AgentGraphgetAgentGraph(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey)Get agent graph Retrieve a specific agent graph by its key, including its edges.okhttp3.CallgetAgentGraphAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey, ApiCallback<AgentGraph> _callback)Get agent graph (asynchronously) Retrieve a specific agent graph by its key, including its edges.okhttp3.CallgetAgentGraphCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey, ApiCallback _callback)Build call for getAgentGraphApiResponse<AgentGraph>getAgentGraphWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey)Get agent graph Retrieve a specific agent graph by its key, including its edges.AIConfiggetAIConfig(java.lang.String projectKey, java.lang.String configKey)Get AI Config Retrieve a specific AI Config by its key.okhttp3.CallgetAIConfigAsync(java.lang.String projectKey, java.lang.String configKey, ApiCallback<AIConfig> _callback)Get AI Config (asynchronously) Retrieve a specific AI Config by its key.okhttp3.CallgetAIConfigCall(java.lang.String projectKey, java.lang.String configKey, ApiCallback _callback)Build call for getAIConfigMetricsgetAIConfigMetrics(java.lang.String projectKey, java.lang.String configKey, java.lang.Integer from, java.lang.Integer to, java.lang.String env)Get AI Config metrics Retrieve usage metrics for an AI Config by config key.okhttp3.CallgetAIConfigMetricsAsync(java.lang.String projectKey, java.lang.String configKey, java.lang.Integer from, java.lang.Integer to, java.lang.String env, ApiCallback<Metrics> _callback)Get AI Config metrics (asynchronously) Retrieve usage metrics for an AI Config by config key.java.util.List<MetricByVariation>getAIConfigMetricsByVariation(java.lang.String projectKey, java.lang.String configKey, java.lang.Integer from, java.lang.Integer to, java.lang.String env)Get AI Config metrics by variation Retrieve usage metrics for an AI Config by config key, with results split by variation.okhttp3.CallgetAIConfigMetricsByVariationAsync(java.lang.String projectKey, java.lang.String configKey, java.lang.Integer from, java.lang.Integer to, java.lang.String env, ApiCallback<java.util.List<MetricByVariation>> _callback)Get AI Config metrics by variation (asynchronously) Retrieve usage metrics for an AI Config by config key, with results split by variation.okhttp3.CallgetAIConfigMetricsByVariationCall(java.lang.String projectKey, java.lang.String configKey, java.lang.Integer from, java.lang.Integer to, java.lang.String env, ApiCallback _callback)Build call for getAIConfigMetricsByVariationApiResponse<java.util.List<MetricByVariation>>getAIConfigMetricsByVariationWithHttpInfo(java.lang.String projectKey, java.lang.String configKey, java.lang.Integer from, java.lang.Integer to, java.lang.String env)Get AI Config metrics by variation Retrieve usage metrics for an AI Config by config key, with results split by variation.okhttp3.CallgetAIConfigMetricsCall(java.lang.String projectKey, java.lang.String configKey, java.lang.Integer from, java.lang.Integer to, java.lang.String env, ApiCallback _callback)Build call for getAIConfigMetricsApiResponse<Metrics>getAIConfigMetricsWithHttpInfo(java.lang.String projectKey, java.lang.String configKey, java.lang.Integer from, java.lang.Integer to, java.lang.String env)Get AI Config metrics Retrieve usage metrics for an AI Config by config key.AIConfigsgetAIConfigs(java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)List AI Configs Get a list of all AI Configs in the given project.okhttp3.CallgetAIConfigsAsync(java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, ApiCallback<AIConfigs> _callback)List AI Configs (asynchronously) Get a list of all AI Configs in the given project.okhttp3.CallgetAIConfigsCall(java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, ApiCallback _callback)Build call for getAIConfigsApiResponse<AIConfigs>getAIConfigsWithHttpInfo(java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)List AI Configs Get a list of all AI Configs in the given project.AIConfigTargetinggetAIConfigTargeting(java.lang.String projectKey, java.lang.String configKey)Show an AI Config's targeting Retrieves a specific AI Config's targeting by its keyokhttp3.CallgetAIConfigTargetingAsync(java.lang.String projectKey, java.lang.String configKey, ApiCallback<AIConfigTargeting> _callback)Show an AI Config's targeting (asynchronously) Retrieves a specific AI Config's targeting by its keyokhttp3.CallgetAIConfigTargetingCall(java.lang.String projectKey, java.lang.String configKey, ApiCallback _callback)Build call for getAIConfigTargetingApiResponse<AIConfigTargeting>getAIConfigTargetingWithHttpInfo(java.lang.String projectKey, java.lang.String configKey)Show an AI Config's targeting Retrieves a specific AI Config's targeting by its keyAIConfigVariationsResponsegetAIConfigVariation(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey)Get AI Config variation Get an AI Config variation by key.okhttp3.CallgetAIConfigVariationAsync(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey, ApiCallback<AIConfigVariationsResponse> _callback)Get AI Config variation (asynchronously) Get an AI Config variation by key.okhttp3.CallgetAIConfigVariationCall(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey, ApiCallback _callback)Build call for getAIConfigVariationApiResponse<AIConfigVariationsResponse>getAIConfigVariationWithHttpInfo(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey)Get AI Config variation Get an AI Config variation by key.ApiResponse<AIConfig>getAIConfigWithHttpInfo(java.lang.String projectKey, java.lang.String configKey)Get AI Config Retrieve a specific AI Config by its key.AIToolgetAITool(java.lang.String projectKey, java.lang.String toolKey)Get AI tool Retrieve a specific AI tool by its key.okhttp3.CallgetAIToolAsync(java.lang.String projectKey, java.lang.String toolKey, ApiCallback<AITool> _callback)Get AI tool (asynchronously) Retrieve a specific AI tool by its key.okhttp3.CallgetAIToolCall(java.lang.String projectKey, java.lang.String toolKey, ApiCallback _callback)Build call for getAIToolApiResponse<AITool>getAIToolWithHttpInfo(java.lang.String projectKey, java.lang.String toolKey)Get AI tool Retrieve a specific AI tool by its key.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()ModelConfiggetModelConfig(java.lang.String projectKey, java.lang.String modelConfigKey)Get AI model config Get an AI model config by key.okhttp3.CallgetModelConfigAsync(java.lang.String projectKey, java.lang.String modelConfigKey, ApiCallback<ModelConfig> _callback)Get AI model config (asynchronously) Get an AI model config by key.okhttp3.CallgetModelConfigCall(java.lang.String projectKey, java.lang.String modelConfigKey, ApiCallback _callback)Build call for getModelConfigApiResponse<ModelConfig>getModelConfigWithHttpInfo(java.lang.String projectKey, java.lang.String modelConfigKey)Get AI model config Get an AI model config by key.AgentGraphslistAgentGraphs(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset)List agent graphs Get a list of all agent graphs in the given project.okhttp3.CalllistAgentGraphsAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback<AgentGraphs> _callback)List agent graphs (asynchronously) Get a list of all agent graphs in the given project.okhttp3.CalllistAgentGraphsCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback _callback)Build call for listAgentGraphsApiResponse<AgentGraphs>listAgentGraphsWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset)List agent graphs Get a list of all agent graphs in the given project.AIToolslistAITools(java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)List AI tools Get a list of all AI tools in the given project.okhttp3.CalllistAIToolsAsync(java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, ApiCallback<AITools> _callback)List AI tools (asynchronously) Get a list of all AI tools in the given project.okhttp3.CalllistAIToolsCall(java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, ApiCallback _callback)Build call for listAIToolsApiResponse<AITools>listAIToolsWithHttpInfo(java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)List AI tools Get a list of all AI tools in the given project.AIToolslistAIToolVersions(java.lang.String projectKey, java.lang.String toolKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset)List AI tool versions Get a list of all versions of an AI tool in the given project.okhttp3.CalllistAIToolVersionsAsync(java.lang.String projectKey, java.lang.String toolKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, ApiCallback<AITools> _callback)List AI tool versions (asynchronously) Get a list of all versions of an AI tool in the given project.okhttp3.CalllistAIToolVersionsCall(java.lang.String projectKey, java.lang.String toolKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, ApiCallback _callback)Build call for listAIToolVersionsApiResponse<AITools>listAIToolVersionsWithHttpInfo(java.lang.String projectKey, java.lang.String toolKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset)List AI tool versions Get a list of all versions of an AI tool in the given project.java.util.List<ModelConfig>listModelConfigs(java.lang.String projectKey, java.lang.Boolean restricted)List AI model configs Get all AI model configs for a project.okhttp3.CalllistModelConfigsAsync(java.lang.String projectKey, java.lang.Boolean restricted, ApiCallback<java.util.List<ModelConfig>> _callback)List AI model configs (asynchronously) Get all AI model configs for a project.okhttp3.CalllistModelConfigsCall(java.lang.String projectKey, java.lang.Boolean restricted, ApiCallback _callback)Build call for listModelConfigsApiResponse<java.util.List<ModelConfig>>listModelConfigsWithHttpInfo(java.lang.String projectKey, java.lang.Boolean restricted)List AI model configs Get all AI model configs for a project.AgentGraphpatchAgentGraph(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey, AgentGraphPatch agentGraphPatch)Update agent graph Edit an existing agent graph.okhttp3.CallpatchAgentGraphAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey, AgentGraphPatch agentGraphPatch, ApiCallback<AgentGraph> _callback)Update agent graph (asynchronously) Edit an existing agent graph.okhttp3.CallpatchAgentGraphCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey, AgentGraphPatch agentGraphPatch, ApiCallback _callback)Build call for patchAgentGraphApiResponse<AgentGraph>patchAgentGraphWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String graphKey, AgentGraphPatch agentGraphPatch)Update agent graph Edit an existing agent graph.AIConfigpatchAIConfig(java.lang.String projectKey, java.lang.String configKey, AIConfigPatch aiConfigPatch)Update AI Config Edit an existing AI Config.okhttp3.CallpatchAIConfigAsync(java.lang.String projectKey, java.lang.String configKey, AIConfigPatch aiConfigPatch, ApiCallback<AIConfig> _callback)Update AI Config (asynchronously) Edit an existing AI Config.okhttp3.CallpatchAIConfigCall(java.lang.String projectKey, java.lang.String configKey, AIConfigPatch aiConfigPatch, ApiCallback _callback)Build call for patchAIConfigAIConfigTargetingpatchAIConfigTargeting(java.lang.String projectKey, java.lang.String configKey, AIConfigTargetingPatch aiConfigTargetingPatch)Update AI Config targeting Perform a partial update to an AI Config's targeting.okhttp3.CallpatchAIConfigTargetingAsync(java.lang.String projectKey, java.lang.String configKey, AIConfigTargetingPatch aiConfigTargetingPatch, ApiCallback<AIConfigTargeting> _callback)Update AI Config targeting (asynchronously) Perform a partial update to an AI Config's targeting.okhttp3.CallpatchAIConfigTargetingCall(java.lang.String projectKey, java.lang.String configKey, AIConfigTargetingPatch aiConfigTargetingPatch, ApiCallback _callback)Build call for patchAIConfigTargetingApiResponse<AIConfigTargeting>patchAIConfigTargetingWithHttpInfo(java.lang.String projectKey, java.lang.String configKey, AIConfigTargetingPatch aiConfigTargetingPatch)Update AI Config targeting Perform a partial update to an AI Config's targeting.AIConfigVariationpatchAIConfigVariation(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey, AIConfigVariationPatch aiConfigVariationPatch)Update AI Config variation Edit an existing variation of an AI Config.okhttp3.CallpatchAIConfigVariationAsync(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey, AIConfigVariationPatch aiConfigVariationPatch, ApiCallback<AIConfigVariation> _callback)Update AI Config variation (asynchronously) Edit an existing variation of an AI Config.okhttp3.CallpatchAIConfigVariationCall(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey, AIConfigVariationPatch aiConfigVariationPatch, ApiCallback _callback)Build call for patchAIConfigVariationApiResponse<AIConfigVariation>patchAIConfigVariationWithHttpInfo(java.lang.String projectKey, java.lang.String configKey, java.lang.String variationKey, AIConfigVariationPatch aiConfigVariationPatch)Update AI Config variation Edit an existing variation of an AI Config.ApiResponse<AIConfig>patchAIConfigWithHttpInfo(java.lang.String projectKey, java.lang.String configKey, AIConfigPatch aiConfigPatch)Update AI Config Edit an existing AI Config.AIToolpatchAITool(java.lang.String projectKey, java.lang.String toolKey, AIToolPatch aiToolPatch)Update AI tool Edit an existing AI tool.okhttp3.CallpatchAIToolAsync(java.lang.String projectKey, java.lang.String toolKey, AIToolPatch aiToolPatch, ApiCallback<AITool> _callback)Update AI tool (asynchronously) Edit an existing AI tool.okhttp3.CallpatchAIToolCall(java.lang.String projectKey, java.lang.String toolKey, AIToolPatch aiToolPatch, ApiCallback _callback)Build call for patchAIToolApiResponse<AITool>patchAIToolWithHttpInfo(java.lang.String projectKey, java.lang.String toolKey, AIToolPatch aiToolPatch)Update AI tool Edit an existing AI tool.AgentGraphpostAgentGraph(java.lang.String ldAPIVersion, java.lang.String projectKey, AgentGraphPost agentGraphPost)Create new agent graph Create a new agent graph within the given project.okhttp3.CallpostAgentGraphAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, AgentGraphPost agentGraphPost, ApiCallback<AgentGraph> _callback)Create new agent graph (asynchronously) Create a new agent graph within the given project.okhttp3.CallpostAgentGraphCall(java.lang.String ldAPIVersion, java.lang.String projectKey, AgentGraphPost agentGraphPost, ApiCallback _callback)Build call for postAgentGraphApiResponse<AgentGraph>postAgentGraphWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, AgentGraphPost agentGraphPost)Create new agent graph Create a new agent graph within the given project.AIConfigpostAIConfig(java.lang.String projectKey, AIConfigPost aiConfigPost)Create new AI Config Create a new AI Config within the given project.okhttp3.CallpostAIConfigAsync(java.lang.String projectKey, AIConfigPost aiConfigPost, ApiCallback<AIConfig> _callback)Create new AI Config (asynchronously) Create a new AI Config within the given project.okhttp3.CallpostAIConfigCall(java.lang.String projectKey, AIConfigPost aiConfigPost, ApiCallback _callback)Build call for postAIConfigAIConfigVariationpostAIConfigVariation(java.lang.String projectKey, java.lang.String configKey, AIConfigVariationPost aiConfigVariationPost)Create AI Config variation Create a new variation for a given AI Config.okhttp3.CallpostAIConfigVariationAsync(java.lang.String projectKey, java.lang.String configKey, AIConfigVariationPost aiConfigVariationPost, ApiCallback<AIConfigVariation> _callback)Create AI Config variation (asynchronously) Create a new variation for a given AI Config.okhttp3.CallpostAIConfigVariationCall(java.lang.String projectKey, java.lang.String configKey, AIConfigVariationPost aiConfigVariationPost, ApiCallback _callback)Build call for postAIConfigVariationApiResponse<AIConfigVariation>postAIConfigVariationWithHttpInfo(java.lang.String projectKey, java.lang.String configKey, AIConfigVariationPost aiConfigVariationPost)Create AI Config variation Create a new variation for a given AI Config.ApiResponse<AIConfig>postAIConfigWithHttpInfo(java.lang.String projectKey, AIConfigPost aiConfigPost)Create new AI Config Create a new AI Config within the given project.AIToolpostAITool(java.lang.String projectKey, AIToolPost aiToolPost)Create an AI tool Create an AI toolokhttp3.CallpostAIToolAsync(java.lang.String projectKey, AIToolPost aiToolPost, ApiCallback<AITool> _callback)Create an AI tool (asynchronously) Create an AI toolokhttp3.CallpostAIToolCall(java.lang.String projectKey, AIToolPost aiToolPost, ApiCallback _callback)Build call for postAIToolApiResponse<AITool>postAIToolWithHttpInfo(java.lang.String projectKey, AIToolPost aiToolPost)Create an AI tool Create an AI toolModelConfigpostModelConfig(java.lang.String projectKey, ModelConfigPost modelConfigPost)Create an AI model config Create an AI model config.okhttp3.CallpostModelConfigAsync(java.lang.String projectKey, ModelConfigPost modelConfigPost, ApiCallback<ModelConfig> _callback)Create an AI model config (asynchronously) Create an AI model config.okhttp3.CallpostModelConfigCall(java.lang.String projectKey, ModelConfigPost modelConfigPost, ApiCallback _callback)Build call for postModelConfigApiResponse<ModelConfig>postModelConfigWithHttpInfo(java.lang.String projectKey, ModelConfigPost modelConfigPost)Create an AI model config Create an AI model config.RestrictedModelsResponsepostRestrictedModels(java.lang.String projectKey, RestrictedModelsRequest restrictedModelsRequest)Add AI models to the restricted list Add AI models, by key, to the restricted list.okhttp3.CallpostRestrictedModelsAsync(java.lang.String projectKey, RestrictedModelsRequest restrictedModelsRequest, ApiCallback<RestrictedModelsResponse> _callback)Add AI models to the restricted list (asynchronously) Add AI models, by key, to the restricted list.okhttp3.CallpostRestrictedModelsCall(java.lang.String projectKey, RestrictedModelsRequest restrictedModelsRequest, ApiCallback _callback)Build call for postRestrictedModelsApiResponse<RestrictedModelsResponse>postRestrictedModelsWithHttpInfo(java.lang.String projectKey, RestrictedModelsRequest restrictedModelsRequest)Add AI models to the restricted list Add AI models, by key, to the restricted list.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
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 ApiExceptionBuild 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 ApiExceptionDelete 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 ApiExceptionDelete 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 ApiExceptionBuild 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 ApiExceptionDelete 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 ApiExceptionDelete 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 ApiExceptionBuild 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 ApiExceptionDelete 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 ApiExceptionDelete 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 ApiExceptionBuild 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 ApiExceptionDelete 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 ApiExceptionDelete 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 ApiExceptionBuild 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 ApiExceptionDelete 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 ApiExceptionDelete 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 ApiExceptionBuild 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 ApiExceptionRemove 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 ApiExceptionRemove 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionShow 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionBuild 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 ApiExceptionUpdate 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 ApiExceptionBuild 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 ApiExceptionUpdate 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 ApiExceptionBuild 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 ApiExceptionUpdate 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 ApiExceptionBuild 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 ApiExceptionUpdate 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 ApiExceptionBuild 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 ApiExceptionUpdate 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 ApiExceptionBuild 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 ApiExceptionCreate 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 ApiExceptionBuild 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 ApiExceptionCreate 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 ApiExceptionBuild 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 ApiExceptionCreate 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 ApiExceptionBuild 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 ApiExceptionCreate 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 ApiExceptionBuild 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 ApiExceptionCreate 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 ApiExceptionBuild 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 ApiExceptionAdd 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
-
-