Skip to content

Commit b30009e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 76bbcbf of spec repo
1 parent 1373dfc commit b30009e

24 files changed

Lines changed: 1829 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 399 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* Get annotated interactions by content IDs returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations[
9+
"v2.getLLMObsAnnotatedInteractionsByTraceIDs"
10+
] = true;
11+
const apiInstance = new v2.LLMObservabilityApi(configuration);
12+
13+
const params: v2.LLMObservabilityApiGetLLMObsAnnotatedInteractionsByTraceIDsRequest =
14+
{
15+
contentIds: [],
16+
};
17+
18+
apiInstance
19+
.getLLMObsAnnotatedInteractionsByTraceIDs(params)
20+
.then((data: v2.LLMObsAnnotatedInteractionsByTraceResponse) => {
21+
console.log(
22+
"API called successfully. Returned data: " + JSON.stringify(data)
23+
);
24+
})
25+
.catch((error: any) => console.error(error));
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Get LLM Observability org configuration returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.getLLMObsOrgConfig"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
apiInstance
12+
.getLLMObsOrgConfig()
13+
.then((data: v2.LLMObsOrgConfigResponse) => {
14+
console.log(
15+
"API called successfully. Returned data: " + JSON.stringify(data)
16+
);
17+
})
18+
.catch((error: any) => console.error(error));
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* Update LLM Observability org configuration returns "No Content" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.updateLLMObsOrgConfig"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiUpdateLLMObsOrgConfigRequest = {
12+
body: {
13+
data: {
14+
attributes: {
15+
traceIdleTimerS: 30,
16+
},
17+
id: "12345",
18+
type: "org_config",
19+
},
20+
},
21+
};
22+
23+
apiInstance
24+
.updateLLMObsOrgConfig(params)
25+
.then((data: any) => {
26+
console.log(
27+
"API called successfully. Returned data: " + JSON.stringify(data)
28+
);
29+
})
30+
.catch((error: any) => console.error(error));

