You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*LaunchDarklyApi.AIConfigsBetaApi* | [**deleteModelConfig**](docs/AIConfigsBetaApi.md#deleteModelConfig) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Delete an AI model config
580
581
*LaunchDarklyApi.AIConfigsBetaApi* | [**deleteRestrictedModels**](docs/AIConfigsBetaApi.md#deleteRestrictedModels) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Remove AI models from the restricted list
581
582
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAIConfig**](docs/AIConfigsBetaApi.md#getAIConfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAIConfigVariation**](docs/AIConfigsBetaApi.md#getAIConfigVariation) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Get AI Config variation
586
587
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAIConfigs**](docs/AIConfigsBetaApi.md#getAIConfigs) | **GET** /api/v2/projects/{projectKey}/ai-configs | List AI Configs
587
588
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAITool**](docs/AIConfigsBetaApi.md#getAITool) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Get AI tool
589
+
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAgentGraph**](docs/AIConfigsBetaApi.md#getAgentGraph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph
588
590
*LaunchDarklyApi.AIConfigsBetaApi* | [**getModelConfig**](docs/AIConfigsBetaApi.md#getModelConfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Get AI model config
589
591
*LaunchDarklyApi.AIConfigsBetaApi* | [**listAIToolVersions**](docs/AIConfigsBetaApi.md#listAIToolVersions) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey}/versions | List AI tool versions
590
592
*LaunchDarklyApi.AIConfigsBetaApi* | [**listAITools**](docs/AIConfigsBetaApi.md#listAITools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools
[**deleteModelConfig**](AIConfigsBetaApi.md#deleteModelConfig) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Delete an AI model config
11
12
[**deleteRestrictedModels**](AIConfigsBetaApi.md#deleteRestrictedModels) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Remove AI models from the restricted list
12
13
[**getAIConfig**](AIConfigsBetaApi.md#getAIConfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config
[**getAIConfigVariation**](AIConfigsBetaApi.md#getAIConfigVariation) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Get AI Config variation
17
18
[**getAIConfigs**](AIConfigsBetaApi.md#getAIConfigs) | **GET** /api/v2/projects/{projectKey}/ai-configs | List AI Configs
18
19
[**getAITool**](AIConfigsBetaApi.md#getAITool) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Get AI tool
20
+
[**getAgentGraph**](AIConfigsBetaApi.md#getAgentGraph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph
19
21
[**getModelConfig**](AIConfigsBetaApi.md#getModelConfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Get AI model config
20
22
[**listAIToolVersions**](AIConfigsBetaApi.md#listAIToolVersions) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey}/versions | List AI tool versions
21
23
[**listAITools**](AIConfigsBetaApi.md#listAITools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools
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.
1376
+
1377
+
### Example
1378
+
1379
+
```javascript
1380
+
importLaunchDarklyApifrom'launchdarkly-api';
1381
+
let defaultClient =LaunchDarklyApi.ApiClient.instance;
1382
+
// Configure API key authorization: ApiKey
1383
+
let ApiKey =defaultClient.authentications['ApiKey'];
1384
+
ApiKey.apiKey='YOUR API KEY';
1385
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
1386
+
//ApiKey.apiKeyPrefix = 'Token';
1387
+
1388
+
let apiInstance =newLaunchDarklyApi.AIConfigsBetaApi();
1389
+
let lDAPIVersion ="lDAPIVersion_example"; // String | Version of the endpoint.
1390
+
let projectKey ="projectKey_example"; // String |
1391
+
let graphKey ="graphKey_example"; // String |
1392
+
let opts = {
1393
+
'agentGraphPatch':newLaunchDarklyApi.AgentGraphPatch() // AgentGraphPatch | Agent graph object to update
**name** | **String** | A human-readable name for the agent graph | [optional]
8
+
**description** | **String** | A description of the agent graph | [optional]
9
+
**rootConfigKey** | **String** | The AI Config key of the root node. If present, edges must also be present. | [optional]
10
+
**edges** | [**[AgentGraphEdge]**](AgentGraphEdge.md) | The edges in the graph. If present, rootConfigKey must also be present. Replaces all existing edges. | [optional]
0 commit comments