Skip to content

Commit 21d932d

Browse files
author
LaunchDarklyReleaseBot
committed
Version 20.0.0 automatically generated from ld-openapi.
1 parent 0e5943d commit 21d932d

19 files changed

+2164
-724
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ docs/ActionOutput.md
4747
docs/AgentGraph.md
4848
docs/AgentGraphEdge.md
4949
docs/AgentGraphEdgePost.md
50+
docs/AgentGraphPatch.md
5051
docs/AgentGraphPost.md
5152
docs/AgentGraphs.md
5253
docs/AiConfigsAccess.md
@@ -722,6 +723,7 @@ launchdarkly_api/models/action_output.py
722723
launchdarkly_api/models/agent_graph.py
723724
launchdarkly_api/models/agent_graph_edge.py
724725
launchdarkly_api/models/agent_graph_edge_post.py
726+
launchdarkly_api/models/agent_graph_patch.py
725727
launchdarkly_api/models/agent_graph_post.py
726728
launchdarkly_api/models/agent_graphs.py
727729
launchdarkly_api/models/ai_config.py
@@ -1322,6 +1324,7 @@ test/test_action_output.py
13221324
test/test_agent_graph.py
13231325
test/test_agent_graph_edge.py
13241326
test/test_agent_graph_edge_post.py
1327+
test/test_agent_graph_patch.py
13251328
test/test_agent_graph_post.py
13261329
test/test_agent_graphs.py
13271330
test/test_ai_config.py

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,14 +522,14 @@ with launchdarkly_api.ApiClient(configuration) as api_client:
522522
# Create an instance of the API class
523523
api_instance = launchdarkly_api.AIConfigsBetaApi(api_client)
524524
ld_api_version = 'ld_api_version_example' # str | Version of the endpoint.
525-
project_key = 'default' # str |
526-
config_key = 'config_key_example' # str |
525+
project_key = 'project_key_example' # str |
526+
graph_key = 'graph_key_example' # str |
527527

528528
try:
529-
# Delete AI Config
530-
api_instance.delete_ai_config(ld_api_version, project_key, config_key)
529+
# Delete agent graph
530+
api_instance.delete_agent_graph(ld_api_version, project_key, graph_key)
531531
except ApiException as e:
532-
print("Exception when calling AIConfigsBetaApi->delete_ai_config: %s\n" % e)
532+
print("Exception when calling AIConfigsBetaApi->delete_agent_graph: %s\n" % e)
533533

