You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/v2/llm_observability.feature
+54Lines changed: 54 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -315,6 +315,33 @@ Feature: LLM Observability
315
315
When the request is sent
316
316
Then the response status is 422 Unprocessable Entity
317
317
318
+
@generated@skip@team:DataDog/ml-observability
319
+
Scenario: Create or update annotations returns "Bad Request" response
320
+
Given operation "UpsertLLMObsAnnotations" enabled
321
+
And new "UpsertLLMObsAnnotations" request
322
+
And request contains "queue_id" parameter from "REPLACE.ME"
323
+
And body with value {"data": {"attributes": {"annotations": [{"interaction_id": "00000000-0000-0000-0000-000000000001", "label_values": [{"label_schema_id": "abc-123", "value": "good"}, {"label_schema_id": "ef56gh78", "value": "positive"}]}]}, "type": "annotations"}}
324
+
When the request is sent
325
+
Then the response status is 400 Bad Request
326
+
327
+
@generated@skip@team:DataDog/ml-observability
328
+
Scenario: Create or update annotations returns "Not Found — the queue does not exist." response
329
+
Given operation "UpsertLLMObsAnnotations" enabled
330
+
And new "UpsertLLMObsAnnotations" request
331
+
And request contains "queue_id" parameter from "REPLACE.ME"
332
+
And body with value {"data": {"attributes": {"annotations": [{"interaction_id": "00000000-0000-0000-0000-000000000001", "label_values": [{"label_schema_id": "abc-123", "value": "good"}, {"label_schema_id": "ef56gh78", "value": "positive"}]}]}, "type": "annotations"}}
333
+
When the request is sent
334
+
Then the response status is 404 Not Found — the queue does not exist.
335
+
336
+
@generated@skip@team:DataDog/ml-observability
337
+
Scenario: Create or update annotations returns "OK — annotations created or updated. Per-item errors are listed in `errors`." response
338
+
Given operation "UpsertLLMObsAnnotations" enabled
339
+
And new "UpsertLLMObsAnnotations" request
340
+
And request contains "queue_id" parameter from "REPLACE.ME"
341
+
And body with value {"data": {"attributes": {"annotations": [{"interaction_id": "00000000-0000-0000-0000-000000000001", "label_values": [{"label_schema_id": "abc-123", "value": "good"}, {"label_schema_id": "ef56gh78", "value": "positive"}]}]}, "type": "annotations"}}
342
+
When the request is sent
343
+
Then the response status is 200 OK — annotations created or updated. Per-item errors are listed in `errors`.
344
+
318
345
@generated@skip@team:DataDog/ml-observability
319
346
Scenario: Delete LLM Observability data returns "Accepted" response
And request contains "queue_id" parameter from "REPLACE.ME"
522
+
And body with value {"data": {"attributes": {"annotation_ids": ["00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001"]}, "type": "annotations"}}
523
+
When the request is sent
524
+
Then the response status is 400 Bad Request
525
+
526
+
@generated@skip@team:DataDog/ml-observability
527
+
Scenario: Delete annotations returns "Not Found — the queue does not exist." response
528
+
Given operation "DeleteLLMObsAnnotations" enabled
529
+
And new "DeleteLLMObsAnnotations" request
530
+
And request contains "queue_id" parameter from "REPLACE.ME"
531
+
And body with value {"data": {"attributes": {"annotation_ids": ["00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001"]}, "type": "annotations"}}
532
+
When the request is sent
533
+
Then the response status is 404 Not Found — the queue does not exist.
534
+
535
+
@generated@skip@team:DataDog/ml-observability
536
+
Scenario: Delete annotations returns "OK — annotations deleted. Errors for annotations that could not be deleted are listed in `errors`." response
537
+
Given operation "DeleteLLMObsAnnotations" enabled
538
+
And new "DeleteLLMObsAnnotations" request
539
+
And request contains "queue_id" parameter from "REPLACE.ME"
540
+
And body with value {"data": {"attributes": {"annotation_ids": ["00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001"]}, "type": "annotations"}}
541
+
When the request is sent
542
+
Then the response status is 200 OK — annotations deleted. Errors for annotations that could not be deleted are listed in `errors`.
543
+
490
544
@generated@skip@team:DataDog/ml-observability
491
545
Scenario: Export an LLM Observability dataset returns "Bad Request" response
0 commit comments