Skip to content

Commit bf52b70

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b69cc1b of spec repo
1 parent 7dea07d commit bf52b70

File tree

45 files changed

+4399
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4399
-30
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 786 additions & 1 deletion
Large diffs are not rendered by default.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Create an LLM Observability annotation queue returns "Created" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.createLLMObsAnnotationQueue"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiCreateLLMObsAnnotationQueueRequest = {
12+
body: {
13+
data: {
14+
attributes: {
15+
description: "Queue for annotating customer support traces",
16+
name: "My annotation queue",
17+
projectId: "a33671aa-24fd-4dcd-9b33-a8ec7dde7751",
18+
},
19+
type: "queues",
20+
},
21+
},
22+
};
23+
24+
apiInstance
25+
.createLLMObsAnnotationQueue(params)
26+
.then((data: v2.LLMObsAnnotationQueueResponse) => {
27+
console.log(
28+
"API called successfully. Returned data: " + JSON.stringify(data)
29+
);
30+
})
31+
.catch((error: any) => console.error(error));
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* Add annotation queue interactions returns "Created" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.createLLMObsAnnotationQueueInteractions"] =
9+
true;
10+
const apiInstance = new v2.LLMObservabilityApi(configuration);
11+
12+
const params: v2.LLMObservabilityApiCreateLLMObsAnnotationQueueInteractionsRequest =
13+
{
14+
body: {
15+
data: {
16+
attributes: {
17+
interactions: [
18+
{
19+
contentId: "trace-abc-123",
20+
type: "trace",
21+
},
22+
],
23+
},
24+
type: "interactions",
25+
},
26+
},
27+
queueId: "queue_id",
28+
};
29+
30+
apiInstance
31+
.createLLMObsAnnotationQueueInteractions(params)
32+
.then((data: v2.LLMObsAnnotationQueueInteractionsResponse) => {
33+
console.log(
34+
"API called successfully. Returned data: " + JSON.stringify(data)
35+
);
36+
})
37+
.catch((error: any) => console.error(error));
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Delete an LLM Observability annotation queue 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.deleteLLMObsAnnotationQueue"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiDeleteLLMObsAnnotationQueueRequest = {
12+
queueId: "queue_id",
13+
};
14+
15+
apiInstance
16+
.deleteLLMObsAnnotationQueue(params)
17+
.then((data: any) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Delete annotation queue interactions 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.deleteLLMObsAnnotationQueueInteractions"] =
9+
true;
10+
const apiInstance = new v2.LLMObservabilityApi(configuration);
11+
12+
const params: v2.LLMObservabilityApiDeleteLLMObsAnnotationQueueInteractionsRequest =
13+
{
14+
body: {
15+
data: {
16+
attributes: {
17+
interactionIds: [
18+
"00000000-0000-0000-0000-000000000000",
19+
"00000000-0000-0000-0000-000000000001",
20+
],
21+
},
22+
type: "interactions",
23+
},
24+
},
25+
queueId: "queue_id",
26+
};
27+
28+
apiInstance
29+
.deleteLLMObsAnnotationQueueInteractions(params)
30+
.then((data: any) => {
31+
console.log(
32+
"API called successfully. Returned data: " + JSON.stringify(data)
33+
);
34+
})
35+
.catch((error: any) => console.error(error));
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Get annotated queue interactions returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.getLLMObsAnnotatedInteractions"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiGetLLMObsAnnotatedInteractionsRequest = {
12+
queueId: "queue_id",
13+
};
14+
15+
apiInstance
16+
.getLLMObsAnnotatedInteractions(params)
17+
.then((data: v2.LLMObsAnnotatedInteractionsResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.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+
* List LLM Observability annotation queues returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listLLMObsAnnotationQueues"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
apiInstance
12+
.listLLMObsAnnotationQueues()
13+
.then((data: v2.LLMObsAnnotationQueuesResponse) => {
14+
console.log(
15+
"API called successfully. Returned data: " + JSON.stringify(data)
16+
);
17+
})
18+
.catch((error: any) => console.error(error));
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Update an LLM Observability annotation queue returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.updateLLMObsAnnotationQueue"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiUpdateLLMObsAnnotationQueueRequest = {
12+
body: {
13+
data: {
14+
attributes: {
15+
description: "Updated description",
16+
name: "Updated queue name",
17+
},
18+
type: "queues",
19+
},
20+
},
21+
queueId: "queue_id",
22+
};
23+
24+
apiInstance
25+
.updateLLMObsAnnotationQueue(params)
26+
.then((data: v2.LLMObsAnnotationQueueResponse) => {
27+
console.log(
28+
"API called successfully. Returned data: " + JSON.stringify(data)
29+
);
30+
})
31+
.catch((error: any) => console.error(error));

features/support/scenarios_model_mapping.ts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7745,6 +7745,71 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
77457745
},
77467746
"operationResponseType": "IPAllowlistResponse",
77477747
},
7748+
"v2.ListLLMObsAnnotationQueues": {
7749+
"projectId": {
7750+
"type": "string",
7751+
"format": "",
7752+
},
7753+
"queueIds": {
7754+
"type": "Array<string>",
7755+
"format": "",
7756+
},
7757+
"operationResponseType": "LLMObsAnnotationQueuesResponse",
7758+
},
7759+
"v2.CreateLLMObsAnnotationQueue": {
7760+
"body": {
7761+
"type": "LLMObsAnnotationQueueRequest",
7762+
"format": "",
7763+
},
7764+
"operationResponseType": "LLMObsAnnotationQueueResponse",
7765+
},
7766+
"v2.DeleteLLMObsAnnotationQueue": {
7767+
"queueId": {
7768+
"type": "string",
7769+
"format": "",
7770+
},
7771+
"operationResponseType": "{}",
7772+
},
7773+
"v2.UpdateLLMObsAnnotationQueue": {
7774+
"queueId": {
7775+
"type": "string",
7776+
"format": "",
7777+
},
7778+
"body": {
7779+
"type": "LLMObsAnnotationQueueUpdateRequest",
7780+
"format": "",
7781+
},
7782+
"operationResponseType": "LLMObsAnnotationQueueResponse",
7783+
},
7784+
"v2.GetLLMObsAnnotatedInteractions": {
7785+
"queueId": {
7786+
"type": "string",
7787+
"format": "",
7788+
},
7789+
"operationResponseType": "LLMObsAnnotatedInteractionsResponse",
7790+
},
7791+
"v2.CreateLLMObsAnnotationQueueInteractions": {
7792+
"queueId": {
7793+
"type": "string",
7794+
"format": "",
7795+
},
7796+
"body": {
7797+
"type": "LLMObsAnnotationQueueInteractionsRequest",
7798+
"format": "",
7799+
},
7800+
"operationResponseType": "LLMObsAnnotationQueueInteractionsResponse",
7801+
},
7802+
"v2.DeleteLLMObsAnnotationQueueInteractions": {
7803+
"queueId": {
7804+
"type": "string",
7805+
"format": "",
7806+
},
7807+
"body": {
7808+
"type": "LLMObsDeleteAnnotationQueueInteractionsRequest",
7809+
"format": "",
7810+
},
7811+
"operationResponseType": "{}",
7812+
},
77487813
"v2.ListLLMObsExperiments": {
77497814
"filterProjectId": {
77507815
"type": "string",

0 commit comments

Comments
 (0)