features/support/scenarios_model_mapping.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2582,6 +2582,31 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
25822582
},
25832583
"operationResponseType": "LLMObsDataDeletionResponse",
25842584
},
2585+
"v2.GetLLMObsOrgConfig": {
2586+
"operationResponseType": "LLMObsOrgConfigResponse",
2587+
},
2588+
"v2.UpdateLLMObsOrgConfig": {
2589+
"body": {
2590+
"type": "LLMObsOrgConfigUpdateRequest",
2591+
"format": "",
2592+
},
2593+
"operationResponseType": "{}",
2594+
},
2595+
"v2.GetLLMObsAnnotatedInteractionsByTraceIDs": {
2596+
"contentIds": {
2597+
"type": "Array<string>",
2598+
"format": "",
2599+
},
2600+
"offset": {
2601+
"type": "number",
2602+
"format": "int32",
2603+
},
2604+
"limit": {
2605+
"type": "number",
2606+
"format": "int32",
2607+
},
2608+
"operationResponseType": "LLMObsAnnotatedInteractionsByTraceResponse",
2609+
},
25852610
"v2.ListLLMObsAnnotationQueues": {
25862611
"projectId": {
25872612
"type": "string",

features/v2/llm_observability.feature

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,13 @@ Feature: LLM Observability
417417
When the request is sent
418418
Then the response status is 404 Not Found
419419

420+
@generated @skip @team:DataDog/ml-observability
421+
Scenario: Get LLM Observability org configuration returns "OK" response
422+
Given operation "GetLLMObsOrgConfig" enabled
423+
And new "GetLLMObsOrgConfig" request
424+
When the request is sent
425+
Then the response status is 200 OK
426+
420427
@generated @skip @team:DataDog/ml-observability
421428
Scenario: Get a custom evaluator configuration returns "Bad Request" response
422429
Given operation "GetLLMObsCustomEvalConfig" enabled
@@ -441,6 +448,22 @@ Feature: LLM Observability
441448
When the request is sent
442449
Then the response status is 200 OK
443450

451+
@generated @skip @team:DataDog/ml-observability
452+
Scenario: Get annotated interactions by content IDs returns "Bad Request" response
453+
Given operation "GetLLMObsAnnotatedInteractionsByTraceIDs" enabled
454+
And new "GetLLMObsAnnotatedInteractionsByTraceIDs" request
455+
And request contains "contentIds" parameter from "REPLACE.ME"
456+
When the request is sent
457+
Then the response status is 400 Bad Request
458+
459+
@generated @skip @team:DataDog/ml-observability
460+
Scenario: Get annotated interactions by content IDs returns "OK" response
461+
Given operation "GetLLMObsAnnotatedInteractionsByTraceIDs" enabled
462+
And new "GetLLMObsAnnotatedInteractionsByTraceIDs" request
463+
And request contains "contentIds" parameter from "REPLACE.ME"
464+
When the request is sent
465+
Then the response status is 200 OK
466+
444467
@generated @skip @team:DataDog/ml-observability
445468
Scenario: Get annotated queue interactions returns "Bad Request" response
446469
Given operation "GetLLMObsAnnotatedInteractions" enabled
@@ -779,6 +802,22 @@ Feature: LLM Observability
779802
When the request is sent
780803
Then the response status is 200 OK
781804

805+
@generated @skip @team:DataDog/ml-observability
806+
Scenario: Update LLM Observability org configuration returns "Bad Request" response
807+
Given operation "UpdateLLMObsOrgConfig" enabled
808+
And new "UpdateLLMObsOrgConfig" request
809+
And body with value {"data": {"attributes": {"trace_idle_timer_s": 30}, "id": "12345", "type": "org_config"}}
810+
When the request is sent
811+
Then the response status is 400 Bad Request
812+
813+
@generated @skip @team:DataDog/ml-observability
814+
Scenario: Update LLM Observability org configuration returns "No Content" response
815+
Given operation "UpdateLLMObsOrgConfig" enabled
816+
And new "UpdateLLMObsOrgConfig" request
817+
And body with value {"data": {"attributes": {"trace_idle_timer_s": 30}, "id": "12345", "type": "org_config"}}
818+
When the request is sent
819+
Then the response status is 204 No Content
820+
782821
@generated @skip @team:DataDog/ml-observability
783822
Scenario: Update an LLM Observability annotation queue returns "Bad Request" response
784823
Given operation "UpdateLLMObsAnnotationQueue" enabled

features/v2/undo.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3704,6 +3704,24 @@
37043704
"type": "unsafe"
37053705
}
37063706
},
3707+
"GetLLMObsOrgConfig": {
3708+
"tag": "LLM Observability",
3709+
"undo": {
3710+
"type": "safe"
3711+
}
3712+
},
3713+
"UpdateLLMObsOrgConfig": {
3714+
"tag": "LLM Observability",
3715+
"undo": {
3716+
"type": "idempotent"
3717+
}
3718+
},
3719+
"GetLLMObsAnnotatedInteractionsByTraceIDs": {
3720+
"tag": "LLM Observability",
3721+
"undo": {
3722+
"type": "safe"
3723+
}
3724+
},
37073725
"ListLLMObsAnnotationQueues": {
37083726
"tag": "LLM Observability",
37093727
"undo": {

packages/datadog-api-client-common/configuration.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,10 @@ export function createConfiguration(
258258
"v2.deleteLLMObsExperiments": false,
259259
"v2.deleteLLMObsProjects": false,
260260
"v2.getLLMObsAnnotatedInteractions": false,
261+
"v2.getLLMObsAnnotatedInteractionsByTraceIDs": false,
261262
"v2.getLLMObsAnnotationQueueLabelSchema": false,
262263
"v2.getLLMObsCustomEvalConfig": false,
264+
"v2.getLLMObsOrgConfig": false,
263265
"v2.listLLMObsAnnotationQueues": false,
264266
"v2.listLLMObsDatasetRecords": false,
265267
"v2.listLLMObsDatasets": false,
@@ -278,6 +280,7 @@ export function createConfiguration(
278280
"v2.updateLLMObsDataset": false,
279281
"v2.updateLLMObsDatasetRecords": false,
280282
"v2.updateLLMObsExperiment": false,
283+
"v2.updateLLMObsOrgConfig": false,
281284
"v2.updateLLMObsProject": false,
282285
"v2.anonymizeUsers": false,
283286
"v2.validate": false,

0 commit comments

Comments
 (0)