Skip to content

Commit 46c5aaf

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3c4929a of spec repo
1 parent 77ed302 commit 46c5aaf

6 files changed

Lines changed: 16 additions & 11 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38202,7 +38202,7 @@ components:
3820238202
$ref: "#/components/schemas/LLMObsAnnotationItem"
3820338203
type: array
3820438204
content_id:
38205-
description: Identifier of the content for this interaction.
38205+
description: Identifier of the content (trace ID or session ID) for this interaction.
3820638206
example: "trace-abc-123"
3820738207
type: string
3820838208
id:
@@ -38405,7 +38405,7 @@ components:
3840538405
description: A single interaction to add to an annotation queue.
3840638406
properties:
3840738407
content_id:
38408-
description: Identifier of the content (such as trace ID) for this interaction.
38408+
description: Identifier of the content (trace ID or session ID) for this interaction.
3840938409
example: "trace-abc-123"
3841038410
type: string
3841138411
type:
@@ -38422,7 +38422,7 @@ components:
3842238422
example: false
3842338423
type: boolean
3842438424
content_id:
38425-
description: Identifier of the content for this interaction.
38425+
description: Identifier of the content (trace ID or session ID) for this interaction.
3842638426
example: "trace-abc-123"
3842738427
type: string
3842838428
id:
@@ -39941,11 +39941,13 @@ components:
3994139941
enum:
3994239942
- trace
3994339943
- experiment_trace
39944+
- session
3994439945
example: trace
3994539946
type: string
3994639947
x-enum-varnames:
3994739948
- TRACE
3994839949
- EXPERIMENT_TRACE
39950+
- SESSION
3994939951
LLMObsLabelSchema:
3995039952
description: Schema definition for a single label in an annotation queue.
3995139953
properties:
@@ -109649,7 +109651,7 @@ paths:
109649109651
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
109650109652
/api/v2/llm-obs/v1/annotation-queues/{queue_id}/annotated-interactions:
109651109653
get:
109652-
description: Retrieve all interactions and their annotations for a given annotation queue.
109654+
description: Retrieve all interactions (traces and sessions) and their annotations for a given annotation queue.
109653109655
operationId: GetLLMObsAnnotatedInteractions
109654109656
parameters:
109655109657
- $ref: "#/components/parameters/LLMObsAnnotationQueueIDPathParameter"
@@ -109710,7 +109712,7 @@ paths:
109710109712
/api/v2/llm-obs/v1/annotation-queues/{queue_id}/interactions:
109711109713
post:
109712109714
description: |-
109713-
Add one or more interactions (traces) to an annotation queue.
109715+
Add one or more interactions (traces or sessions) to an annotation queue.
109714109716
At least one interaction must be provided.
109715109717
operationId: CreateLLMObsAnnotationQueueInteractions
109716109718
parameters:

src/datadog_api_client/v2/api/llm_observability_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ def create_llm_obs_annotation_queue_interactions(
890890
) -> LLMObsAnnotationQueueInteractionsResponse:
891891
"""Add annotation queue interactions.
892892
893-
Add one or more interactions (traces) to an annotation queue.
893+
Add one or more interactions (traces or sessions) to an annotation queue.
894894
At least one interaction must be provided.
895895
896896
:param queue_id: The ID of the LLM Observability annotation queue.
@@ -1156,7 +1156,7 @@ def get_llm_obs_annotated_interactions(
11561156
) -> LLMObsAnnotatedInteractionsResponse:
11571157
"""Get annotated queue interactions.
11581158
1159-
Retrieve all interactions and their annotations for a given annotation queue.
1159+
Retrieve all interactions (traces and sessions) and their annotations for a given annotation queue.
11601160
11611161
:param queue_id: The ID of the LLM Observability annotation queue.
11621162
:type queue_id: str

src/datadog_api_client/v2/model/llm_obs_annotated_interaction_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545
:param annotations: List of annotations for this interaction.
4646
:type annotations: [LLMObsAnnotationItem]
4747
48-
:param content_id: Identifier of the content for this interaction.
48+
:param content_id: Identifier of the content (trace ID or session ID) for this interaction.
4949
:type content_id: str
5050
5151
:param id: Unique identifier of the interaction.

src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self_, content_id: str, type: LLMObsInteractionType, **kwargs):
3434
"""
3535
A single interaction to add to an annotation queue.
3636
37-
:param content_id: Identifier of the content (such as trace ID) for this interaction.
37+
:param content_id: Identifier of the content (trace ID or session ID) for this interaction.
3838
:type content_id: str
3939
4040
:param type: Type of interaction in an annotation queue.

src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_response_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self_, already_existed: bool, content_id: str, id: str, type: LLMOb
4141
:param already_existed: Whether this interaction already existed in the queue.
4242
:type already_existed: bool
4343
44-
:param content_id: Identifier of the content for this interaction.
44+
:param content_id: Identifier of the content (trace ID or session ID) for this interaction.
4545
:type content_id: str
4646
4747
:param id: Unique identifier of the interaction.

src/datadog_api_client/v2/model/llm_obs_interaction_type.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ class LLMObsInteractionType(ModelSimple):
1616
"""
1717
Type of interaction in an annotation queue.
1818
19-
:param value: Must be one of ["trace", "experiment_trace"].
19+
:param value: Must be one of ["trace", "experiment_trace", "session"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"trace",
2525
"experiment_trace",
26+
"session",
2627
}
2728
TRACE: ClassVar["LLMObsInteractionType"]
2829
EXPERIMENT_TRACE: ClassVar["LLMObsInteractionType"]
30+
SESSION: ClassVar["LLMObsInteractionType"]
2931

3032
@cached_property
3133
def openapi_types(_):
@@ -36,3 +38,4 @@ def openapi_types(_):
3638

3739
LLMObsInteractionType.TRACE = LLMObsInteractionType("trace")
3840
LLMObsInteractionType.EXPERIMENT_TRACE = LLMObsInteractionType("experiment_trace")
41+
LLMObsInteractionType.SESSION = LLMObsInteractionType("session")

0 commit comments

Comments
 (0)