534534
```
535535

@@ -539,11 +539,13 @@ All URIs are relative to *https://app.launchdarkly.com*
539539

540540
Class | Method | HTTP request | Description
541541
------------ | ------------- | ------------- | -------------
542+
*AIConfigsBetaApi* | [**delete_agent_graph**](docs/AIConfigsBetaApi.md#delete_agent_graph) | **DELETE** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Delete agent graph
542543
*AIConfigsBetaApi* | [**delete_ai_config**](docs/AIConfigsBetaApi.md#delete_ai_config) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Delete AI Config
543544
*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
544545
*AIConfigsBetaApi* | [**delete_ai_tool**](docs/AIConfigsBetaApi.md#delete_ai_tool) | **DELETE** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Delete AI tool
545546
*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
546547
*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
548+
*AIConfigsBetaApi* | [**get_agent_graph**](docs/AIConfigsBetaApi.md#get_agent_graph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph
547549
*AIConfigsBetaApi* | [**get_ai_config**](docs/AIConfigsBetaApi.md#get_ai_config) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config
548550
*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
549551
*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
@@ -556,6 +558,7 @@ Class | Method | HTTP request | Description
556558
*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
557559
*AIConfigsBetaApi* | [**list_ai_tools**](docs/AIConfigsBetaApi.md#list_ai_tools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools
558560
*AIConfigsBetaApi* | [**list_model_configs**](docs/AIConfigsBetaApi.md#list_model_configs) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs | List AI model configs
561+
*AIConfigsBetaApi* | [**patch_agent_graph**](docs/AIConfigsBetaApi.md#patch_agent_graph) | **PATCH** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Update agent graph
559562
*AIConfigsBetaApi* | [**patch_ai_config**](docs/AIConfigsBetaApi.md#patch_ai_config) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Update AI Config
560563
*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
561564
*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
@@ -924,6 +927,7 @@ Class | Method | HTTP request | Description
924927
- [AgentGraph](docs/AgentGraph.md)
925928
- [AgentGraphEdge](docs/AgentGraphEdge.md)
926929
- [AgentGraphEdgePost](docs/AgentGraphEdgePost.md)
930+
- [AgentGraphPatch](docs/AgentGraphPatch.md)
927931
- [AgentGraphPost](docs/AgentGraphPost.md)
928932
- [AgentGraphs](docs/AgentGraphs.md)
929933
- [AiConfigsAccess](docs/AiConfigsAccess.md)

docs/AIConfigsBetaApi.md

Lines changed: 269 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 @@ Method | HTTP request | Description
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,90 @@ Method | HTTP request | Description
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+
> delete_agent_graph(ld_api_version, project_key, graph_key)
41+
42+
Delete agent graph
43+
44+
Delete an existing agent graph and all of its edges.
45+
46+
### Example
47+
48+
* Api Key Authentication (ApiKey):
49+
50+
```python
51+
import launchdarkly_api
52+
from launchdarkly_api.rest import ApiException
53+
from pprint import pprint
54+
55+
# Defining the host is optional and defaults to https://app.launchdarkly.com
56+
# See configuration.py for a list of all supported configuration parameters.
57+
configuration = launchdarkly_api.Configuration(
58+
host = "https://app.launchdarkly.com"
59+
)
60+
61+
# The client must configure the authentication and authorization parameters
62+
# in accordance with the API server security policy.
63+
# Examples for each auth method are provided below, use the example that
64+
# satisfies your auth use case.
65+
66+
# Configure API key authorization: ApiKey
67+
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
68+
69+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
70+
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
71+
72+
# Enter a context with an instance of the API client
73+
with launchdarkly_api.ApiClient(configuration) as api_client:
74+
# Create an instance of the API class
75+
api_instance = launchdarkly_api.AIConfigsBetaApi(api_client)
76+
ld_api_version = 'ld_api_version_example' # str | Version of the endpoint.
77+
project_key = 'project_key_example' # str |
78+
graph_key = 'graph_key_example' # str |
79+
80+
try:
81+
# Delete agent graph
82+
api_instance.delete_agent_graph(ld_api_version, project_key, graph_key)
83+
except Exception as e:
84+
print("Exception when calling AIConfigsBetaApi->delete_agent_graph: %s\n" % e)
85+
```
86+
87+
88+
89+
### Parameters
90+
91+
92+
Name | Type | Description | Notes
93+
------------- | ------------- | ------------- | -------------
94+
**ld_api_version** | **str**| Version of the endpoint. |
95+
**project_key** | **str**| |
96+
**graph_key** | **str**| |
97+
98+
### Return type
99+
100+
void (empty response body)
101+
102+
### Authorization
103+
104+
[ApiKey](../README.md#ApiKey)
105+
106+
### HTTP request headers
107+
108+
- **Content-Type**: Not defined
109+
- **Accept**: application/json
110+
111+
### HTTP response details
112+
113+
| Status code | Description | Response headers |
114+
|-------------|-------------|------------------|
115+
**204** | No content | - |
116+
**400** | Bad request | - |
117+
**403** | Forbidden | - |
118+
**404** | Not found | - |
119+
**500** | Internal server error | - |
120+
121+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
122+
36123
# **delete_ai_config**
37124
> delete_ai_config(ld_api_version, project_key, config_key)
38125
@@ -456,6 +543,93 @@ void (empty response body)
456543

457544
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
458545

546+
# **get_agent_graph**
547+
> AgentGraph get_agent_graph(ld_api_version, project_key, graph_key)
548+
549+
Get agent graph
550+
551+
Retrieve a specific agent graph by its key, including its edges.
552+
553+
### Example
554+
555+
* Api Key Authentication (ApiKey):
556+
557+
```python
558+
import launchdarkly_api
559+
from launchdarkly_api.models.agent_graph import AgentGraph
560+
from launchdarkly_api.rest import ApiException
561+
from pprint import pprint
562+
563+
# Defining the host is optional and defaults to https://app.launchdarkly.com
564+
# See configuration.py for a list of all supported configuration parameters.
565+
configuration = launchdarkly_api.Configuration(
566+
host = "https://app.launchdarkly.com"
567+
)
568+
569+
# The client must configure the authentication and authorization parameters
570+
# in accordance with the API server security policy.
571+
# Examples for each auth method are provided below, use the example that
572+
# satisfies your auth use case.
573+
574+
# Configure API key authorization: ApiKey
575+
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
576+
577+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
578+
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
579+
580+
# Enter a context with an instance of the API client
581+
with launchdarkly_api.ApiClient(configuration) as api_client:
582+
# Create an instance of the API class
583+
api_instance = launchdarkly_api.AIConfigsBetaApi(api_client)
584+
ld_api_version = 'ld_api_version_example' # str | Version of the endpoint.
585+
project_key = 'project_key_example' # str |
586+
graph_key = 'graph_key_example' # str |
587+
588+
try:
589+
# Get agent graph
590+
api_response = api_instance.get_agent_graph(ld_api_version, project_key, graph_key)
591+
print("The response of AIConfigsBetaApi->get_agent_graph:\n")
592+
pprint(api_response)
593+
except Exception as e:
594+
print("Exception when calling AIConfigsBetaApi->get_agent_graph: %s\n" % e)
595+
```
596+
597+
598+
599+
### Parameters
600+
601+
602+
Name | Type | Description | Notes
603+
------------- | ------------- | ------------- | -------------
604+
**ld_api_version** | **str**| Version of the endpoint. |
605+
**project_key** | **str**| |
606+
**graph_key** | **str**| |
607+
608+
### Return type
609+
610+
[**AgentGraph**](AgentGraph.md)
611+
612+
### Authorization
613+
614+
[ApiKey](../README.md#ApiKey)
615+
616+
### HTTP request headers
617+
618+
- **Content-Type**: Not defined
619+
- **Accept**: application/json
620+
621+
### HTTP response details
622+
623+
| Status code | Description | Response headers |
624+
|-------------|-------------|------------------|
625+
**200** | Agent graph found | - |
626+
**400** | Bad request | - |
627+
**403** | Forbidden | - |
628+
**404** | Not found | - |
629+
**500** | Internal server error | - |
630+
631+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
632+
459633
# **get_ai_config**
460634
> AIConfig get_ai_config(ld_api_version, project_key, config_key)
461635
@@ -1530,6 +1704,101 @@ Name | Type | Description | Notes
15301704

15311705
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
15321706

1707+
# **patch_agent_graph**
1708+
> AgentGraph patch_agent_graph(ld_api_version, project_key, graph_key, agent_graph_patch=agent_graph_patch)
1709+
1710+
Update agent graph
1711+
1712+
Edit an existing agent graph.
1713+
1714+
The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields.
1715+
1716+
If the update includes `rootConfigKey` or `edges`, both must be present and will be treated as full replacements.
1717+
1718+
1719+
### Example
1720+
1721+
* Api Key Authentication (ApiKey):
1722+
1723+
```python
1724+
import launchdarkly_api
1725+
from launchdarkly_api.models.agent_graph import AgentGraph
1726+
from launchdarkly_api.models.agent_graph_patch import AgentGraphPatch
1727+
from launchdarkly_api.rest import ApiException
1728+
from pprint import pprint
1729+
1730+
# Defining the host is optional and defaults to https://app.launchdarkly.com
1731+
# See configuration.py for a list of all supported configuration parameters.
1732+
configuration = launchdarkly_api.Configuration(
1733+
host = "https://app.launchdarkly.com"
1734+
)
1735+
1736+
# The client must configure the authentication and authorization parameters
1737+
# in accordance with the API server security policy.
1738+
# Examples for each auth method are provided below, use the example that
1739+
# satisfies your auth use case.
1740+
1741+
# Configure API key authorization: ApiKey
1742+
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
1743+
1744+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
1745+
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
1746+
1747+
# Enter a context with an instance of the API client
1748+
with launchdarkly_api.ApiClient(configuration) as api_client:
1749+
# Create an instance of the API class
1750+
api_instance = launchdarkly_api.AIConfigsBetaApi(api_client)
1751+
ld_api_version = 'ld_api_version_example' # str | Version of the endpoint.
1752+
project_key = 'project_key_example' # str |
1753+
graph_key = 'graph_key_example' # str |
1754+
agent_graph_patch = launchdarkly_api.AgentGraphPatch() # AgentGraphPatch | Agent graph object to update (optional)
1755+
1756+
try:
1757+
# Update agent graph
1758+
api_response = api_instance.patch_agent_graph(ld_api_version, project_key, graph_key, agent_graph_patch=agent_graph_patch)
1759+
print("The response of AIConfigsBetaApi->patch_agent_graph:\n")
1760+
pprint(api_response)
1761+
except Exception as e:
1762+
print("Exception when calling AIConfigsBetaApi->patch_agent_graph: %s\n" % e)
1763+
```
1764+
1765+
1766+
1767+
### Parameters
1768+
1769+
1770+
Name | Type | Description | Notes
1771+
------------- | ------------- | ------------- | -------------
1772+
**ld_api_version** | **str**| Version of the endpoint. |
1773+
**project_key** | **str**| |
1774+
**graph_key** | **str**| |
1775+
**agent_graph_patch** | [**AgentGraphPatch**](AgentGraphPatch.md)| Agent graph object to update | [optional]
1776+
1777+
### Return type
1778+
1779+
[**AgentGraph**](AgentGraph.md)
1780+
1781+
### Authorization
1782+
1783+
[ApiKey](../README.md#ApiKey)
1784+
1785+
### HTTP request headers
1786+
1787+
- **Content-Type**: application/json
1788+
- **Accept**: application/json
1789+
1790+
### HTTP response details
1791+
1792+
| Status code | Description | Response headers |
1793+
|-------------|-------------|------------------|
1794+
**200** | Agent graph updated | - |
1795+
**400** | Bad request | - |
1796+
**403** | Forbidden | - |
1797+
**404** | Not found | - |
1798+
**500** | Internal server error | - |
1799+
1800+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1801+
15331802
# **patch_ai_config**
15341803
> AIConfig patch_ai_config(ld_api_version, project_key, config_key, ai_config_patch=ai_config_patch)
15351804

docs/AgentGraphEdge.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ An edge in an agent graph connecting two AI Configs
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9+
**key** | **str** | A unique key for this edge within the graph |
910
**source_config** | **str** | The AI Config key that is the source of this edge |
1011
**target_config** | **str** | The AI Config key that is the target of this edge |
1112
**handoff** | **object** | The handoff options from the source AI Config to the target AI Config | [optional]

docs/AgentGraphEdgePost.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ An edge in an agent graph connecting two AI Configs
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9+
**key** | **str** | A unique key for this edge within the graph |
910
**source_config** | **str** | The AI Config key that is the source of this edge |
1011
**target_config** | **str** | The AI Config key that is the target of this edge |
1112
**handoff** | **object** | The handoff options from the source AI Config to the target AI Config | [optional]

0 commit comments

Comments
 (0)