Package com.launchdarkly.api.api
Class AgentControlApi
- java.lang.Object
-
- com.launchdarkly.api.api.AgentControlApi
-
public class AgentControlApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AgentControlApi()AgentControlApi(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.voiddeleteAgentOptimization(java.lang.String projectKey, java.lang.String optimizationKey)Delete an agent optimization Delete an existing agent optimization.okhttp3.CalldeleteAgentOptimizationAsync(java.lang.String projectKey, java.lang.String optimizationKey, ApiCallback<java.lang.Void> _callback)Delete an agent optimization (asynchronously) Delete an existing agent optimization.okhttp3.CalldeleteAgentOptimizationCall(java.lang.String projectKey, java.lang.String optimizationKey, ApiCallback _callback)Build call for deleteAgentOptimizationvoiddeleteAgentOptimizationRun(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID runId)Delete an agent optimization run Delete all results for a specific run of an agent optimization.okhttp3.CalldeleteAgentOptimizationRunAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID runId, ApiCallback<java.lang.Void> _callback)Delete an agent optimization run (asynchronously) Delete all results for a specific run of an agent optimization.okhttp3.CalldeleteAgentOptimizationRunCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID runId, ApiCallback _callback)Build call for deleteAgentOptimizationRunApiResponse<java.lang.Void>deleteAgentOptimizationRunWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID runId)Delete an agent optimization run Delete all results for a specific run of an agent optimization.ApiResponse<java.lang.Void>deleteAgentOptimizationWithHttpInfo(java.lang.String projectKey, java.lang.String optimizationKey)Delete an agent optimization Delete an existing agent optimization.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.voiddeletePromptSnippet(java.lang.String projectKey, java.lang.String snippetKey)Delete a prompt snippet Delete an existing prompt snippet.okhttp3.CalldeletePromptSnippetAsync(java.lang.String projectKey, java.lang.String snippetKey, ApiCallback<java.lang.Void> _callback)Delete a prompt snippet (asynchronously) Delete an existing prompt snippet.okhttp3.CalldeletePromptSnippetCall(java.lang.String projectKey, java.lang.String snippetKey, ApiCallback _callback)Build call for deletePromptSnippetApiResponse<java.lang.Void>deletePromptSnippetWithHttpInfo(java.lang.String projectKey, java.lang.String snippetKey)Delete a prompt snippet Delete an existing prompt snippet.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.AgentOptimizationgetAgentOptimization(java.lang.String projectKey, java.lang.String optimizationKey)Get an agent optimization Retrieve a specific agent optimization by its key.okhttp3.CallgetAgentOptimizationAsync(java.lang.String projectKey, java.lang.String optimizationKey, ApiCallback<AgentOptimization> _callback)Get an agent optimization (asynchronously) Retrieve a specific agent optimization by its key.okhttp3.CallgetAgentOptimizationCall(java.lang.String projectKey, java.lang.String optimizationKey, ApiCallback _callback)Build call for getAgentOptimizationApiResponse<AgentOptimization>getAgentOptimizationWithHttpInfo(java.lang.String projectKey, java.lang.String optimizationKey)Get an agent optimization Retrieve a specific agent optimization by its key.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, java.lang.String contextKind, java.lang.String contextKey)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, java.lang.String contextKind, java.lang.String contextKey, 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, java.lang.String contextKind, java.lang.String contextKey)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, java.lang.String contextKind, java.lang.String contextKey, 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, java.lang.String contextKind, java.lang.String contextKey, 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, java.lang.String contextKind, java.lang.String contextKey)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, java.lang.String contextKind, java.lang.String contextKey, 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, java.lang.String contextKind, java.lang.String contextKey)Get AI Config metrics Retrieve usage metrics for an AI Config by config key.QuickStatsgetAIConfigQuickStats(java.lang.String projectKey, java.lang.String env)Get AI Config quick stats Retrieve aggregate quick stats for AI Configs in a project.okhttp3.CallgetAIConfigQuickStatsAsync(java.lang.String projectKey, java.lang.String env, ApiCallback<QuickStats> _callback)Get AI Config quick stats (asynchronously) Retrieve aggregate quick stats for AI Configs in a project.okhttp3.CallgetAIConfigQuickStatsCall(java.lang.String projectKey, java.lang.String env, ApiCallback _callback)Build call for getAIConfigQuickStatsApiResponse<QuickStats>getAIConfigQuickStatsWithHttpInfo(java.lang.String projectKey, java.lang.String env)Get AI Config quick stats Retrieve aggregate quick stats for AI Configs in a project.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.PromptSnippetgetPromptSnippet(java.lang.String projectKey, java.lang.String snippetKey)Get a prompt snippet Retrieve a specific prompt snippet by its key.okhttp3.CallgetPromptSnippetAsync(java.lang.String projectKey, java.lang.String snippetKey, ApiCallback<PromptSnippet> _callback)Get a prompt snippet (asynchronously) Retrieve a specific prompt snippet by its key.okhttp3.CallgetPromptSnippetCall(java.lang.String projectKey, java.lang.String snippetKey, ApiCallback _callback)Build call for getPromptSnippetApiResponse<PromptSnippet>getPromptSnippetWithHttpInfo(java.lang.String projectKey, java.lang.String snippetKey)Get a prompt snippet Retrieve a specific prompt snippet by its key.AgentGraphslistAgentGraphs(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)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, java.lang.String filter, 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, java.lang.String filter, ApiCallback _callback)Build call for listAgentGraphsApiResponse<AgentGraphs>listAgentGraphsWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)List agent graphs Get a list of all agent graphs in the given project.AgentOptimizationResultslistAgentOptimizationResults(java.lang.String projectKey, java.lang.String optimizationKey, java.lang.Integer limit, java.lang.Integer offset)List agent optimization runs Get the most recent result for each unique run of an agent optimization.okhttp3.CalllistAgentOptimizationResultsAsync(java.lang.String projectKey, java.lang.String optimizationKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback<AgentOptimizationResults> _callback)List agent optimization runs (asynchronously) Get the most recent result for each unique run of an agent optimization.AgentOptimizationResultslistAgentOptimizationResultsByRunId(java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID runId)List agent optimization results for a run Get all results for a specific run of an agent optimization, sorted by iteration descending.okhttp3.CalllistAgentOptimizationResultsByRunIdAsync(java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID runId, ApiCallback<AgentOptimizationResults> _callback)List agent optimization results for a run (asynchronously) Get all results for a specific run of an agent optimization, sorted by iteration descending.okhttp3.CalllistAgentOptimizationResultsByRunIdCall(java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID runId, ApiCallback _callback)Build call for listAgentOptimizationResultsByRunIdApiResponse<AgentOptimizationResults>listAgentOptimizationResultsByRunIdWithHttpInfo(java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID runId)List agent optimization results for a run Get all results for a specific run of an agent optimization, sorted by iteration descending.okhttp3.CalllistAgentOptimizationResultsCall(java.lang.String projectKey, java.lang.String optimizationKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback _callback)Build call for listAgentOptimizationResultsApiResponse<AgentOptimizationResults>listAgentOptimizationResultsWithHttpInfo(java.lang.String projectKey, java.lang.String optimizationKey, java.lang.Integer limit, java.lang.Integer offset)List agent optimization runs Get the most recent result for each unique run of an agent optimization.AgentOptimizationslistAgentOptimizations(java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)List agent optimizations Get a list of all agent optimizations in the given project.okhttp3.CalllistAgentOptimizationsAsync(java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, ApiCallback<AgentOptimizations> _callback)List agent optimizations (asynchronously) Get a list of all agent optimizations in the given project.okhttp3.CalllistAgentOptimizationsCall(java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, ApiCallback _callback)Build call for listAgentOptimizationsApiResponse<AgentOptimizations>listAgentOptimizationsWithHttpInfo(java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)List agent optimizations Get a list of all agent optimizations 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.AgentOptimizationResultslistAllAgentOptimizationResults(java.lang.String projectKey, java.lang.String optimizationKey, java.lang.Integer limit, java.lang.Integer offset)List all agent optimization results across versions Get all results across all versions of an agent optimization.okhttp3.CalllistAllAgentOptimizationResultsAsync(java.lang.String projectKey, java.lang.String optimizationKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback<AgentOptimizationResults> _callback)List all agent optimization results across versions (asynchronously) Get all results across all versions of an agent optimization.okhttp3.CalllistAllAgentOptimizationResultsCall(java.lang.String projectKey, java.lang.String optimizationKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback _callback)Build call for listAllAgentOptimizationResultsApiResponse<AgentOptimizationResults>listAllAgentOptimizationResultsWithHttpInfo(java.lang.String projectKey, java.lang.String optimizationKey, java.lang.Integer limit, java.lang.Integer offset)List all agent optimization results across versions Get all results across all versions of an agent optimization.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.SnippetReferenceslistPromptSnippetReferences(java.lang.String projectKey, java.lang.String snippetKey, java.lang.Integer limit, java.lang.Integer offset)List prompt snippet references Get all config variations that currently reference this prompt snippet.okhttp3.CalllistPromptSnippetReferencesAsync(java.lang.String projectKey, java.lang.String snippetKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback<SnippetReferences> _callback)List prompt snippet references (asynchronously) Get all config variations that currently reference this prompt snippet.okhttp3.CalllistPromptSnippetReferencesCall(java.lang.String projectKey, java.lang.String snippetKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback _callback)Build call for listPromptSnippetReferencesApiResponse<SnippetReferences>listPromptSnippetReferencesWithHttpInfo(java.lang.String projectKey, java.lang.String snippetKey, java.lang.Integer limit, java.lang.Integer offset)List prompt snippet references Get all config variations that currently reference this prompt snippet.PromptSnippetslistPromptSnippets(java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)List prompt snippets Get a list of all prompt snippets in the given project.okhttp3.CalllistPromptSnippetsAsync(java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, ApiCallback<PromptSnippets> _callback)List prompt snippets (asynchronously) Get a list of all prompt snippets in the given project.okhttp3.CalllistPromptSnippetsCall(java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, ApiCallback _callback)Build call for listPromptSnippetsApiResponse<PromptSnippets>listPromptSnippetsWithHttpInfo(java.lang.String projectKey, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter)List prompt snippets Get a list of all prompt snippets in the given project.PromptSnippetslistPromptSnippetVersions(java.lang.String projectKey, java.lang.String snippetKey, java.lang.Integer limit, java.lang.Integer offset)List prompt snippet versions Get all versions of a prompt snippet in the given project, ordered by version descending.okhttp3.CalllistPromptSnippetVersionsAsync(java.lang.String projectKey, java.lang.String snippetKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback<PromptSnippets> _callback)List prompt snippet versions (asynchronously) Get all versions of a prompt snippet in the given project, ordered by version descending.okhttp3.CalllistPromptSnippetVersionsCall(java.lang.String projectKey, java.lang.String snippetKey, java.lang.Integer limit, java.lang.Integer offset, ApiCallback _callback)Build call for listPromptSnippetVersionsApiResponse<PromptSnippets>listPromptSnippetVersionsWithHttpInfo(java.lang.String projectKey, java.lang.String snippetKey, java.lang.Integer limit, java.lang.Integer offset)List prompt snippet versions Get all versions of a prompt snippet in the given project, ordered by version descending.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.AgentOptimizationpatchAgentOptimization(java.lang.String projectKey, java.lang.String optimizationKey, AgentOptimizationPatch agentOptimizationPatch)Update an agent optimization Update an existing agent optimization.okhttp3.CallpatchAgentOptimizationAsync(java.lang.String projectKey, java.lang.String optimizationKey, AgentOptimizationPatch agentOptimizationPatch, ApiCallback<AgentOptimization> _callback)Update an agent optimization (asynchronously) Update an existing agent optimization.okhttp3.CallpatchAgentOptimizationCall(java.lang.String projectKey, java.lang.String optimizationKey, AgentOptimizationPatch agentOptimizationPatch, ApiCallback _callback)Build call for patchAgentOptimizationAgentOptimizationResultpatchAgentOptimizationResult(java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID resultId, AgentOptimizationResultPatch agentOptimizationResultPatch)Update an agent optimization result Update status, activity, and AI request metadata fields on an agent optimization result.okhttp3.CallpatchAgentOptimizationResultAsync(java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID resultId, AgentOptimizationResultPatch agentOptimizationResultPatch, ApiCallback<AgentOptimizationResult> _callback)Update an agent optimization result (asynchronously) Update status, activity, and AI request metadata fields on an agent optimization result.okhttp3.CallpatchAgentOptimizationResultCall(java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID resultId, AgentOptimizationResultPatch agentOptimizationResultPatch, ApiCallback _callback)Build call for patchAgentOptimizationResultApiResponse<AgentOptimizationResult>patchAgentOptimizationResultWithHttpInfo(java.lang.String projectKey, java.lang.String optimizationKey, java.util.UUID resultId, AgentOptimizationResultPatch agentOptimizationResultPatch)Update an agent optimization result Update status, activity, and AI request metadata fields on an agent optimization result.ApiResponse<AgentOptimization>patchAgentOptimizationWithHttpInfo(java.lang.String projectKey, java.lang.String optimizationKey, AgentOptimizationPatch agentOptimizationPatch)Update an agent optimization Update an existing agent optimization.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.PromptSnippetpatchPromptSnippet(java.lang.String projectKey, java.lang.String snippetKey, PromptSnippetPatch promptSnippetPatch)Update a prompt snippet Update an existing prompt snippet.okhttp3.CallpatchPromptSnippetAsync(java.lang.String projectKey, java.lang.String snippetKey, PromptSnippetPatch promptSnippetPatch, ApiCallback<PromptSnippet> _callback)Update a prompt snippet (asynchronously) Update an existing prompt snippet.okhttp3.CallpatchPromptSnippetCall(java.lang.String projectKey, java.lang.String snippetKey, PromptSnippetPatch promptSnippetPatch, ApiCallback _callback)Build call for patchPromptSnippetApiResponse<PromptSnippet>patchPromptSnippetWithHttpInfo(java.lang.String projectKey, java.lang.String snippetKey, PromptSnippetPatch promptSnippetPatch)Update a prompt snippet Update an existing prompt snippet.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.AgentOptimizationpostAgentOptimization(java.lang.String projectKey, AgentOptimizationPost agentOptimizationPost)Create agent optimization Create a new agent optimization within the given project.okhttp3.CallpostAgentOptimizationAsync(java.lang.String projectKey, AgentOptimizationPost agentOptimizationPost, ApiCallback<AgentOptimization> _callback)Create agent optimization (asynchronously) Create a new agent optimization within the given project.okhttp3.CallpostAgentOptimizationCall(java.lang.String projectKey, AgentOptimizationPost agentOptimizationPost, ApiCallback _callback)Build call for postAgentOptimizationAgentOptimizationResultpostAgentOptimizationResult(java.lang.String projectKey, java.lang.String optimizationKey, AgentOptimizationResultPost agentOptimizationResultPost)Create agent optimization result Create a new result for an agent optimization run.okhttp3.CallpostAgentOptimizationResultAsync(java.lang.String projectKey, java.lang.String optimizationKey, AgentOptimizationResultPost agentOptimizationResultPost, ApiCallback<AgentOptimizationResult> _callback)Create agent optimization result (asynchronously) Create a new result for an agent optimization run.okhttp3.CallpostAgentOptimizationResultCall(java.lang.String projectKey, java.lang.String optimizationKey, AgentOptimizationResultPost agentOptimizationResultPost, ApiCallback _callback)Build call for postAgentOptimizationResultApiResponse<AgentOptimizationResult>postAgentOptimizationResultWithHttpInfo(java.lang.String projectKey, java.lang.String optimizationKey, AgentOptimizationResultPost agentOptimizationResultPost)Create agent optimization result Create a new result for an agent optimization run.ApiResponse<AgentOptimization>postAgentOptimizationWithHttpInfo(java.lang.String projectKey, AgentOptimizationPost agentOptimizationPost)Create agent optimization Create a new agent optimization 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.PromptSnippetpostPromptSnippet(java.lang.String projectKey, PromptSnippetPost promptSnippetPost)Create a prompt snippet Create a new prompt snippet within the given project.okhttp3.CallpostPromptSnippetAsync(java.lang.String projectKey, PromptSnippetPost promptSnippetPost, ApiCallback<PromptSnippet> _callback)Create a prompt snippet (asynchronously) Create a new prompt snippet within the given project.okhttp3.CallpostPromptSnippetCall(java.lang.String projectKey, PromptSnippetPost promptSnippetPost, ApiCallback _callback)Build call for postPromptSnippetApiResponse<PromptSnippet>postPromptSnippetWithHttpInfo(java.lang.String projectKey, PromptSnippetPost promptSnippetPost)Create a prompt snippet Create a new prompt snippet within the given project.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
-
AgentControlApi
public AgentControlApi()
-
AgentControlApi
public AgentControlApi(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
-
deleteAgentOptimizationCall
public okhttp3.Call deleteAgentOptimizationCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, ApiCallback _callback) throws ApiExceptionBuild call for deleteAgentOptimization- Parameters:
projectKey- (required)optimizationKey- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteAgentOptimization
public void deleteAgentOptimization(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey) throws ApiExceptionDelete an agent optimization Delete an existing agent optimization.- Parameters:
projectKey- (required)optimizationKey- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteAgentOptimizationWithHttpInfo
public ApiResponse<java.lang.Void> deleteAgentOptimizationWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey) throws ApiException
Delete an agent optimization Delete an existing agent optimization.- Parameters:
projectKey- (required)optimizationKey- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteAgentOptimizationAsync
public okhttp3.Call deleteAgentOptimizationAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete an agent optimization (asynchronously) Delete an existing agent optimization.- Parameters:
projectKey- (required)optimizationKey- (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
-
deleteAgentOptimizationRunCall
public okhttp3.Call deleteAgentOptimizationRunCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID runId, ApiCallback _callback) throws ApiExceptionBuild call for deleteAgentOptimizationRun- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)optimizationKey- (required)runId- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteAgentOptimizationRun
public void deleteAgentOptimizationRun(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID runId) throws ApiExceptionDelete an agent optimization run Delete all results for a specific run of an agent optimization. Returns a 404 if the optimization does not exist or if the run has no results. A run whose results have already been deleted is indistinguishable from a run that never existed, so repeating this request also returns a 404.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)optimizationKey- (required)runId- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteAgentOptimizationRunWithHttpInfo
public ApiResponse<java.lang.Void> deleteAgentOptimizationRunWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID runId) throws ApiException
Delete an agent optimization run Delete all results for a specific run of an agent optimization. Returns a 404 if the optimization does not exist or if the run has no results. A run whose results have already been deleted is indistinguishable from a run that never existed, so repeating this request also returns a 404.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)optimizationKey- (required)runId- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteAgentOptimizationRunAsync
public okhttp3.Call deleteAgentOptimizationRunAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID runId, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete an agent optimization run (asynchronously) Delete all results for a specific run of an agent optimization. Returns a 404 if the optimization does not exist or if the run has no results. A run whose results have already been deleted is indistinguishable from a run that never existed, so repeating this request also returns a 404.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)optimizationKey- (required)runId- (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
-
deletePromptSnippetCall
public okhttp3.Call deletePromptSnippetCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, ApiCallback _callback) throws ApiExceptionBuild call for deletePromptSnippet- Parameters:
projectKey- (required)snippetKey- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deletePromptSnippet
public void deletePromptSnippet(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey) throws ApiExceptionDelete a prompt snippet Delete an existing prompt snippet.- Parameters:
projectKey- (required)snippetKey- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deletePromptSnippetWithHttpInfo
public ApiResponse<java.lang.Void> deletePromptSnippetWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey) throws ApiException
Delete a prompt snippet Delete an existing prompt snippet.- Parameters:
projectKey- (required)snippetKey- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deletePromptSnippetAsync
public okhttp3.Call deletePromptSnippetAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete a prompt snippet (asynchronously) Delete an existing prompt snippet.- Parameters:
projectKey- (required)snippetKey- (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, @Nullable java.lang.String contextKind, @Nullable java.lang.String contextKey, 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)contextKind- A context kind. Only metrics from events that include a context of this kind are included. Required if `contextKey` is provided. (optional)contextKey- A context key. Only metrics from events whose context of the `contextKind` kind has this key are included. Requires `contextKind`. (optional)_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, @Nullable java.lang.String contextKind, @Nullable java.lang.String contextKey) 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)contextKind- A context kind. Only metrics from events that include a context of this kind are included. Required if `contextKey` is provided. (optional)contextKey- A context key. Only metrics from events whose context of the `contextKind` kind has this key are included. Requires `contextKind`. (optional)- 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, @Nullable java.lang.String contextKind, @Nullable java.lang.String contextKey) 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)contextKind- A context kind. Only metrics from events that include a context of this kind are included. Required if `contextKey` is provided. (optional)contextKey- A context key. Only metrics from events whose context of the `contextKind` kind has this key are included. Requires `contextKind`. (optional)- 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, @Nullable java.lang.String contextKind, @Nullable java.lang.String contextKey, 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)contextKind- A context kind. Only metrics from events that include a context of this kind are included. Required if `contextKey` is provided. (optional)contextKey- A context key. Only metrics from events whose context of the `contextKind` kind has this key are included. Requires `contextKind`. (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
-
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, @Nullable java.lang.String contextKind, @Nullable java.lang.String contextKey, 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)contextKind- A context kind. Only metrics from events that include a context of this kind are included. Required if `contextKey` is provided. (optional)contextKey- A context key. Only metrics from events whose context of the `contextKind` kind has this key are included. Requires `contextKind`. (optional)_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, @Nullable java.lang.String contextKind, @Nullable java.lang.String contextKey) 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)contextKind- A context kind. Only metrics from events that include a context of this kind are included. Required if `contextKey` is provided. (optional)contextKey- A context key. Only metrics from events whose context of the `contextKind` kind has this key are included. Requires `contextKind`. (optional)- 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, @Nullable java.lang.String contextKind, @Nullable java.lang.String contextKey) 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)contextKind- A context kind. Only metrics from events that include a context of this kind are included. Required if `contextKey` is provided. (optional)contextKey- A context key. Only metrics from events whose context of the `contextKind` kind has this key are included. Requires `contextKind`. (optional)- 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, @Nullable java.lang.String contextKind, @Nullable java.lang.String contextKey, 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)contextKind- A context kind. Only metrics from events that include a context of this kind are included. Required if `contextKey` is provided. (optional)contextKey- A context key. Only metrics from events whose context of the `contextKind` kind has this key are included. Requires `contextKind`. (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
-
getAIConfigQuickStatsCall
public okhttp3.Call getAIConfigQuickStatsCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String env, ApiCallback _callback) throws ApiExceptionBuild call for getAIConfigQuickStats- Parameters:
projectKey- (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
-
getAIConfigQuickStats
public QuickStats getAIConfigQuickStats(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String env) throws ApiException
Get AI Config quick stats Retrieve aggregate quick stats for AI Configs in a project.- Parameters:
projectKey- (required)env- An environment key. Only metrics from this environment will be included. (required)- Returns:
- QuickStats
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAIConfigQuickStatsWithHttpInfo
public ApiResponse<QuickStats> getAIConfigQuickStatsWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String env) throws ApiException
Get AI Config quick stats Retrieve aggregate quick stats for AI Configs in a project.- Parameters:
projectKey- (required)env- An environment key. Only metrics from this environment will be included. (required)- Returns:
- ApiResponse<QuickStats>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAIConfigQuickStatsAsync
public okhttp3.Call getAIConfigQuickStatsAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String env, ApiCallback<QuickStats> _callback) throws ApiExceptionGet AI Config quick stats (asynchronously) Retrieve aggregate quick stats for AI Configs in a project.- Parameters:
projectKey- (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 AgentControl configs. (optional)limit- The number of resources 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. (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 AgentControl configs. (optional)limit- The number of resources 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. (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 AgentControl configs. (optional)limit- The number of resources 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. (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 AgentControl configs. (optional)limit- The number of resources 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. (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
-
getAgentOptimizationCall
public okhttp3.Call getAgentOptimizationCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, ApiCallback _callback) throws ApiExceptionBuild call for getAgentOptimization- Parameters:
projectKey- (required)optimizationKey- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getAgentOptimization
public AgentOptimization getAgentOptimization(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey) throws ApiException
Get an agent optimization Retrieve a specific agent optimization by its key.- Parameters:
projectKey- (required)optimizationKey- (required)- Returns:
- AgentOptimization
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAgentOptimizationWithHttpInfo
public ApiResponse<AgentOptimization> getAgentOptimizationWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey) throws ApiException
Get an agent optimization Retrieve a specific agent optimization by its key.- Parameters:
projectKey- (required)optimizationKey- (required)- Returns:
- ApiResponse<AgentOptimization>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAgentOptimizationAsync
public okhttp3.Call getAgentOptimizationAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, ApiCallback<AgentOptimization> _callback) throws ApiExceptionGet an agent optimization (asynchronously) Retrieve a specific agent optimization by its key.- Parameters:
projectKey- (required)optimizationKey- (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
-
getPromptSnippetCall
public okhttp3.Call getPromptSnippetCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, ApiCallback _callback) throws ApiExceptionBuild call for getPromptSnippet- Parameters:
projectKey- (required)snippetKey- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getPromptSnippet
public PromptSnippet getPromptSnippet(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey) throws ApiException
Get a prompt snippet Retrieve a specific prompt snippet by its key.- Parameters:
projectKey- (required)snippetKey- (required)- Returns:
- PromptSnippet
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getPromptSnippetWithHttpInfo
public ApiResponse<PromptSnippet> getPromptSnippetWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey) throws ApiException
Get a prompt snippet Retrieve a specific prompt snippet by its key.- Parameters:
projectKey- (required)snippetKey- (required)- Returns:
- ApiResponse<PromptSnippet>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getPromptSnippetAsync
public okhttp3.Call getPromptSnippetAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, ApiCallback<PromptSnippet> _callback) throws ApiExceptionGet a prompt snippet (asynchronously) Retrieve a specific prompt snippet by its key.- Parameters:
projectKey- (required)snippetKey- (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 AgentControl configs. (optional)limit- The number of resources 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 AgentControl configs. (optional)limit- The number of resources 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 AgentControl configs. (optional)limit- The number of resources 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 AgentControl configs. (optional)limit- The number of resources 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 AgentControl configs. (optional)limit- The number of resources 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. (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 AgentControl configs. (optional)limit- The number of resources 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. (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 AgentControl configs. (optional)limit- The number of resources 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. (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 AgentControl configs. (optional)limit- The number of resources 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. (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, @Nullable java.lang.String filter, ApiCallback _callback) throws ApiExceptionBuild call for listAgentGraphs- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)limit- The number of resources 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. (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, @Nullable java.lang.String filter) 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 resources 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. (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, @Nullable java.lang.String filter) 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 resources 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. (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, @Nullable java.lang.String filter, 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 resources 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. (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
-
listAgentOptimizationResultsCall
public okhttp3.Call listAgentOptimizationResultsCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback _callback) throws ApiExceptionBuild call for listAgentOptimizationResults- Parameters:
projectKey- (required)optimizationKey- (required)limit- The number of resources 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
-
listAgentOptimizationResults
public AgentOptimizationResults listAgentOptimizationResults(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
List agent optimization runs Get the most recent result for each unique run of an agent optimization.- Parameters:
projectKey- (required)optimizationKey- (required)limit- The number of resources 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:
- AgentOptimizationResults
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listAgentOptimizationResultsWithHttpInfo
public ApiResponse<AgentOptimizationResults> listAgentOptimizationResultsWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
List agent optimization runs Get the most recent result for each unique run of an agent optimization.- Parameters:
projectKey- (required)optimizationKey- (required)limit- The number of resources 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<AgentOptimizationResults>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listAgentOptimizationResultsAsync
public okhttp3.Call listAgentOptimizationResultsAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback<AgentOptimizationResults> _callback) throws ApiExceptionList agent optimization runs (asynchronously) Get the most recent result for each unique run of an agent optimization.- Parameters:
projectKey- (required)optimizationKey- (required)limit- The number of resources 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
-
listAgentOptimizationResultsByRunIdCall
public okhttp3.Call listAgentOptimizationResultsByRunIdCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID runId, ApiCallback _callback) throws ApiExceptionBuild call for listAgentOptimizationResultsByRunId- Parameters:
projectKey- (required)optimizationKey- (required)runId- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
listAgentOptimizationResultsByRunId
public AgentOptimizationResults listAgentOptimizationResultsByRunId(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID runId) throws ApiException
List agent optimization results for a run Get all results for a specific run of an agent optimization, sorted by iteration descending.- Parameters:
projectKey- (required)optimizationKey- (required)runId- (required)- Returns:
- AgentOptimizationResults
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listAgentOptimizationResultsByRunIdWithHttpInfo
public ApiResponse<AgentOptimizationResults> listAgentOptimizationResultsByRunIdWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID runId) throws ApiException
List agent optimization results for a run Get all results for a specific run of an agent optimization, sorted by iteration descending.- Parameters:
projectKey- (required)optimizationKey- (required)runId- (required)- Returns:
- ApiResponse<AgentOptimizationResults>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listAgentOptimizationResultsByRunIdAsync
public okhttp3.Call listAgentOptimizationResultsByRunIdAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID runId, ApiCallback<AgentOptimizationResults> _callback) throws ApiExceptionList agent optimization results for a run (asynchronously) Get all results for a specific run of an agent optimization, sorted by iteration descending.- Parameters:
projectKey- (required)optimizationKey- (required)runId- (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
-
listAgentOptimizationsCall
public okhttp3.Call listAgentOptimizationsCall(@Nonnull java.lang.String projectKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, ApiCallback _callback) throws ApiExceptionBuild call for listAgentOptimizations- Parameters:
projectKey- (required)limit- The number of resources 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. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
listAgentOptimizations
public AgentOptimizations listAgentOptimizations(@Nonnull java.lang.String projectKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter) throws ApiException
List agent optimizations Get a list of all agent optimizations in the given project.- Parameters:
projectKey- (required)limit- The number of resources 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. (optional)- Returns:
- AgentOptimizations
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listAgentOptimizationsWithHttpInfo
public ApiResponse<AgentOptimizations> listAgentOptimizationsWithHttpInfo(@Nonnull java.lang.String projectKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter) throws ApiException
List agent optimizations Get a list of all agent optimizations in the given project.- Parameters:
projectKey- (required)limit- The number of resources 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. (optional)- Returns:
- ApiResponse<AgentOptimizations>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listAgentOptimizationsAsync
public okhttp3.Call listAgentOptimizationsAsync(@Nonnull java.lang.String projectKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, ApiCallback<AgentOptimizations> _callback) throws ApiExceptionList agent optimizations (asynchronously) Get a list of all agent optimizations in the given project.- Parameters:
projectKey- (required)limit- The number of resources 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. (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
-
listAllAgentOptimizationResultsCall
public okhttp3.Call listAllAgentOptimizationResultsCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback _callback) throws ApiExceptionBuild call for listAllAgentOptimizationResults- Parameters:
projectKey- (required)optimizationKey- (required)limit- The number of resources 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
-
listAllAgentOptimizationResults
public AgentOptimizationResults listAllAgentOptimizationResults(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
List all agent optimization results across versions Get all results across all versions of an agent optimization.- Parameters:
projectKey- (required)optimizationKey- (required)limit- The number of resources 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:
- AgentOptimizationResults
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listAllAgentOptimizationResultsWithHttpInfo
public ApiResponse<AgentOptimizationResults> listAllAgentOptimizationResultsWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
List all agent optimization results across versions Get all results across all versions of an agent optimization.- Parameters:
projectKey- (required)optimizationKey- (required)limit- The number of resources 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<AgentOptimizationResults>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listAllAgentOptimizationResultsAsync
public okhttp3.Call listAllAgentOptimizationResultsAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback<AgentOptimizationResults> _callback) throws ApiExceptionList all agent optimization results across versions (asynchronously) Get all results across all versions of an agent optimization.- Parameters:
projectKey- (required)optimizationKey- (required)limit- The number of resources 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
-
listPromptSnippetReferencesCall
public okhttp3.Call listPromptSnippetReferencesCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback _callback) throws ApiExceptionBuild call for listPromptSnippetReferences- Parameters:
projectKey- (required)snippetKey- (required)limit- The number of resources 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
-
listPromptSnippetReferences
public SnippetReferences listPromptSnippetReferences(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
List prompt snippet references Get all config variations that currently reference this prompt snippet.- Parameters:
projectKey- (required)snippetKey- (required)limit- The number of resources 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:
- SnippetReferences
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listPromptSnippetReferencesWithHttpInfo
public ApiResponse<SnippetReferences> listPromptSnippetReferencesWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
List prompt snippet references Get all config variations that currently reference this prompt snippet.- Parameters:
projectKey- (required)snippetKey- (required)limit- The number of resources 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<SnippetReferences>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listPromptSnippetReferencesAsync
public okhttp3.Call listPromptSnippetReferencesAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback<SnippetReferences> _callback) throws ApiExceptionList prompt snippet references (asynchronously) Get all config variations that currently reference this prompt snippet.- Parameters:
projectKey- (required)snippetKey- (required)limit- The number of resources 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
-
listPromptSnippetVersionsCall
public okhttp3.Call listPromptSnippetVersionsCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback _callback) throws ApiExceptionBuild call for listPromptSnippetVersions- Parameters:
projectKey- (required)snippetKey- (required)limit- The number of resources 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
-
listPromptSnippetVersions
public PromptSnippets listPromptSnippetVersions(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
List prompt snippet versions Get all versions of a prompt snippet in the given project, ordered by version descending.- Parameters:
projectKey- (required)snippetKey- (required)limit- The number of resources 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:
- PromptSnippets
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listPromptSnippetVersionsWithHttpInfo
public ApiResponse<PromptSnippets> listPromptSnippetVersionsWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
List prompt snippet versions Get all versions of a prompt snippet in the given project, ordered by version descending.- Parameters:
projectKey- (required)snippetKey- (required)limit- The number of resources 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<PromptSnippets>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listPromptSnippetVersionsAsync
public okhttp3.Call listPromptSnippetVersionsAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback<PromptSnippets> _callback) throws ApiExceptionList prompt snippet versions (asynchronously) Get all versions of a prompt snippet in the given project, ordered by version descending.- Parameters:
projectKey- (required)snippetKey- (required)limit- The number of resources 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
-
listPromptSnippetsCall
public okhttp3.Call listPromptSnippetsCall(@Nonnull java.lang.String projectKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, ApiCallback _callback) throws ApiExceptionBuild call for listPromptSnippets- Parameters:
projectKey- (required)limit- The number of resources 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. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
listPromptSnippets
public PromptSnippets listPromptSnippets(@Nonnull java.lang.String projectKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter) throws ApiException
List prompt snippets Get a list of all prompt snippets in the given project.- Parameters:
projectKey- (required)limit- The number of resources 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. (optional)- Returns:
- PromptSnippets
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listPromptSnippetsWithHttpInfo
public ApiResponse<PromptSnippets> listPromptSnippetsWithHttpInfo(@Nonnull java.lang.String projectKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter) throws ApiException
List prompt snippets Get a list of all prompt snippets in the given project.- Parameters:
projectKey- (required)limit- The number of resources 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. (optional)- Returns:
- ApiResponse<PromptSnippets>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listPromptSnippetsAsync
public okhttp3.Call listPromptSnippetsAsync(@Nonnull java.lang.String projectKey, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, ApiCallback<PromptSnippets> _callback) throws ApiExceptionList prompt snippets (asynchronously) Get a list of all prompt snippets in the given project.- Parameters:
projectKey- (required)limit- The number of resources 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. (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
-
patchAgentOptimizationCall
public okhttp3.Call patchAgentOptimizationCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull AgentOptimizationPatch agentOptimizationPatch, ApiCallback _callback) throws ApiExceptionBuild call for patchAgentOptimization- Parameters:
projectKey- (required)optimizationKey- (required)agentOptimizationPatch- Agent optimization fields to update (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
patchAgentOptimization
public AgentOptimization patchAgentOptimization(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull AgentOptimizationPatch agentOptimizationPatch) throws ApiException
Update an agent optimization Update an existing agent optimization. Creates a new version of the optimization.- Parameters:
projectKey- (required)optimizationKey- (required)agentOptimizationPatch- Agent optimization fields to update (required)- Returns:
- AgentOptimization
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchAgentOptimizationWithHttpInfo
public ApiResponse<AgentOptimization> patchAgentOptimizationWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull AgentOptimizationPatch agentOptimizationPatch) throws ApiException
Update an agent optimization Update an existing agent optimization. Creates a new version of the optimization.- Parameters:
projectKey- (required)optimizationKey- (required)agentOptimizationPatch- Agent optimization fields to update (required)- Returns:
- ApiResponse<AgentOptimization>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchAgentOptimizationAsync
public okhttp3.Call patchAgentOptimizationAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull AgentOptimizationPatch agentOptimizationPatch, ApiCallback<AgentOptimization> _callback) throws ApiExceptionUpdate an agent optimization (asynchronously) Update an existing agent optimization. Creates a new version of the optimization.- Parameters:
projectKey- (required)optimizationKey- (required)agentOptimizationPatch- Agent optimization fields to update (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
-
patchAgentOptimizationResultCall
public okhttp3.Call patchAgentOptimizationResultCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID resultId, @Nonnull AgentOptimizationResultPatch agentOptimizationResultPatch, ApiCallback _callback) throws ApiExceptionBuild call for patchAgentOptimizationResult- Parameters:
projectKey- (required)optimizationKey- (required)resultId- (required)agentOptimizationResultPatch- Agent optimization result fields to update (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
patchAgentOptimizationResult
public AgentOptimizationResult patchAgentOptimizationResult(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID resultId, @Nonnull AgentOptimizationResultPatch agentOptimizationResultPatch) throws ApiException
Update an agent optimization result Update status, activity, and AI request metadata fields on an agent optimization result.- Parameters:
projectKey- (required)optimizationKey- (required)resultId- (required)agentOptimizationResultPatch- Agent optimization result fields to update (required)- Returns:
- AgentOptimizationResult
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchAgentOptimizationResultWithHttpInfo
public ApiResponse<AgentOptimizationResult> patchAgentOptimizationResultWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID resultId, @Nonnull AgentOptimizationResultPatch agentOptimizationResultPatch) throws ApiException
Update an agent optimization result Update status, activity, and AI request metadata fields on an agent optimization result.- Parameters:
projectKey- (required)optimizationKey- (required)resultId- (required)agentOptimizationResultPatch- Agent optimization result fields to update (required)- Returns:
- ApiResponse<AgentOptimizationResult>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchAgentOptimizationResultAsync
public okhttp3.Call patchAgentOptimizationResultAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull java.util.UUID resultId, @Nonnull AgentOptimizationResultPatch agentOptimizationResultPatch, ApiCallback<AgentOptimizationResult> _callback) throws ApiExceptionUpdate an agent optimization result (asynchronously) Update status, activity, and AI request metadata fields on an agent optimization result.- Parameters:
projectKey- (required)optimizationKey- (required)resultId- (required)agentOptimizationResultPatch- Agent optimization result fields to update (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
-
patchPromptSnippetCall
public okhttp3.Call patchPromptSnippetCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nonnull PromptSnippetPatch promptSnippetPatch, ApiCallback _callback) throws ApiExceptionBuild call for patchPromptSnippet- Parameters:
projectKey- (required)snippetKey- (required)promptSnippetPatch- Prompt snippet fields to update (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
patchPromptSnippet
public PromptSnippet patchPromptSnippet(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nonnull PromptSnippetPatch promptSnippetPatch) throws ApiException
Update a prompt snippet Update an existing prompt snippet. Creates a new version of the snippet.- Parameters:
projectKey- (required)snippetKey- (required)promptSnippetPatch- Prompt snippet fields to update (required)- Returns:
- PromptSnippet
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchPromptSnippetWithHttpInfo
public ApiResponse<PromptSnippet> patchPromptSnippetWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nonnull PromptSnippetPatch promptSnippetPatch) throws ApiException
Update a prompt snippet Update an existing prompt snippet. Creates a new version of the snippet.- Parameters:
projectKey- (required)snippetKey- (required)promptSnippetPatch- Prompt snippet fields to update (required)- Returns:
- ApiResponse<PromptSnippet>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchPromptSnippetAsync
public okhttp3.Call patchPromptSnippetAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String snippetKey, @Nonnull PromptSnippetPatch promptSnippetPatch, ApiCallback<PromptSnippet> _callback) throws ApiExceptionUpdate a prompt snippet (asynchronously) Update an existing prompt snippet. Creates a new version of the snippet.- Parameters:
projectKey- (required)snippetKey- (required)promptSnippetPatch- Prompt snippet fields to update (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
-
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
-
postAgentOptimizationCall
public okhttp3.Call postAgentOptimizationCall(@Nonnull java.lang.String projectKey, @Nonnull AgentOptimizationPost agentOptimizationPost, ApiCallback _callback) throws ApiExceptionBuild call for postAgentOptimization- Parameters:
projectKey- (required)agentOptimizationPost- Agent optimization object to create (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postAgentOptimization
public AgentOptimization postAgentOptimization(@Nonnull java.lang.String projectKey, @Nonnull AgentOptimizationPost agentOptimizationPost) throws ApiException
Create agent optimization Create a new agent optimization within the given project.- Parameters:
projectKey- (required)agentOptimizationPost- Agent optimization object to create (required)- Returns:
- AgentOptimization
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postAgentOptimizationWithHttpInfo
public ApiResponse<AgentOptimization> postAgentOptimizationWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull AgentOptimizationPost agentOptimizationPost) throws ApiException
Create agent optimization Create a new agent optimization within the given project.- Parameters:
projectKey- (required)agentOptimizationPost- Agent optimization object to create (required)- Returns:
- ApiResponse<AgentOptimization>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postAgentOptimizationAsync
public okhttp3.Call postAgentOptimizationAsync(@Nonnull java.lang.String projectKey, @Nonnull AgentOptimizationPost agentOptimizationPost, ApiCallback<AgentOptimization> _callback) throws ApiExceptionCreate agent optimization (asynchronously) Create a new agent optimization within the given project.- Parameters:
projectKey- (required)agentOptimizationPost- Agent optimization 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
-
postAgentOptimizationResultCall
public okhttp3.Call postAgentOptimizationResultCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull AgentOptimizationResultPost agentOptimizationResultPost, ApiCallback _callback) throws ApiExceptionBuild call for postAgentOptimizationResult- Parameters:
projectKey- (required)optimizationKey- (required)agentOptimizationResultPost- Agent optimization result to create (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postAgentOptimizationResult
public AgentOptimizationResult postAgentOptimizationResult(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull AgentOptimizationResultPost agentOptimizationResultPost) throws ApiException
Create agent optimization result Create a new result for an agent optimization run.- Parameters:
projectKey- (required)optimizationKey- (required)agentOptimizationResultPost- Agent optimization result to create (required)- Returns:
- AgentOptimizationResult
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postAgentOptimizationResultWithHttpInfo
public ApiResponse<AgentOptimizationResult> postAgentOptimizationResultWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull AgentOptimizationResultPost agentOptimizationResultPost) throws ApiException
Create agent optimization result Create a new result for an agent optimization run.- Parameters:
projectKey- (required)optimizationKey- (required)agentOptimizationResultPost- Agent optimization result to create (required)- Returns:
- ApiResponse<AgentOptimizationResult>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postAgentOptimizationResultAsync
public okhttp3.Call postAgentOptimizationResultAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String optimizationKey, @Nonnull AgentOptimizationResultPost agentOptimizationResultPost, ApiCallback<AgentOptimizationResult> _callback) throws ApiExceptionCreate agent optimization result (asynchronously) Create a new result for an agent optimization run.- Parameters:
projectKey- (required)optimizationKey- (required)agentOptimizationResultPost- Agent optimization result 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 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 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 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
-
postPromptSnippetCall
public okhttp3.Call postPromptSnippetCall(@Nonnull java.lang.String projectKey, @Nonnull PromptSnippetPost promptSnippetPost, ApiCallback _callback) throws ApiExceptionBuild call for postPromptSnippet- Parameters:
projectKey- (required)promptSnippetPost- Prompt snippet object to create (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postPromptSnippet
public PromptSnippet postPromptSnippet(@Nonnull java.lang.String projectKey, @Nonnull PromptSnippetPost promptSnippetPost) throws ApiException
Create a prompt snippet Create a new prompt snippet within the given project.- Parameters:
projectKey- (required)promptSnippetPost- Prompt snippet object to create (required)- Returns:
- PromptSnippet
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postPromptSnippetWithHttpInfo
public ApiResponse<PromptSnippet> postPromptSnippetWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull PromptSnippetPost promptSnippetPost) throws ApiException
Create a prompt snippet Create a new prompt snippet within the given project.- Parameters:
projectKey- (required)promptSnippetPost- Prompt snippet object to create (required)- Returns:
- ApiResponse<PromptSnippet>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postPromptSnippetAsync
public okhttp3.Call postPromptSnippetAsync(@Nonnull java.lang.String projectKey, @Nonnull PromptSnippetPost promptSnippetPost, ApiCallback<PromptSnippet> _callback) throws ApiExceptionCreate a prompt snippet (asynchronously) Create a new prompt snippet within the given project.- Parameters:
projectKey- (required)promptSnippetPost- Prompt snippet 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/agent-control/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/agent-control/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/agent-control/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
-
-