From 93112114acbc8a031fe0598a11a673a5cbe281d2 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 6 May 2026 07:34:56 +0000 Subject: [PATCH] Regenerate client from commit 323b4ed of spec repo --- .generator/schemas/v2/openapi.yaml | 12 +++++++----- .../v2/api/llm_observability_api.py | 4 ++-- .../v2/model/llm_obs_annotated_interaction_item.py | 2 +- .../llm_obs_annotation_queue_interaction_item.py | 2 +- ...obs_annotation_queue_interaction_response_item.py | 2 +- .../v2/model/llm_obs_interaction_type.py | 5 ++++- 6 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index df325279ee..60d30be433 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -38173,7 +38173,7 @@ components: $ref: "#/components/schemas/LLMObsAnnotationItem" type: array content_id: - description: Identifier of the content for this interaction. + description: Identifier of the content (trace ID or session ID) for this interaction. example: "trace-abc-123" type: string id: @@ -38376,7 +38376,7 @@ components: description: A single interaction to add to an annotation queue. properties: content_id: - description: Identifier of the content (such as trace ID) for this interaction. + description: Identifier of the content (trace ID or session ID) for this interaction. example: "trace-abc-123" type: string type: @@ -38393,7 +38393,7 @@ components: example: false type: boolean content_id: - description: Identifier of the content for this interaction. + description: Identifier of the content (trace ID or session ID) for this interaction. example: "trace-abc-123" type: string id: @@ -39912,11 +39912,13 @@ components: enum: - trace - experiment_trace + - session example: trace type: string x-enum-varnames: - TRACE - EXPERIMENT_TRACE + - SESSION LLMObsLabelSchema: description: Schema definition for a single label in an annotation queue. properties: @@ -104738,7 +104740,7 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/llm-obs/v1/annotation-queues/{queue_id}/annotated-interactions: get: - description: Retrieve all interactions and their annotations for a given annotation queue. + description: Retrieve all interactions (traces and sessions) and their annotations for a given annotation queue. operationId: GetLLMObsAnnotatedInteractions parameters: - $ref: "#/components/parameters/LLMObsAnnotationQueueIDPathParameter" @@ -104787,7 +104789,7 @@ paths: /api/v2/llm-obs/v1/annotation-queues/{queue_id}/interactions: post: description: |- - Add one or more interactions (traces) to an annotation queue. + Add one or more interactions (traces or sessions) to an annotation queue. At least one interaction must be provided. operationId: CreateLLMObsAnnotationQueueInteractions parameters: diff --git a/src/datadog_api_client/v2/api/llm_observability_api.py b/src/datadog_api_client/v2/api/llm_observability_api.py index cb099e5635..f92e8cd67a 100644 --- a/src/datadog_api_client/v2/api/llm_observability_api.py +++ b/src/datadog_api_client/v2/api/llm_observability_api.py @@ -890,7 +890,7 @@ def create_llm_obs_annotation_queue_interactions( ) -> LLMObsAnnotationQueueInteractionsResponse: """Add annotation queue interactions. - Add one or more interactions (traces) to an annotation queue. + Add one or more interactions (traces or sessions) to an annotation queue. At least one interaction must be provided. :param queue_id: The ID of the LLM Observability annotation queue. @@ -1156,7 +1156,7 @@ def get_llm_obs_annotated_interactions( ) -> LLMObsAnnotatedInteractionsResponse: """Get annotated queue interactions. - Retrieve all interactions and their annotations for a given annotation queue. + Retrieve all interactions (traces and sessions) and their annotations for a given annotation queue. :param queue_id: The ID of the LLM Observability annotation queue. :type queue_id: str diff --git a/src/datadog_api_client/v2/model/llm_obs_annotated_interaction_item.py b/src/datadog_api_client/v2/model/llm_obs_annotated_interaction_item.py index 02da163588..0658ec11e3 100644 --- a/src/datadog_api_client/v2/model/llm_obs_annotated_interaction_item.py +++ b/src/datadog_api_client/v2/model/llm_obs_annotated_interaction_item.py @@ -45,7 +45,7 @@ def __init__( :param annotations: List of annotations for this interaction. :type annotations: [LLMObsAnnotationItem] - :param content_id: Identifier of the content for this interaction. + :param content_id: Identifier of the content (trace ID or session ID) for this interaction. :type content_id: str :param id: Unique identifier of the interaction. diff --git a/src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_item.py b/src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_item.py index 84f0311147..a937764106 100644 --- a/src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_item.py +++ b/src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_item.py @@ -34,7 +34,7 @@ def __init__(self_, content_id: str, type: LLMObsInteractionType, **kwargs): """ A single interaction to add to an annotation queue. - :param content_id: Identifier of the content (such as trace ID) for this interaction. + :param content_id: Identifier of the content (trace ID or session ID) for this interaction. :type content_id: str :param type: Type of interaction in an annotation queue. diff --git a/src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_response_item.py b/src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_response_item.py index 55cf532e6b..d072f262ab 100644 --- a/src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_response_item.py +++ b/src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_response_item.py @@ -41,7 +41,7 @@ def __init__(self_, already_existed: bool, content_id: str, id: str, type: LLMOb :param already_existed: Whether this interaction already existed in the queue. :type already_existed: bool - :param content_id: Identifier of the content for this interaction. + :param content_id: Identifier of the content (trace ID or session ID) for this interaction. :type content_id: str :param id: Unique identifier of the interaction. diff --git a/src/datadog_api_client/v2/model/llm_obs_interaction_type.py b/src/datadog_api_client/v2/model/llm_obs_interaction_type.py index af43da7b21..ba7a9f53ba 100644 --- a/src/datadog_api_client/v2/model/llm_obs_interaction_type.py +++ b/src/datadog_api_client/v2/model/llm_obs_interaction_type.py @@ -16,16 +16,18 @@ class LLMObsInteractionType(ModelSimple): """ Type of interaction in an annotation queue. - :param value: Must be one of ["trace", "experiment_trace"]. + :param value: Must be one of ["trace", "experiment_trace", "session"]. :type value: str """ allowed_values = { "trace", "experiment_trace", + "session", } TRACE: ClassVar["LLMObsInteractionType"] EXPERIMENT_TRACE: ClassVar["LLMObsInteractionType"] + SESSION: ClassVar["LLMObsInteractionType"] @cached_property def openapi_types(_): @@ -36,3 +38,4 @@ def openapi_types(_): LLMObsInteractionType.TRACE = LLMObsInteractionType("trace") LLMObsInteractionType.EXPERIMENT_TRACE = LLMObsInteractionType("experiment_trace") +LLMObsInteractionType.SESSION = LLMObsInteractionType("session")