Skip to content

Commit 8a331a4

Browse files
author
LaunchDarklyReleaseBot
committed
Version 20.0.0 automatically generated from ld-openapi.
1 parent 0fa34ea commit 8a331a4

15 files changed

+941
-7
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ docs/ActionOutput.md
5050
docs/AgentGraph.md
5151
docs/AgentGraphEdge.md
5252
docs/AgentGraphEdgePost.md
53+
docs/AgentGraphPatch.md
5354
docs/AgentGraphPost.md
5455
docs/AgentGraphs.md
5556
docs/AiConfigsAccess.md
@@ -723,6 +724,7 @@ lib/launchdarkly_api/models/action_output.rb
723724
lib/launchdarkly_api/models/agent_graph.rb
724725
lib/launchdarkly_api/models/agent_graph_edge.rb
725726
lib/launchdarkly_api/models/agent_graph_edge_post.rb
727+
lib/launchdarkly_api/models/agent_graph_patch.rb
726728
lib/launchdarkly_api/models/agent_graph_post.rb
727729
lib/launchdarkly_api/models/agent_graphs.rb
728730
lib/launchdarkly_api/models/ai_config.rb
@@ -1367,6 +1369,7 @@ spec/models/action_input_spec.rb
13671369
spec/models/action_output_spec.rb
13681370
spec/models/agent_graph_edge_post_spec.rb
13691371
spec/models/agent_graph_edge_spec.rb
1372+
spec/models/agent_graph_patch_spec.rb
13701373
spec/models/agent_graph_post_spec.rb
13711374
spec/models/agent_graph_spec.rb
13721375
spec/models/agent_graphs_spec.rb

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -511,14 +511,14 @@ end
511511

512512
api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
513513
ld_api_version = 'beta' # String | Version of the endpoint.
514-
project_key = 'default' # String |
515-
config_key = 'config_key_example' # String |
514+
project_key = 'project_key_example' # String |
515+
graph_key = 'graph_key_example' # String |
516516

517517
begin
518-
#Delete AI Config
519-
api_instance.delete_ai_config(ld_api_version, project_key, config_key)
518+
#Delete agent graph
519+
api_instance.delete_agent_graph(ld_api_version, project_key, graph_key)
520520
rescue LaunchDarklyApi::ApiError => e
521-
puts "Exception when calling AIConfigsBetaApi->delete_ai_config: #{e}"
521+
puts "Exception when calling AIConfigsBetaApi->delete_agent_graph: #{e}"
522522
end
523523

