Skip to content

Commit 9311211

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 323b4ed of spec repo
1 parent f4e7682 commit 9311211

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
@@ -38173,7 +38173,7 @@ components:
3817338173
$ref: "#/components/schemas/LLMObsAnnotationItem"
3817438174
type: array
3817538175
content_id:
38176-
description: Identifier of the content for this interaction.
38176+
description: Identifier of the content (trace ID or session ID) for this interaction.
3817738177
example: "trace-abc-123"
3817838178
type: string
3817938179
id:
@@ -38376,7 +38376,7 @@ components:
3837638376
description: A single interaction to add to an annotation queue.
3837738377
properties:
3837838378
content_id:
38379-
description: Identifier of the content (such as trace ID) for this interaction.
38379+
description: Identifier of the content (trace ID or session ID) for this interaction.
3838038380
example: "trace-abc-123"
3838138381
type: string
3838238382
type:
@@ -38393,7 +38393,7 @@ components:
3839338393
example: false
3839438394
type: boolean
3839538395
content_id:
38396-
description: Identifier of the content for this interaction.
38396+
description: Identifier of the content (trace ID or session ID) for this interaction.
3839738397
example: "trace-abc-123"
3839838398
type: string
3839938399
id:
@@ -39912,11 +39912,13 @@ components:
3991239912
enum:
3991339913
- trace
3991439914
- experiment_trace
39915+
- session
3991539916
example: trace
3991639917
type: string
3991739918
x-enum-varnames:
3991839919
- TRACE
3991939920
- EXPERIMENT_TRACE
39921+
- SESSION
3992039922
LLMObsLabelSchema:
3992139923
description: Schema definition for a single label in an annotation queue.
3992239924
properties:
@@ -104738,7 +104740,7 @@ paths:
104738104740
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
104739104741
/api/v2/llm-obs/v1/annotation-queues/{queue_id}/annotated-interactions:
104740104742
get:
104741-
description: Retrieve all interactions and their annotations for a given annotation queue.
104743+
description: Retrieve all interactions (traces and sessions) and their annotations for a given annotation queue.
104742104744
operationId: GetLLMObsAnnotatedInteractions
104743104745
parameters:
104744104746
- $ref: "#/components/parameters/LLMObsAnnotationQueueIDPathParameter"
@@ -104787,7 +104789,7 @@ paths:
104787104789
/api/v2/llm-obs/v1/annotation-queues/{queue_id}/interactions:
104788104790
post:
104789104791
description: |-
104790-
Add one or more interactions (traces) to an annotation queue.
104792+
Add one or more interactions (traces or sessions) to an annotation queue.
104791104793
At least one interaction must be provided.
104792104794
operationId: CreateLLMObsAnnotationQueueInteractions
104793104795
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)