Skip to content

Commit fa788a4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add OpenAPI for LLM Observability dataset draft state and versions (#3569)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 2c1c409 commit fa788a4

20 files changed

Lines changed: 1371 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 439 additions & 0 deletions
Large diffs are not rendered by default.

docs/datadog_api_client.v2.model.rst

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18918,6 +18918,41 @@ datadog\_api\_client.v2.model.llm\_obs\_dataset\_data\_response module
1891818918
:members:
1891918919
:show-inheritance:
1892018920

18921+
datadog\_api\_client.v2.model.llm\_obs\_dataset\_draft\_state\_data module
18922+
--------------------------------------------------------------------------
18923+
18924+
.. automodule:: datadog_api_client.v2.model.llm_obs_dataset_draft_state_data
18925+
:members:
18926+
:show-inheritance:
18927+
18928+
datadog\_api\_client.v2.model.llm\_obs\_dataset\_draft\_state\_data\_attributes module
18929+
--------------------------------------------------------------------------------------
18930+
18931+
.. automodule:: datadog_api_client.v2.model.llm_obs_dataset_draft_state_data_attributes
18932+
:members:
18933+
:show-inheritance:
18934+
18935+
datadog\_api\_client.v2.model.llm\_obs\_dataset\_draft\_state\_response module
18936+
------------------------------------------------------------------------------
18937+
18938+
.. automodule:: datadog_api_client.v2.model.llm_obs_dataset_draft_state_response
18939+
:members:
18940+
:show-inheritance:
18941+
18942+
datadog\_api\_client.v2.model.llm\_obs\_dataset\_draft\_state\_type module
18943+
--------------------------------------------------------------------------
18944+
18945+
.. automodule:: datadog_api_client.v2.model.llm_obs_dataset_draft_state_type
18946+
:members:
18947+
:show-inheritance:
18948+
18949+
datadog\_api\_client.v2.model.llm\_obs\_dataset\_draft\_state\_user module
18950+
--------------------------------------------------------------------------
18951+
18952+
.. automodule:: datadog_api_client.v2.model.llm_obs_dataset_draft_state_user
18953+
:members:
18954+
:show-inheritance:
18955+
1892118956
datadog\_api\_client.v2.model.llm\_obs\_dataset\_record\_data\_response module
1892218957
------------------------------------------------------------------------------
1892318958

@@ -19044,6 +19079,34 @@ datadog\_api\_client.v2.model.llm\_obs\_dataset\_update\_request module
1904419079
:members:
1904519080
:show-inheritance:
1904619081

19082+
datadog\_api\_client.v2.model.llm\_obs\_dataset\_version\_data module
19083+
---------------------------------------------------------------------
19084+
19085+
.. automodule:: datadog_api_client.v2.model.llm_obs_dataset_version_data
19086+
:members:
19087+
:show-inheritance:
19088+
19089+
datadog\_api\_client.v2.model.llm\_obs\_dataset\_version\_data\_attributes module
19090+
---------------------------------------------------------------------------------
19091+
19092+
.. automodule:: datadog_api_client.v2.model.llm_obs_dataset_version_data_attributes
19093+
:members:
19094+
:show-inheritance:
19095+
19096+
datadog\_api\_client.v2.model.llm\_obs\_dataset\_version\_type module
19097+
---------------------------------------------------------------------
19098+
19099+
.. automodule:: datadog_api_client.v2.model.llm_obs_dataset_version_type
19100+
:members:
19101+
:show-inheritance:
19102+
19103+
datadog\_api\_client.v2.model.llm\_obs\_dataset\_versions\_response module
19104+
--------------------------------------------------------------------------
19105+
19106+
.. automodule:: datadog_api_client.v2.model.llm_obs_dataset_versions_response
19107+
:members:
19108+
:show-inheritance:
19109+
1904719110
datadog\_api\_client.v2.model.llm\_obs\_datasets\_response module
1904819111
-----------------------------------------------------------------
1904919112

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
Get LLM Observability dataset draft state returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.llm_observability_api import LLMObservabilityApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["get_llm_obs_dataset_draft_state"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = LLMObservabilityApi(api_client)
12+
response = api_instance.get_llm_obs_dataset_draft_state(
13+
project_id="project_id",
14+
dataset_id="dataset_id",
15+
)
16+
17+
print(response)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
List LLM Observability dataset versions returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.llm_observability_api import LLMObservabilityApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["list_llm_obs_dataset_versions"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = LLMObservabilityApi(api_client)
12+
response = api_instance.list_llm_obs_dataset_versions(
13+
project_id="project_id",
14+
dataset_id="dataset_id",
15+
)
16+
17+
print(response)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
Lock LLM Observability dataset draft state returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.llm_observability_api import LLMObservabilityApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["lock_llm_obs_dataset_draft_state"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = LLMObservabilityApi(api_client)
12+
response = api_instance.lock_llm_obs_dataset_draft_state(
13+
project_id="project_id",
14+
dataset_id="dataset_id",
15+
)
16+
17+
print(response)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Unlock LLM Observability dataset draft state returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.llm_observability_api import LLMObservabilityApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["unlock_llm_obs_dataset_draft_state"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = LLMObservabilityApi(api_client)
12+
api_instance.unlock_llm_obs_dataset_draft_state(
13+
project_id="project_id",
14+
dataset_id="dataset_id",
15+
)

src/datadog_api_client/configuration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,18 +286,22 @@ def __init__(
286286
"v2.get_llm_obs_annotated_interactions_by_trace_i_ds": False,
287287
"v2.get_llm_obs_annotation_queue_label_schema": False,
288288
"v2.get_llm_obs_custom_eval_config": False,
289+
"v2.get_llm_obs_dataset_draft_state": False,
289290
"v2.list_llm_obs_annotation_queues": False,
290291
"v2.list_llm_obs_dataset_records": False,
291292
"v2.list_llm_obs_datasets": False,
293+
"v2.list_llm_obs_dataset_versions": False,
292294
"v2.list_llm_obs_experiment_events": False,
293295
"v2.list_llm_obs_experiments": False,
294296
"v2.list_llm_obs_integration_accounts": False,
295297
"v2.list_llm_obs_integration_models": False,
296298
"v2.list_llm_obs_projects": False,
297299
"v2.list_llm_obs_spans": False,
300+
"v2.lock_llm_obs_dataset_draft_state": False,
298301
"v2.search_llm_obs_experimentation": False,
299302
"v2.search_llm_obs_spans": False,
300303
"v2.simple_search_llm_obs_experimentation": False,
304+
"v2.unlock_llm_obs_dataset_draft_state": False,
301305
"v2.update_llm_obs_annotation_queue": False,
302306
"v2.update_llm_obs_annotation_queue_label_schema": False,
303307
"v2.update_llm_obs_custom_eval_config": False,

0 commit comments

Comments
 (0)