Skip to content

Commit 117979c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit be636b2 of spec repo (#3618)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d765a5b commit 117979c

32 files changed

Lines changed: 2082 additions & 9 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 530 additions & 6 deletions
Large diffs are not rendered by default.

docs/datadog_api_client.v2.model.rst

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19779,13 +19779,55 @@ datadog\_api\_client.v2.model.llm\_obs\_annotated\_interactions\_type module
1977919779
:members:
1978019780
:show-inheritance:
1978119781

19782+
datadog\_api\_client.v2.model.llm\_obs\_annotation\_assessment module
19783+
---------------------------------------------------------------------
19784+
19785+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotation_assessment
19786+
:members:
19787+
:show-inheritance:
19788+
19789+
datadog\_api\_client.v2.model.llm\_obs\_annotation\_error module
19790+
----------------------------------------------------------------
19791+
19792+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotation_error
19793+
:members:
19794+
:show-inheritance:
19795+
1978219796
datadog\_api\_client.v2.model.llm\_obs\_annotation\_item module
1978319797
---------------------------------------------------------------
1978419798

1978519799
.. automodule:: datadog_api_client.v2.model.llm_obs_annotation_item
1978619800
:members:
1978719801
:show-inheritance:
1978819802

19803+
datadog\_api\_client.v2.model.llm\_obs\_annotation\_item\_response module
19804+
-------------------------------------------------------------------------
19805+
19806+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotation_item_response
19807+
:members:
19808+
:show-inheritance:
19809+
19810+
datadog\_api\_client.v2.model.llm\_obs\_annotation\_label\_value module
19811+
-----------------------------------------------------------------------
19812+
19813+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotation_label_value
19814+
:members:
19815+
:show-inheritance:
19816+
19817+
datadog\_api\_client.v2.model.llm\_obs\_annotation\_label\_value\_response module
19818+
---------------------------------------------------------------------------------
19819+
19820+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotation_label_value_response
19821+
:members:
19822+
:show-inheritance:
19823+
19824+
datadog\_api\_client.v2.model.llm\_obs\_annotation\_label\_value\_value module
19825+
------------------------------------------------------------------------------
19826+
19827+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotation_label_value_value
19828+
:members:
19829+
:show-inheritance:
19830+
1978919831
datadog\_api\_client.v2.model.llm\_obs\_annotation\_queue\_data\_attributes\_request module
1979019832
-------------------------------------------------------------------------------------------
1979119833

@@ -19975,6 +20017,55 @@ datadog\_api\_client.v2.model.llm\_obs\_annotation\_schema module
1997520017
:members:
1997620018
:show-inheritance:
1997720019

20020+
datadog\_api\_client.v2.model.llm\_obs\_annotations\_data\_attributes\_request module
20021+
-------------------------------------------------------------------------------------
20022+
20023+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotations_data_attributes_request
20024+
:members:
20025+
:show-inheritance:
20026+
20027+
datadog\_api\_client.v2.model.llm\_obs\_annotations\_data\_attributes\_response module
20028+
--------------------------------------------------------------------------------------
20029+
20030+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotations_data_attributes_response
20031+
:members:
20032+
:show-inheritance:
20033+
20034+
datadog\_api\_client.v2.model.llm\_obs\_annotations\_data\_request module
20035+
-------------------------------------------------------------------------
20036+
20037+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotations_data_request
20038+
:members:
20039+
:show-inheritance:
20040+
20041+
datadog\_api\_client.v2.model.llm\_obs\_annotations\_data\_response module
20042+
--------------------------------------------------------------------------
20043+
20044+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotations_data_response
20045+
:members:
20046+
:show-inheritance:
20047+
20048+
datadog\_api\_client.v2.model.llm\_obs\_annotations\_request module
20049+
-------------------------------------------------------------------
20050+
20051+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotations_request
20052+
:members:
20053+
:show-inheritance:
20054+
20055+
datadog\_api\_client.v2.model.llm\_obs\_annotations\_response module
20056+
--------------------------------------------------------------------
20057+
20058+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotations_response
20059+
:members:
20060+
:show-inheritance:
20061+
20062+
datadog\_api\_client.v2.model.llm\_obs\_annotations\_type module
20063+
----------------------------------------------------------------
20064+
20065+
.. automodule:: datadog_api_client.v2.model.llm_obs_annotations_type
20066+
:members:
20067+
:show-inheritance:
20068+
1997820069
datadog\_api\_client.v2.model.llm\_obs\_anthropic\_effort module
1997920070
----------------------------------------------------------------
1998020071

@@ -20605,6 +20696,13 @@ datadog\_api\_client.v2.model.llm\_obs\_datasets\_response module
2060520696
:members:
2060620697
:show-inheritance:
2060720698

20699+
datadog\_api\_client.v2.model.llm\_obs\_delete\_annotation\_error module
20700+
------------------------------------------------------------------------
20701+
20702+
.. automodule:: datadog_api_client.v2.model.llm_obs_delete_annotation_error
20703+
:members:
20704+
:show-inheritance:
20705+
2060820706
datadog\_api\_client.v2.model.llm\_obs\_delete\_annotation\_queue\_interactions\_data\_attributes\_request module
2060920707
-----------------------------------------------------------------------------------------------------------------
2061020708

@@ -20626,6 +20724,48 @@ datadog\_api\_client.v2.model.llm\_obs\_delete\_annotation\_queue\_interactions\
2062620724
:members:
2062720725
:show-inheritance:
2062820726

20727+
datadog\_api\_client.v2.model.llm\_obs\_delete\_annotations\_data\_attributes\_request module
20728+
---------------------------------------------------------------------------------------------
20729+
20730+
.. automodule:: datadog_api_client.v2.model.llm_obs_delete_annotations_data_attributes_request
20731+
:members:
20732+
:show-inheritance:
20733+
20734+
datadog\_api\_client.v2.model.llm\_obs\_delete\_annotations\_data\_attributes\_response module
20735+
----------------------------------------------------------------------------------------------
20736+
20737+
.. automodule:: datadog_api_client.v2.model.llm_obs_delete_annotations_data_attributes_response
20738+
:members:
20739+
:show-inheritance:
20740+
20741+
datadog\_api\_client.v2.model.llm\_obs\_delete\_annotations\_data\_request module
20742+
---------------------------------------------------------------------------------
20743+
20744+
.. automodule:: datadog_api_client.v2.model.llm_obs_delete_annotations_data_request
20745+
:members:
20746+
:show-inheritance:
20747+
20748+
datadog\_api\_client.v2.model.llm\_obs\_delete\_annotations\_data\_response module
20749+
----------------------------------------------------------------------------------
20750+
20751+
.. automodule:: datadog_api_client.v2.model.llm_obs_delete_annotations_data_response
20752+
:members:
20753+
:show-inheritance:
20754+
20755+
datadog\_api\_client.v2.model.llm\_obs\_delete\_annotations\_request module
20756+
---------------------------------------------------------------------------
20757+
20758+
.. automodule:: datadog_api_client.v2.model.llm_obs_delete_annotations_request
20759+
:members:
20760+
:show-inheritance:
20761+
20762+
datadog\_api\_client.v2.model.llm\_obs\_delete\_annotations\_response module
20763+
----------------------------------------------------------------------------
20764+
20765+
.. automodule:: datadog_api_client.v2.model.llm_obs_delete_annotations_response
20766+
:members:
20767+
:show-inheritance:
20768+
2062920769
datadog\_api\_client.v2.model.llm\_obs\_delete\_dataset\_records\_data\_attributes\_request module
2063020770
--------------------------------------------------------------------------------------------------
2063120771

@@ -21627,6 +21767,13 @@ datadog\_api\_client.v2.model.llm\_obs\_trace\_interaction\_type module
2162721767
:members:
2162821768
:show-inheritance:
2162921769

21770+
datadog\_api\_client.v2.model.llm\_obs\_upsert\_annotation\_item module
21771+
-----------------------------------------------------------------------
21772+
21773+
.. automodule:: datadog_api_client.v2.model.llm_obs_upsert_annotation_item
21774+
:members:
21775+
:show-inheritance:
21776+
2163021777
datadog\_api\_client.v2.model.llm\_obs\_vertex\_ai\_metadata module
2163121778
-------------------------------------------------------------------
2163221779

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"""
2+
Delete annotations returns "OK — annotations deleted. Errors for annotations that could not be deleted are listed in
3+
`errors`." response
4+
"""
5+
6+
from datadog_api_client import ApiClient, Configuration
7+
from datadog_api_client.v2.api.llm_observability_api import LLMObservabilityApi
8+
from datadog_api_client.v2.model.llm_obs_annotations_type import LLMObsAnnotationsType
9+
from datadog_api_client.v2.model.llm_obs_delete_annotations_data_attributes_request import (
10+
LLMObsDeleteAnnotationsDataAttributesRequest,
11+
)
12+
from datadog_api_client.v2.model.llm_obs_delete_annotations_data_request import LLMObsDeleteAnnotationsDataRequest
13+
from datadog_api_client.v2.model.llm_obs_delete_annotations_request import LLMObsDeleteAnnotationsRequest
14+
15+
body = LLMObsDeleteAnnotationsRequest(
16+
data=LLMObsDeleteAnnotationsDataRequest(
17+
attributes=LLMObsDeleteAnnotationsDataAttributesRequest(
18+
annotation_ids=[
19+
"00000000-0000-0000-0000-000000000000",
20+
"00000000-0000-0000-0000-000000000001",
21+
],
22+
),
23+
type=LLMObsAnnotationsType.ANNOTATIONS,
24+
),
25+
)
26+
27+
configuration = Configuration()
28+
configuration.unstable_operations["delete_llm_obs_annotations"] = True
29+
with ApiClient(configuration) as api_client:
30+
api_instance = LLMObservabilityApi(api_client)
31+
response = api_instance.delete_llm_obs_annotations(queue_id="queue_id", body=body)
32+
33+
print(response)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
"""
2+
Create or update annotations returns "OK — annotations created or updated. Per-item errors are listed in `errors`."
3+
response
4+
"""
5+
6+
from datadog_api_client import ApiClient, Configuration
7+
from datadog_api_client.v2.api.llm_observability_api import LLMObservabilityApi
8+
from datadog_api_client.v2.model.llm_obs_annotation_label_value import LLMObsAnnotationLabelValue
9+
from datadog_api_client.v2.model.llm_obs_annotations_data_attributes_request import (
10+
LLMObsAnnotationsDataAttributesRequest,
11+
)
12+
from datadog_api_client.v2.model.llm_obs_annotations_data_request import LLMObsAnnotationsDataRequest
13+
from datadog_api_client.v2.model.llm_obs_annotations_request import LLMObsAnnotationsRequest
14+
from datadog_api_client.v2.model.llm_obs_annotations_type import LLMObsAnnotationsType
15+
from datadog_api_client.v2.model.llm_obs_upsert_annotation_item import LLMObsUpsertAnnotationItem
16+
17+
body = LLMObsAnnotationsRequest(
18+
data=LLMObsAnnotationsDataRequest(
19+
attributes=LLMObsAnnotationsDataAttributesRequest(
20+
annotations=[
21+
LLMObsUpsertAnnotationItem(
22+
interaction_id="00000000-0000-0000-0000-000000000001",
23+
label_values=[
24+
LLMObsAnnotationLabelValue(
25+
label_schema_id="abc-123",
26+
value="good",
27+
),
28+
LLMObsAnnotationLabelValue(
29+
label_schema_id="ef56gh78",
30+
value="positive",
31+
),
32+
],
33+
),
34+
],
35+
),
36+
type=LLMObsAnnotationsType.ANNOTATIONS,
37+
),
38+
)
39+
40+
configuration = Configuration()
41+
configuration.unstable_operations["upsert_llm_obs_annotations"] = True
42+
with ApiClient(configuration) as api_client:
43+
api_instance = LLMObservabilityApi(api_client)
44+
response = api_instance.upsert_llm_obs_annotations(queue_id="queue_id", body=body)
45+
46+
print(response)

src/datadog_api_client/configuration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ def __init__(
278278
"v2.create_llm_obs_project": False,
279279
"v2.delete_llm_obs_annotation_queue": False,
280280
"v2.delete_llm_obs_annotation_queue_interactions": False,
281+
"v2.delete_llm_obs_annotations": False,
281282
"v2.delete_llm_obs_custom_eval_config": False,
282283
"v2.delete_llm_obs_data": False,
283284
"v2.delete_llm_obs_dataset_records": False,
@@ -316,6 +317,7 @@ def __init__(
316317
"v2.update_llm_obs_experiment": False,
317318
"v2.update_llm_obs_project": False,
318319
"v2.upload_llm_obs_dataset_records_file": False,
320+
"v2.upsert_llm_obs_annotations": False,
319321
"v2.create_annotation": False,
320322
"v2.delete_annotation": False,
321323
"v2.get_page_annotations": False,

0 commit comments

Comments
 (0)