524524
```
@@ -529,11 +529,13 @@ All URIs are relative to *https://app.launchdarkly.com*
529529

530530
Class | Method | HTTP request | Description
531531
------------ | ------------- | ------------- | -------------
532+
*LaunchDarklyApi::AIConfigsBetaApi* | [**delete_agent_graph**](docs/AIConfigsBetaApi.md#delete_agent_graph) | **DELETE** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Delete agent graph
532533
*LaunchDarklyApi::AIConfigsBetaApi* | [**delete_ai_config**](docs/AIConfigsBetaApi.md#delete_ai_config) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Delete AI Config
533534
*LaunchDarklyApi::AIConfigsBetaApi* | [**delete_ai_config_variation**](docs/AIConfigsBetaApi.md#delete_ai_config_variation) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Delete AI Config variation
534535
*LaunchDarklyApi::AIConfigsBetaApi* | [**delete_ai_tool**](docs/AIConfigsBetaApi.md#delete_ai_tool) | **DELETE** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Delete AI tool
535536
*LaunchDarklyApi::AIConfigsBetaApi* | [**delete_model_config**](docs/AIConfigsBetaApi.md#delete_model_config) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Delete an AI model config
536537
*LaunchDarklyApi::AIConfigsBetaApi* | [**delete_restricted_models**](docs/AIConfigsBetaApi.md#delete_restricted_models) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Remove AI models from the restricted list
538+
*LaunchDarklyApi::AIConfigsBetaApi* | [**get_agent_graph**](docs/AIConfigsBetaApi.md#get_agent_graph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph
537539
*LaunchDarklyApi::AIConfigsBetaApi* | [**get_ai_config**](docs/AIConfigsBetaApi.md#get_ai_config) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config
538540
*LaunchDarklyApi::AIConfigsBetaApi* | [**get_ai_config_metrics**](docs/AIConfigsBetaApi.md#get_ai_config_metrics) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics | Get AI Config metrics
539541
*LaunchDarklyApi::AIConfigsBetaApi* | [**get_ai_config_metrics_by_variation**](docs/AIConfigsBetaApi.md#get_ai_config_metrics_by_variation) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics-by-variation | Get AI Config metrics by variation
@@ -546,6 +548,7 @@ Class | Method | HTTP request | Description
546548
*LaunchDarklyApi::AIConfigsBetaApi* | [**list_ai_tool_versions**](docs/AIConfigsBetaApi.md#list_ai_tool_versions) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey}/versions | List AI tool versions
547549
*LaunchDarklyApi::AIConfigsBetaApi* | [**list_ai_tools**](docs/AIConfigsBetaApi.md#list_ai_tools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools
548550
*LaunchDarklyApi::AIConfigsBetaApi* | [**list_model_configs**](docs/AIConfigsBetaApi.md#list_model_configs) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs | List AI model configs
551+
*LaunchDarklyApi::AIConfigsBetaApi* | [**patch_agent_graph**](docs/AIConfigsBetaApi.md#patch_agent_graph) | **PATCH** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Update agent graph
549552
*LaunchDarklyApi::AIConfigsBetaApi* | [**patch_ai_config**](docs/AIConfigsBetaApi.md#patch_ai_config) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Update AI Config
550553
*LaunchDarklyApi::AIConfigsBetaApi* | [**patch_ai_config_targeting**](docs/AIConfigsBetaApi.md#patch_ai_config_targeting) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting | Update AI Config targeting
551554
*LaunchDarklyApi::AIConfigsBetaApi* | [**patch_ai_config_variation**](docs/AIConfigsBetaApi.md#patch_ai_config_variation) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Update AI Config variation
@@ -914,6 +917,7 @@ Class | Method | HTTP request | Description
914917
- [LaunchDarklyApi::AgentGraph](docs/AgentGraph.md)
915918
- [LaunchDarklyApi::AgentGraphEdge](docs/AgentGraphEdge.md)
916919
- [LaunchDarklyApi::AgentGraphEdgePost](docs/AgentGraphEdgePost.md)
920+
- [LaunchDarklyApi::AgentGraphPatch](docs/AgentGraphPatch.md)
917921
- [LaunchDarklyApi::AgentGraphPost](docs/AgentGraphPost.md)
918922
- [LaunchDarklyApi::AgentGraphs](docs/AgentGraphs.md)
919923
- [LaunchDarklyApi::AiConfigsAccess](docs/AiConfigsAccess.md)

docs/AIConfigsBetaApi.md

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ All URIs are relative to *https://app.launchdarkly.com*
44

55
| Method | HTTP request | Description |
66
| ------ | ------------ | ----------- |
7+
| [**delete_agent_graph**](AIConfigsBetaApi.md#delete_agent_graph) | **DELETE** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Delete agent graph |
78
| [**delete_ai_config**](AIConfigsBetaApi.md#delete_ai_config) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Delete AI Config |
89
| [**delete_ai_config_variation**](AIConfigsBetaApi.md#delete_ai_config_variation) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Delete AI Config variation |
910
| [**delete_ai_tool**](AIConfigsBetaApi.md#delete_ai_tool) | **DELETE** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Delete AI tool |
1011
| [**delete_model_config**](AIConfigsBetaApi.md#delete_model_config) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Delete an AI model config |
1112
| [**delete_restricted_models**](AIConfigsBetaApi.md#delete_restricted_models) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Remove AI models from the restricted list |
13+
| [**get_agent_graph**](AIConfigsBetaApi.md#get_agent_graph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph |
1214
| [**get_ai_config**](AIConfigsBetaApi.md#get_ai_config) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config |
1315
| [**get_ai_config_metrics**](AIConfigsBetaApi.md#get_ai_config_metrics) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics | Get AI Config metrics |
1416
| [**get_ai_config_metrics_by_variation**](AIConfigsBetaApi.md#get_ai_config_metrics_by_variation) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics-by-variation | Get AI Config metrics by variation |
@@ -21,6 +23,7 @@ All URIs are relative to *https://app.launchdarkly.com*
2123
| [**list_ai_tool_versions**](AIConfigsBetaApi.md#list_ai_tool_versions) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey}/versions | List AI tool versions |
2224
| [**list_ai_tools**](AIConfigsBetaApi.md#list_ai_tools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools |
2325
| [**list_model_configs**](AIConfigsBetaApi.md#list_model_configs) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs | List AI model configs |
26+
| [**patch_agent_graph**](AIConfigsBetaApi.md#patch_agent_graph) | **PATCH** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Update agent graph |
2427
| [**patch_ai_config**](AIConfigsBetaApi.md#patch_ai_config) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Update AI Config |
2528
| [**patch_ai_config_targeting**](AIConfigsBetaApi.md#patch_ai_config_targeting) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting | Update AI Config targeting |
2629
| [**patch_ai_config_variation**](AIConfigsBetaApi.md#patch_ai_config_variation) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Update AI Config variation |
@@ -33,6 +36,80 @@ All URIs are relative to *https://app.launchdarkly.com*
3336
| [**post_restricted_models**](AIConfigsBetaApi.md#post_restricted_models) | **POST** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Add AI models to the restricted list |
3437

3538

39+
## delete_agent_graph
40+
41+
> delete_agent_graph(ld_api_version, project_key, graph_key)
42+
43+
Delete agent graph
44+
45+
Delete an existing agent graph and all of its edges.
46+
47+
### Examples
48+
49+
```ruby
50+
require 'time'
51+
require 'launchdarkly_api'
52+
# setup authorization
53+
LaunchDarklyApi.configure do |config|
54+
# Configure API key authorization: ApiKey
55+
config.api_key['Authorization'] = 'YOUR API KEY'
56+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
57+
# config.api_key_prefix['Authorization'] = 'Bearer'
58+
end
59+
60+
api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
61+
ld_api_version = 'beta' # String | Version of the endpoint.
62+
project_key = 'project_key_example' # String |
63+
graph_key = 'graph_key_example' # String |
64+
65+
begin
66+
# Delete agent graph
67+
api_instance.delete_agent_graph(ld_api_version, project_key, graph_key)
68+
rescue LaunchDarklyApi::ApiError => e
69+
puts "Error when calling AIConfigsBetaApi->delete_agent_graph: #{e}"
70+
end
71+
```
72+
73+
#### Using the delete_agent_graph_with_http_info variant
74+
75+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
76+
77+
> <Array(nil, Integer, Hash)> delete_agent_graph_with_http_info(ld_api_version, project_key, graph_key)
78+
79+
```ruby
80+
begin
81+
# Delete agent graph
82+
data, status_code, headers = api_instance.delete_agent_graph_with_http_info(ld_api_version, project_key, graph_key)
83+
p status_code # => 2xx
84+
p headers # => { ... }
85+
p data # => nil
86+
rescue LaunchDarklyApi::ApiError => e
87+
puts "Error when calling AIConfigsBetaApi->delete_agent_graph_with_http_info: #{e}"
88+
end
89+
```
90+
91+
### Parameters
92+
93+
| Name | Type | Description | Notes |
94+
| ---- | ---- | ----------- | ----- |
95+
| **ld_api_version** | **String** | Version of the endpoint. | |
96+
| **project_key** | **String** | | |
97+
| **graph_key** | **String** | | |
98+
99+
### Return type
100+
101+
nil (empty response body)
102+
103+
### Authorization
104+
105+
[ApiKey](../README.md#ApiKey)
106+
107+
### HTTP request headers
108+
109+
- **Content-Type**: Not defined
110+
- **Accept**: application/json
111+
112+
36113
## delete_ai_config
37114

38115
> delete_ai_config(ld_api_version, project_key, config_key)
@@ -405,6 +482,81 @@ nil (empty response body)
405482
- **Accept**: application/json
406483

407484

485+
## get_agent_graph
486+
487+
> <AgentGraph> get_agent_graph(ld_api_version, project_key, graph_key)
488+
489+
Get agent graph
490+
491+
Retrieve a specific agent graph by its key, including its edges.
492+
493+
### Examples
494+
495+
```ruby
496+
require 'time'
497+
require 'launchdarkly_api'
498+
# setup authorization
499+
LaunchDarklyApi.configure do |config|
500+
# Configure API key authorization: ApiKey
501+
config.api_key['Authorization'] = 'YOUR API KEY'
502+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
503+
# config.api_key_prefix['Authorization'] = 'Bearer'
504+
end
505+
506+
api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
507+
ld_api_version = 'beta' # String | Version of the endpoint.
508+
project_key = 'project_key_example' # String |
509+
graph_key = 'graph_key_example' # String |
510+
511+
begin
512+
# Get agent graph
513+
result = api_instance.get_agent_graph(ld_api_version, project_key, graph_key)
514+
p result
515+
rescue LaunchDarklyApi::ApiError => e
516+
puts "Error when calling AIConfigsBetaApi->get_agent_graph: #{e}"
517+
end
518+
```
519+
520+
#### Using the get_agent_graph_with_http_info variant
521+
522+
This returns an Array which contains the response data, status code and headers.
523+
524+
> <Array(<AgentGraph>, Integer, Hash)> get_agent_graph_with_http_info(ld_api_version, project_key, graph_key)
525+
526+
```ruby
527+
begin
528+
# Get agent graph
529+
data, status_code, headers = api_instance.get_agent_graph_with_http_info(ld_api_version, project_key, graph_key)
530+
p status_code # => 2xx
531+
p headers # => { ... }
532+
p data # => <AgentGraph>
533+
rescue LaunchDarklyApi::ApiError => e
534+
puts "Error when calling AIConfigsBetaApi->get_agent_graph_with_http_info: #{e}"
535+
end
536+
```
537+
538+
### Parameters
539+
540+
| Name | Type | Description | Notes |
541+
| ---- | ---- | ----------- | ----- |
542+
| **ld_api_version** | **String** | Version of the endpoint. | |
543+
| **project_key** | **String** | | |
544+
| **graph_key** | **String** | | |
545+
546+
### Return type
547+
548+
[**AgentGraph**](AgentGraph.md)
549+
550+
### Authorization
551+
552+
[ApiKey](../README.md#ApiKey)
553+
554+
### HTTP request headers
555+
556+
- **Content-Type**: Not defined
557+
- **Accept**: application/json
558+
559+
408560
## get_ai_config
409561

410562
> <AIConfig> get_ai_config(ld_api_version, project_key, config_key)
@@ -1349,6 +1501,85 @@ end
13491501
- **Accept**: application/json
13501502

13511503

1504+
## patch_agent_graph
1505+
1506+
> <AgentGraph> patch_agent_graph(ld_api_version, project_key, graph_key, opts)
1507+
1508+
Update agent graph
1509+
1510+
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.
1511+
1512+
### Examples
1513+
1514+
```ruby
1515+
require 'time'
1516+
require 'launchdarkly_api'
1517+
# setup authorization
1518+
LaunchDarklyApi.configure do |config|
1519+
# Configure API key authorization: ApiKey
1520+
config.api_key['Authorization'] = 'YOUR API KEY'
1521+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1522+
# config.api_key_prefix['Authorization'] = 'Bearer'
1523+
end
1524+
1525+
api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
1526+
ld_api_version = 'beta' # String | Version of the endpoint.
1527+
project_key = 'project_key_example' # String |
1528+
graph_key = 'graph_key_example' # String |
1529+
opts = {
1530+
agent_graph_patch: LaunchDarklyApi::AgentGraphPatch.new # AgentGraphPatch | Agent graph object to update
1531+
}
1532+
1533+
begin
1534+
# Update agent graph
1535+
result = api_instance.patch_agent_graph(ld_api_version, project_key, graph_key, opts)
1536+
p result
1537+
rescue LaunchDarklyApi::ApiError => e
1538+
puts "Error when calling AIConfigsBetaApi->patch_agent_graph: #{e}"
1539+
end
1540+
```
1541+
1542+
#### Using the patch_agent_graph_with_http_info variant
1543+
1544+
This returns an Array which contains the response data, status code and headers.
1545+
1546+
> <Array(<AgentGraph>, Integer, Hash)> patch_agent_graph_with_http_info(ld_api_version, project_key, graph_key, opts)
1547+
1548+
```ruby
1549+
begin
1550+
# Update agent graph
1551+
data, status_code, headers = api_instance.patch_agent_graph_with_http_info(ld_api_version, project_key, graph_key, opts)
1552+
p status_code # => 2xx
1553+
p headers # => { ... }
1554+
p data # => <AgentGraph>
1555+
rescue LaunchDarklyApi::ApiError => e
1556+
puts "Error when calling AIConfigsBetaApi->patch_agent_graph_with_http_info: #{e}"
1557+
end
1558+
```
1559+
1560+
### Parameters
1561+
1562+
| Name | Type | Description | Notes |
1563+
| ---- | ---- | ----------- | ----- |
1564+
| **ld_api_version** | **String** | Version of the endpoint. | |
1565+
| **project_key** | **String** | | |
1566+
| **graph_key** | **String** | | |
1567+
| **agent_graph_patch** | [**AgentGraphPatch**](AgentGraphPatch.md) | Agent graph object to update | [optional] |
1568+
1569+
### Return type
1570+
1571+
[**AgentGraph**](AgentGraph.md)
1572+
1573+
### Authorization
1574+
1575+
[ApiKey](../README.md#ApiKey)
1576+
1577+
### HTTP request headers
1578+
1579+
- **Content-Type**: application/json
1580+
- **Accept**: application/json
1581+
1582+
13521583
## patch_ai_config
13531584

13541585
> <AIConfig> patch_ai_config(ld_api_version, project_key, config_key, opts)

docs/AgentGraphEdge.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7+
| **key** | **String** | A unique key for this edge within the graph | |
78
| **source_config** | **String** | The AI Config key that is the source of this edge | |
89
| **target_config** | **String** | The AI Config key that is the target of this edge | |
910
| **handoff** | **Object** | The handoff options from the source AI Config to the target AI Config | [optional] |
@@ -14,6 +15,7 @@
1415
require 'launchdarkly_api'
1516

1617
instance = LaunchDarklyApi::AgentGraphEdge.new(
18+
key: null,
1719
source_config: null,
1820
target_config: null,
1921
handoff: null

docs/AgentGraphEdgePost.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7+
| **key** | **String** | A unique key for this edge within the graph | |
78
| **source_config** | **String** | The AI Config key that is the source of this edge | |
89
| **target_config** | **String** | The AI Config key that is the target of this edge | |
910
| **handoff** | **Object** | The handoff options from the source AI Config to the target AI Config | [optional] |
@@ -14,6 +15,7 @@
1415
require 'launchdarkly_api'
1516

1617
instance = LaunchDarklyApi::AgentGraphEdgePost.new(
18+
key: null,
1719
source_config: null,
1820
target_config: null,
1921
handoff: null

0 commit comments

Comments
 (0)