diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2dc5dce2c0a..dfe28385c5a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -38202,7 +38202,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: @@ -38405,7 +38405,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: @@ -38422,7 +38422,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: @@ -39941,11 +39941,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: @@ -109649,7 +109651,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" @@ -109710,7 +109712,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/main/java/com/datadog/api/client/v2/api/LlmObservabilityApi.java b/src/main/java/com/datadog/api/client/v2/api/LlmObservabilityApi.java index 54f49f0c6da..011ce54a62b 100644 --- a/src/main/java/com/datadog/api/client/v2/api/LlmObservabilityApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/LlmObservabilityApi.java @@ -269,8 +269,8 @@ public LLMObsAnnotationQueueInteractionsResponse createLLMObsAnnotationQueueInte } /** - * Add one or more interactions (traces) to an annotation queue. At least one interaction must be - * provided. + * Add one or more interactions (traces or sessions) to an annotation queue. At least one + * interaction must be provided. * * @param queueId The ID of the LLM Observability annotation queue. (required) * @param body Add interactions payload. (required) @@ -2493,7 +2493,8 @@ public CompletableFuture getLLMObsAnnotated } /** - * 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 queueId The ID of the LLM Observability annotation queue. (required) * @return ApiResponse<LLMObsAnnotatedInteractionsResponse> diff --git a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotatedInteractionItem.java b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotatedInteractionItem.java index 5f84e665c0c..00665914307 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotatedInteractionItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotatedInteractionItem.java @@ -93,7 +93,7 @@ public LLMObsAnnotatedInteractionItem contentId(String contentId) { } /** - * Identifier of the content for this interaction. + * Identifier of the content (trace ID or session ID) for this interaction. * * @return contentId */ diff --git a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionItem.java b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionItem.java index 1b73533de30..2bd8ce70366 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionItem.java @@ -49,7 +49,7 @@ public LLMObsAnnotationQueueInteractionItem contentId(String contentId) { } /** - * Identifier of the content (such as trace ID) for this interaction. + * Identifier of the content (trace ID or session ID) for this interaction. * * @return contentId */ diff --git a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionResponseItem.java b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionResponseItem.java index c319f22806c..f9ba12973b1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionResponseItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionResponseItem.java @@ -81,7 +81,7 @@ public LLMObsAnnotationQueueInteractionResponseItem contentId(String contentId) } /** - * Identifier of the content for this interaction. + * Identifier of the content (trace ID or session ID) for this interaction. * * @return contentId */ diff --git a/src/main/java/com/datadog/api/client/v2/model/LLMObsInteractionType.java b/src/main/java/com/datadog/api/client/v2/model/LLMObsInteractionType.java index 2db3dd03582..957e41a999f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LLMObsInteractionType.java +++ b/src/main/java/com/datadog/api/client/v2/model/LLMObsInteractionType.java @@ -23,11 +23,12 @@ public class LLMObsInteractionType extends ModelEnum { private static final Set allowedValues = - new HashSet(Arrays.asList("trace", "experiment_trace")); + new HashSet(Arrays.asList("trace", "experiment_trace", "session")); public static final LLMObsInteractionType TRACE = new LLMObsInteractionType("trace"); public static final LLMObsInteractionType EXPERIMENT_TRACE = new LLMObsInteractionType("experiment_trace"); + public static final LLMObsInteractionType SESSION = new LLMObsInteractionType("session"); LLMObsInteractionType(String value) { super(value, allowedValues);