@arizeai/phoenix-client 4.0.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/__generated__/api/v1.d.ts +529 -4
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/experiments/getExperimentRuns.d.ts +8 -2
- package/dist/esm/experiments/getExperimentRuns.d.ts.map +1 -1
- package/dist/esm/experiments/getExperimentRuns.js +34 -23
- package/dist/esm/experiments/getExperimentRuns.js.map +1 -1
- package/dist/esm/experiments/runExperiment.d.ts +7 -1
- package/dist/esm/experiments/runExperiment.d.ts.map +1 -1
- package/dist/esm/experiments/runExperiment.js +13 -10
- package/dist/esm/experiments/runExperiment.js.map +1 -1
- package/dist/esm/sessions/addSessionAnnotation.d.ts +44 -0
- package/dist/esm/sessions/addSessionAnnotation.d.ts.map +1 -0
- package/dist/esm/sessions/addSessionAnnotation.js +44 -0
- package/dist/esm/sessions/addSessionAnnotation.js.map +1 -0
- package/dist/esm/sessions/index.d.ts +3 -0
- package/dist/esm/sessions/index.d.ts.map +1 -0
- package/dist/esm/sessions/index.js +3 -0
- package/dist/esm/sessions/index.js.map +1 -0
- package/dist/esm/sessions/logSessionAnnotations.d.ts +56 -0
- package/dist/esm/sessions/logSessionAnnotations.d.ts.map +1 -0
- package/dist/esm/sessions/logSessionAnnotations.js +53 -0
- package/dist/esm/sessions/logSessionAnnotations.js.map +1 -0
- package/dist/esm/sessions/types.d.ts +19 -0
- package/dist/esm/sessions/types.d.ts.map +1 -0
- package/dist/esm/sessions/types.js +37 -0
- package/dist/esm/sessions/types.js.map +1 -0
- package/dist/esm/spans/types.d.ts +3 -50
- package/dist/esm/spans/types.d.ts.map +1 -1
- package/dist/esm/spans/types.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/types/annotations.d.ts +37 -0
- package/dist/esm/types/annotations.d.ts.map +1 -1
- package/dist/esm/types/experiments.d.ts +6 -6
- package/dist/esm/types/experiments.d.ts.map +1 -1
- package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/src/__generated__/api/v1.d.ts +529 -4
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/experiments/getExperimentRuns.d.ts +8 -2
- package/dist/src/experiments/getExperimentRuns.d.ts.map +1 -1
- package/dist/src/experiments/getExperimentRuns.js +35 -23
- package/dist/src/experiments/getExperimentRuns.js.map +1 -1
- package/dist/src/experiments/runExperiment.d.ts +7 -1
- package/dist/src/experiments/runExperiment.d.ts.map +1 -1
- package/dist/src/experiments/runExperiment.js +14 -11
- package/dist/src/experiments/runExperiment.js.map +1 -1
- package/dist/src/sessions/addSessionAnnotation.d.ts +44 -0
- package/dist/src/sessions/addSessionAnnotation.d.ts.map +1 -0
- package/dist/src/sessions/addSessionAnnotation.js +48 -0
- package/dist/src/sessions/addSessionAnnotation.js.map +1 -0
- package/dist/src/sessions/index.d.ts +3 -0
- package/dist/src/sessions/index.d.ts.map +1 -0
- package/dist/src/sessions/index.js +19 -0
- package/dist/src/sessions/index.js.map +1 -0
- package/dist/src/sessions/logSessionAnnotations.d.ts +56 -0
- package/dist/src/sessions/logSessionAnnotations.d.ts.map +1 -0
- package/dist/src/sessions/logSessionAnnotations.js +56 -0
- package/dist/src/sessions/logSessionAnnotations.js.map +1 -0
- package/dist/src/sessions/types.d.ts +19 -0
- package/dist/src/sessions/types.d.ts.map +1 -0
- package/dist/src/sessions/types.js +41 -0
- package/dist/src/sessions/types.js.map +1 -0
- package/dist/src/spans/types.d.ts +3 -50
- package/dist/src/spans/types.d.ts.map +1 -1
- package/dist/src/spans/types.js.map +1 -1
- package/dist/src/types/annotations.d.ts +37 -0
- package/dist/src/types/annotations.d.ts.map +1 -1
- package/dist/src/types/experiments.d.ts +6 -6
- package/dist/src/types/experiments.d.ts.map +1 -1
- package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -2
- package/src/__generated__/api/v1.ts +529 -4
- package/src/experiments/getExperimentRuns.ts +44 -15
- package/src/experiments/runExperiment.ts +18 -10
- package/src/sessions/addSessionAnnotation.ts +65 -0
- package/src/sessions/index.ts +2 -0
- package/src/sessions/logSessionAnnotations.ts +77 -0
- package/src/sessions/types.ts +67 -0
- package/src/spans/types.ts +3 -50
- package/src/types/annotations.ts +39 -0
- package/src/types/experiments.ts +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arizeai/phoenix-client",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "A client for the Phoenix API",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"import": "./dist/esm/spans/index.js",
|
|
19
19
|
"require": "./dist/src/spans/index.js"
|
|
20
20
|
},
|
|
21
|
+
"./sessions": {
|
|
22
|
+
"import": "./dist/esm/sessions/index.js",
|
|
23
|
+
"require": "./dist/src/sessions/index.js"
|
|
24
|
+
},
|
|
21
25
|
"./experiments": {
|
|
22
26
|
"import": "./dist/esm/experiments/index.js",
|
|
23
27
|
"require": "./dist/src/experiments/index.js"
|
|
@@ -61,7 +65,9 @@
|
|
|
61
65
|
"openai": "^4.77.0",
|
|
62
66
|
"openapi-typescript": "^7.6.1",
|
|
63
67
|
"tsx": "^4.19.3",
|
|
64
|
-
"
|
|
68
|
+
"typescript": "^5.8.2",
|
|
69
|
+
"vitest": "^2.1.9",
|
|
70
|
+
"@arizeai/phoenix-evals": "0.2.1"
|
|
65
71
|
},
|
|
66
72
|
"dependencies": {
|
|
67
73
|
"@arizeai/openinference-semantic-conventions": "^1.1.0",
|
|
@@ -77,6 +77,40 @@ export interface paths {
|
|
|
77
77
|
patch?: never;
|
|
78
78
|
trace?: never;
|
|
79
79
|
};
|
|
80
|
+
"/v1/projects/{project_identifier}/trace_annotations": {
|
|
81
|
+
parameters: {
|
|
82
|
+
query?: never;
|
|
83
|
+
header?: never;
|
|
84
|
+
path?: never;
|
|
85
|
+
cookie?: never;
|
|
86
|
+
};
|
|
87
|
+
/** Get trace annotations for a list of trace_ids. */
|
|
88
|
+
get: operations["listTraceAnnotationsByTraceIds"];
|
|
89
|
+
put?: never;
|
|
90
|
+
post?: never;
|
|
91
|
+
delete?: never;
|
|
92
|
+
options?: never;
|
|
93
|
+
head?: never;
|
|
94
|
+
patch?: never;
|
|
95
|
+
trace?: never;
|
|
96
|
+
};
|
|
97
|
+
"/v1/projects/{project_identifier}/session_annotations": {
|
|
98
|
+
parameters: {
|
|
99
|
+
query?: never;
|
|
100
|
+
header?: never;
|
|
101
|
+
path?: never;
|
|
102
|
+
cookie?: never;
|
|
103
|
+
};
|
|
104
|
+
/** Get session annotations for a list of session_ids. */
|
|
105
|
+
get: operations["listSessionAnnotationsBySessionIds"];
|
|
106
|
+
put?: never;
|
|
107
|
+
post?: never;
|
|
108
|
+
delete?: never;
|
|
109
|
+
options?: never;
|
|
110
|
+
head?: never;
|
|
111
|
+
patch?: never;
|
|
112
|
+
trace?: never;
|
|
113
|
+
};
|
|
80
114
|
"/v1/datasets": {
|
|
81
115
|
parameters: {
|
|
82
116
|
query?: never;
|
|
@@ -321,6 +355,23 @@ export interface paths {
|
|
|
321
355
|
patch?: never;
|
|
322
356
|
trace?: never;
|
|
323
357
|
};
|
|
358
|
+
"/v1/trace_annotations": {
|
|
359
|
+
parameters: {
|
|
360
|
+
query?: never;
|
|
361
|
+
header?: never;
|
|
362
|
+
path?: never;
|
|
363
|
+
cookie?: never;
|
|
364
|
+
};
|
|
365
|
+
get?: never;
|
|
366
|
+
put?: never;
|
|
367
|
+
/** Create trace annotations */
|
|
368
|
+
post: operations["annotateTraces"];
|
|
369
|
+
delete?: never;
|
|
370
|
+
options?: never;
|
|
371
|
+
head?: never;
|
|
372
|
+
patch?: never;
|
|
373
|
+
trace?: never;
|
|
374
|
+
};
|
|
324
375
|
"/v1/traces/{trace_identifier}": {
|
|
325
376
|
parameters: {
|
|
326
377
|
query?: never;
|
|
@@ -636,6 +687,23 @@ export interface paths {
|
|
|
636
687
|
patch?: never;
|
|
637
688
|
trace?: never;
|
|
638
689
|
};
|
|
690
|
+
"/v1/session_annotations": {
|
|
691
|
+
parameters: {
|
|
692
|
+
query?: never;
|
|
693
|
+
header?: never;
|
|
694
|
+
path?: never;
|
|
695
|
+
cookie?: never;
|
|
696
|
+
};
|
|
697
|
+
get?: never;
|
|
698
|
+
put?: never;
|
|
699
|
+
/** Create session annotations */
|
|
700
|
+
post: operations["annotateSessions"];
|
|
701
|
+
delete?: never;
|
|
702
|
+
options?: never;
|
|
703
|
+
head?: never;
|
|
704
|
+
patch?: never;
|
|
705
|
+
trace?: never;
|
|
706
|
+
};
|
|
639
707
|
"/v1/document_annotations": {
|
|
640
708
|
parameters: {
|
|
641
709
|
query?: never;
|
|
@@ -701,6 +769,16 @@ export interface paths {
|
|
|
701
769
|
export type webhooks = Record<string, never>;
|
|
702
770
|
export interface components {
|
|
703
771
|
schemas: {
|
|
772
|
+
/** AnnotateSessionsRequestBody */
|
|
773
|
+
AnnotateSessionsRequestBody: {
|
|
774
|
+
/** Data */
|
|
775
|
+
data: components["schemas"]["SessionAnnotationData"][];
|
|
776
|
+
};
|
|
777
|
+
/** AnnotateSessionsResponseBody */
|
|
778
|
+
AnnotateSessionsResponseBody: {
|
|
779
|
+
/** Data */
|
|
780
|
+
data: components["schemas"]["InsertedSessionAnnotation"][];
|
|
781
|
+
};
|
|
704
782
|
/** AnnotateSpanDocumentsRequestBody */
|
|
705
783
|
AnnotateSpanDocumentsRequestBody: {
|
|
706
784
|
/** Data */
|
|
@@ -721,6 +799,19 @@ export interface components {
|
|
|
721
799
|
/** Data */
|
|
722
800
|
data: components["schemas"]["InsertedSpanAnnotation"][];
|
|
723
801
|
};
|
|
802
|
+
/** AnnotateTracesRequestBody */
|
|
803
|
+
AnnotateTracesRequestBody: {
|
|
804
|
+
/**
|
|
805
|
+
* Data
|
|
806
|
+
* @description The trace annotations to be upserted
|
|
807
|
+
*/
|
|
808
|
+
data: components["schemas"]["TraceAnnotationData"][];
|
|
809
|
+
};
|
|
810
|
+
/** AnnotateTracesResponseBody */
|
|
811
|
+
AnnotateTracesResponseBody: {
|
|
812
|
+
/** Data */
|
|
813
|
+
data: components["schemas"]["InsertedTraceAnnotation"][];
|
|
814
|
+
};
|
|
724
815
|
/** AnnotationResult */
|
|
725
816
|
AnnotationResult: {
|
|
726
817
|
/**
|
|
@@ -1268,6 +1359,14 @@ export interface components {
|
|
|
1268
1359
|
};
|
|
1269
1360
|
/** Identifier */
|
|
1270
1361
|
Identifier: string;
|
|
1362
|
+
/** InsertedSessionAnnotation */
|
|
1363
|
+
InsertedSessionAnnotation: {
|
|
1364
|
+
/**
|
|
1365
|
+
* Id
|
|
1366
|
+
* @description The ID of the inserted session annotation
|
|
1367
|
+
*/
|
|
1368
|
+
id: string;
|
|
1369
|
+
};
|
|
1271
1370
|
/** InsertedSpanAnnotation */
|
|
1272
1371
|
InsertedSpanAnnotation: {
|
|
1273
1372
|
/**
|
|
@@ -1284,6 +1383,14 @@ export interface components {
|
|
|
1284
1383
|
*/
|
|
1285
1384
|
id: string;
|
|
1286
1385
|
};
|
|
1386
|
+
/** InsertedTraceAnnotation */
|
|
1387
|
+
InsertedTraceAnnotation: {
|
|
1388
|
+
/**
|
|
1389
|
+
* Id
|
|
1390
|
+
* @description The ID of the inserted trace annotation
|
|
1391
|
+
*/
|
|
1392
|
+
id: string;
|
|
1393
|
+
};
|
|
1287
1394
|
/** ListDatasetExamplesData */
|
|
1288
1395
|
ListDatasetExamplesData: {
|
|
1289
1396
|
/** Dataset Id */
|
|
@@ -1345,7 +1452,7 @@ export interface components {
|
|
|
1345
1452
|
* Role
|
|
1346
1453
|
* @enum {string}
|
|
1347
1454
|
*/
|
|
1348
|
-
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1455
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER" | "VIEWER";
|
|
1349
1456
|
/**
|
|
1350
1457
|
* @description discriminator enum property added by openapi-typescript
|
|
1351
1458
|
* @enum {string}
|
|
@@ -1366,7 +1473,7 @@ export interface components {
|
|
|
1366
1473
|
* Role
|
|
1367
1474
|
* @enum {string}
|
|
1368
1475
|
*/
|
|
1369
|
-
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1476
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER" | "VIEWER";
|
|
1370
1477
|
/**
|
|
1371
1478
|
* @description discriminator enum property added by openapi-typescript
|
|
1372
1479
|
* @enum {string}
|
|
@@ -1402,7 +1509,7 @@ export interface components {
|
|
|
1402
1509
|
* Role
|
|
1403
1510
|
* @enum {string}
|
|
1404
1511
|
*/
|
|
1405
|
-
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1512
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER" | "VIEWER";
|
|
1406
1513
|
/**
|
|
1407
1514
|
* @description discriminator enum property added by openapi-typescript
|
|
1408
1515
|
* @enum {string}
|
|
@@ -1425,7 +1532,7 @@ export interface components {
|
|
|
1425
1532
|
* Role
|
|
1426
1533
|
* @enum {string}
|
|
1427
1534
|
*/
|
|
1428
|
-
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1535
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER" | "VIEWER";
|
|
1429
1536
|
/**
|
|
1430
1537
|
* @description discriminator enum property added by openapi-typescript
|
|
1431
1538
|
* @enum {string}
|
|
@@ -2092,6 +2199,100 @@ export interface components {
|
|
|
2092
2199
|
*/
|
|
2093
2200
|
reasoning_effort?: "minimal" | "low" | "medium" | "high";
|
|
2094
2201
|
};
|
|
2202
|
+
/** SessionAnnotation */
|
|
2203
|
+
SessionAnnotation: {
|
|
2204
|
+
/** Id */
|
|
2205
|
+
id: string;
|
|
2206
|
+
/**
|
|
2207
|
+
* Created At
|
|
2208
|
+
* Format: date-time
|
|
2209
|
+
*/
|
|
2210
|
+
created_at: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* Updated At
|
|
2213
|
+
* Format: date-time
|
|
2214
|
+
*/
|
|
2215
|
+
updated_at: string;
|
|
2216
|
+
/**
|
|
2217
|
+
* Source
|
|
2218
|
+
* @enum {string}
|
|
2219
|
+
*/
|
|
2220
|
+
source: "API" | "APP";
|
|
2221
|
+
/** User Id */
|
|
2222
|
+
user_id: string | null;
|
|
2223
|
+
/**
|
|
2224
|
+
* Name
|
|
2225
|
+
* @description The name of the annotation
|
|
2226
|
+
*/
|
|
2227
|
+
name: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* Annotator Kind
|
|
2230
|
+
* @description The kind of annotator used for the annotation
|
|
2231
|
+
* @enum {string}
|
|
2232
|
+
*/
|
|
2233
|
+
annotator_kind: "LLM" | "CODE" | "HUMAN";
|
|
2234
|
+
/** @description The result of the annotation */
|
|
2235
|
+
result?: components["schemas"]["AnnotationResult"] | null;
|
|
2236
|
+
/**
|
|
2237
|
+
* Metadata
|
|
2238
|
+
* @description Metadata for the annotation
|
|
2239
|
+
*/
|
|
2240
|
+
metadata?: {
|
|
2241
|
+
[key: string]: unknown;
|
|
2242
|
+
} | null;
|
|
2243
|
+
/**
|
|
2244
|
+
* Identifier
|
|
2245
|
+
* @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
|
|
2246
|
+
* @default
|
|
2247
|
+
*/
|
|
2248
|
+
identifier?: string;
|
|
2249
|
+
/**
|
|
2250
|
+
* Session Id
|
|
2251
|
+
* @description Session ID
|
|
2252
|
+
*/
|
|
2253
|
+
session_id: string;
|
|
2254
|
+
};
|
|
2255
|
+
/** SessionAnnotationData */
|
|
2256
|
+
SessionAnnotationData: {
|
|
2257
|
+
/**
|
|
2258
|
+
* Name
|
|
2259
|
+
* @description The name of the annotation
|
|
2260
|
+
*/
|
|
2261
|
+
name: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* Annotator Kind
|
|
2264
|
+
* @description The kind of annotator used for the annotation
|
|
2265
|
+
* @enum {string}
|
|
2266
|
+
*/
|
|
2267
|
+
annotator_kind: "LLM" | "CODE" | "HUMAN";
|
|
2268
|
+
/** @description The result of the annotation */
|
|
2269
|
+
result?: components["schemas"]["AnnotationResult"] | null;
|
|
2270
|
+
/**
|
|
2271
|
+
* Metadata
|
|
2272
|
+
* @description Metadata for the annotation
|
|
2273
|
+
*/
|
|
2274
|
+
metadata?: {
|
|
2275
|
+
[key: string]: unknown;
|
|
2276
|
+
} | null;
|
|
2277
|
+
/**
|
|
2278
|
+
* Identifier
|
|
2279
|
+
* @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
|
|
2280
|
+
* @default
|
|
2281
|
+
*/
|
|
2282
|
+
identifier?: string;
|
|
2283
|
+
/**
|
|
2284
|
+
* Session Id
|
|
2285
|
+
* @description Session ID
|
|
2286
|
+
*/
|
|
2287
|
+
session_id: string;
|
|
2288
|
+
};
|
|
2289
|
+
/** SessionAnnotationsResponseBody */
|
|
2290
|
+
SessionAnnotationsResponseBody: {
|
|
2291
|
+
/** Data */
|
|
2292
|
+
data: components["schemas"]["SessionAnnotation"][];
|
|
2293
|
+
/** Next Cursor */
|
|
2294
|
+
next_cursor: string | null;
|
|
2295
|
+
};
|
|
2095
2296
|
/** Span */
|
|
2096
2297
|
Span: {
|
|
2097
2298
|
/**
|
|
@@ -2375,6 +2576,100 @@ export interface components {
|
|
|
2375
2576
|
[key: string]: unknown;
|
|
2376
2577
|
} | unknown[] | null;
|
|
2377
2578
|
};
|
|
2579
|
+
/** TraceAnnotation */
|
|
2580
|
+
TraceAnnotation: {
|
|
2581
|
+
/** Id */
|
|
2582
|
+
id: string;
|
|
2583
|
+
/**
|
|
2584
|
+
* Created At
|
|
2585
|
+
* Format: date-time
|
|
2586
|
+
*/
|
|
2587
|
+
created_at: string;
|
|
2588
|
+
/**
|
|
2589
|
+
* Updated At
|
|
2590
|
+
* Format: date-time
|
|
2591
|
+
*/
|
|
2592
|
+
updated_at: string;
|
|
2593
|
+
/**
|
|
2594
|
+
* Source
|
|
2595
|
+
* @enum {string}
|
|
2596
|
+
*/
|
|
2597
|
+
source: "API" | "APP";
|
|
2598
|
+
/** User Id */
|
|
2599
|
+
user_id: string | null;
|
|
2600
|
+
/**
|
|
2601
|
+
* Name
|
|
2602
|
+
* @description The name of the annotation
|
|
2603
|
+
*/
|
|
2604
|
+
name: string;
|
|
2605
|
+
/**
|
|
2606
|
+
* Annotator Kind
|
|
2607
|
+
* @description The kind of annotator used for the annotation
|
|
2608
|
+
* @enum {string}
|
|
2609
|
+
*/
|
|
2610
|
+
annotator_kind: "LLM" | "CODE" | "HUMAN";
|
|
2611
|
+
/** @description The result of the annotation */
|
|
2612
|
+
result?: components["schemas"]["AnnotationResult"] | null;
|
|
2613
|
+
/**
|
|
2614
|
+
* Metadata
|
|
2615
|
+
* @description Metadata for the annotation
|
|
2616
|
+
*/
|
|
2617
|
+
metadata?: {
|
|
2618
|
+
[key: string]: unknown;
|
|
2619
|
+
} | null;
|
|
2620
|
+
/**
|
|
2621
|
+
* Identifier
|
|
2622
|
+
* @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
|
|
2623
|
+
* @default
|
|
2624
|
+
*/
|
|
2625
|
+
identifier?: string;
|
|
2626
|
+
/**
|
|
2627
|
+
* Trace Id
|
|
2628
|
+
* @description OpenTelemetry Trace ID (hex format w/o 0x prefix)
|
|
2629
|
+
*/
|
|
2630
|
+
trace_id: string;
|
|
2631
|
+
};
|
|
2632
|
+
/** TraceAnnotationData */
|
|
2633
|
+
TraceAnnotationData: {
|
|
2634
|
+
/**
|
|
2635
|
+
* Name
|
|
2636
|
+
* @description The name of the annotation
|
|
2637
|
+
*/
|
|
2638
|
+
name: string;
|
|
2639
|
+
/**
|
|
2640
|
+
* Annotator Kind
|
|
2641
|
+
* @description The kind of annotator used for the annotation
|
|
2642
|
+
* @enum {string}
|
|
2643
|
+
*/
|
|
2644
|
+
annotator_kind: "LLM" | "CODE" | "HUMAN";
|
|
2645
|
+
/** @description The result of the annotation */
|
|
2646
|
+
result?: components["schemas"]["AnnotationResult"] | null;
|
|
2647
|
+
/**
|
|
2648
|
+
* Metadata
|
|
2649
|
+
* @description Metadata for the annotation
|
|
2650
|
+
*/
|
|
2651
|
+
metadata?: {
|
|
2652
|
+
[key: string]: unknown;
|
|
2653
|
+
} | null;
|
|
2654
|
+
/**
|
|
2655
|
+
* Identifier
|
|
2656
|
+
* @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
|
|
2657
|
+
* @default
|
|
2658
|
+
*/
|
|
2659
|
+
identifier?: string;
|
|
2660
|
+
/**
|
|
2661
|
+
* Trace Id
|
|
2662
|
+
* @description OpenTelemetry Trace ID (hex format w/o 0x prefix)
|
|
2663
|
+
*/
|
|
2664
|
+
trace_id: string;
|
|
2665
|
+
};
|
|
2666
|
+
/** TraceAnnotationsResponseBody */
|
|
2667
|
+
TraceAnnotationsResponseBody: {
|
|
2668
|
+
/** Data */
|
|
2669
|
+
data: components["schemas"]["TraceAnnotation"][];
|
|
2670
|
+
/** Next Cursor */
|
|
2671
|
+
next_cursor: string | null;
|
|
2672
|
+
};
|
|
2378
2673
|
/** UpdateAnnotationConfigResponseBody */
|
|
2379
2674
|
UpdateAnnotationConfigResponseBody: {
|
|
2380
2675
|
/** Data */
|
|
@@ -2753,6 +3048,128 @@ export interface operations {
|
|
|
2753
3048
|
};
|
|
2754
3049
|
};
|
|
2755
3050
|
};
|
|
3051
|
+
listTraceAnnotationsByTraceIds: {
|
|
3052
|
+
parameters: {
|
|
3053
|
+
query: {
|
|
3054
|
+
/** @description One or more trace id to fetch annotations for */
|
|
3055
|
+
trace_ids: string[];
|
|
3056
|
+
/** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list. */
|
|
3057
|
+
include_annotation_names?: string[] | null;
|
|
3058
|
+
/** @description Optional list of annotation names to exclude from results. */
|
|
3059
|
+
exclude_annotation_names?: string[] | null;
|
|
3060
|
+
/** @description A cursor for pagination */
|
|
3061
|
+
cursor?: string | null;
|
|
3062
|
+
/** @description The maximum number of annotations to return in a single request */
|
|
3063
|
+
limit?: number;
|
|
3064
|
+
};
|
|
3065
|
+
header?: never;
|
|
3066
|
+
path: {
|
|
3067
|
+
/** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
|
|
3068
|
+
project_identifier: string;
|
|
3069
|
+
};
|
|
3070
|
+
cookie?: never;
|
|
3071
|
+
};
|
|
3072
|
+
requestBody?: never;
|
|
3073
|
+
responses: {
|
|
3074
|
+
/** @description Successful Response */
|
|
3075
|
+
200: {
|
|
3076
|
+
headers: {
|
|
3077
|
+
[name: string]: unknown;
|
|
3078
|
+
};
|
|
3079
|
+
content: {
|
|
3080
|
+
"application/json": components["schemas"]["TraceAnnotationsResponseBody"];
|
|
3081
|
+
};
|
|
3082
|
+
};
|
|
3083
|
+
/** @description Forbidden */
|
|
3084
|
+
403: {
|
|
3085
|
+
headers: {
|
|
3086
|
+
[name: string]: unknown;
|
|
3087
|
+
};
|
|
3088
|
+
content: {
|
|
3089
|
+
"text/plain": string;
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
/** @description Project or traces not found */
|
|
3093
|
+
404: {
|
|
3094
|
+
headers: {
|
|
3095
|
+
[name: string]: unknown;
|
|
3096
|
+
};
|
|
3097
|
+
content: {
|
|
3098
|
+
"text/plain": string;
|
|
3099
|
+
};
|
|
3100
|
+
};
|
|
3101
|
+
/** @description Invalid parameters */
|
|
3102
|
+
422: {
|
|
3103
|
+
headers: {
|
|
3104
|
+
[name: string]: unknown;
|
|
3105
|
+
};
|
|
3106
|
+
content: {
|
|
3107
|
+
"text/plain": string;
|
|
3108
|
+
};
|
|
3109
|
+
};
|
|
3110
|
+
};
|
|
3111
|
+
};
|
|
3112
|
+
listSessionAnnotationsBySessionIds: {
|
|
3113
|
+
parameters: {
|
|
3114
|
+
query: {
|
|
3115
|
+
/** @description One or more session id to fetch annotations for */
|
|
3116
|
+
session_ids: string[];
|
|
3117
|
+
/** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list. */
|
|
3118
|
+
include_annotation_names?: string[] | null;
|
|
3119
|
+
/** @description Optional list of annotation names to exclude from results. */
|
|
3120
|
+
exclude_annotation_names?: string[] | null;
|
|
3121
|
+
/** @description A cursor for pagination */
|
|
3122
|
+
cursor?: string | null;
|
|
3123
|
+
/** @description The maximum number of annotations to return in a single request */
|
|
3124
|
+
limit?: number;
|
|
3125
|
+
};
|
|
3126
|
+
header?: never;
|
|
3127
|
+
path: {
|
|
3128
|
+
/** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
|
|
3129
|
+
project_identifier: string;
|
|
3130
|
+
};
|
|
3131
|
+
cookie?: never;
|
|
3132
|
+
};
|
|
3133
|
+
requestBody?: never;
|
|
3134
|
+
responses: {
|
|
3135
|
+
/** @description Successful Response */
|
|
3136
|
+
200: {
|
|
3137
|
+
headers: {
|
|
3138
|
+
[name: string]: unknown;
|
|
3139
|
+
};
|
|
3140
|
+
content: {
|
|
3141
|
+
"application/json": components["schemas"]["SessionAnnotationsResponseBody"];
|
|
3142
|
+
};
|
|
3143
|
+
};
|
|
3144
|
+
/** @description Forbidden */
|
|
3145
|
+
403: {
|
|
3146
|
+
headers: {
|
|
3147
|
+
[name: string]: unknown;
|
|
3148
|
+
};
|
|
3149
|
+
content: {
|
|
3150
|
+
"text/plain": string;
|
|
3151
|
+
};
|
|
3152
|
+
};
|
|
3153
|
+
/** @description Project or sessions not found */
|
|
3154
|
+
404: {
|
|
3155
|
+
headers: {
|
|
3156
|
+
[name: string]: unknown;
|
|
3157
|
+
};
|
|
3158
|
+
content: {
|
|
3159
|
+
"text/plain": string;
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
3162
|
+
/** @description Invalid parameters */
|
|
3163
|
+
422: {
|
|
3164
|
+
headers: {
|
|
3165
|
+
[name: string]: unknown;
|
|
3166
|
+
};
|
|
3167
|
+
content: {
|
|
3168
|
+
"text/plain": string;
|
|
3169
|
+
};
|
|
3170
|
+
};
|
|
3171
|
+
};
|
|
3172
|
+
};
|
|
2756
3173
|
listDatasets: {
|
|
2757
3174
|
parameters: {
|
|
2758
3175
|
query?: {
|
|
@@ -3599,6 +4016,60 @@ export interface operations {
|
|
|
3599
4016
|
};
|
|
3600
4017
|
};
|
|
3601
4018
|
};
|
|
4019
|
+
annotateTraces: {
|
|
4020
|
+
parameters: {
|
|
4021
|
+
query?: {
|
|
4022
|
+
/** @description If true, fulfill request synchronously. */
|
|
4023
|
+
sync?: boolean;
|
|
4024
|
+
};
|
|
4025
|
+
header?: never;
|
|
4026
|
+
path?: never;
|
|
4027
|
+
cookie?: never;
|
|
4028
|
+
};
|
|
4029
|
+
requestBody: {
|
|
4030
|
+
content: {
|
|
4031
|
+
"application/json": components["schemas"]["AnnotateTracesRequestBody"];
|
|
4032
|
+
};
|
|
4033
|
+
};
|
|
4034
|
+
responses: {
|
|
4035
|
+
/** @description Successful Response */
|
|
4036
|
+
200: {
|
|
4037
|
+
headers: {
|
|
4038
|
+
[name: string]: unknown;
|
|
4039
|
+
};
|
|
4040
|
+
content: {
|
|
4041
|
+
"application/json": components["schemas"]["AnnotateTracesResponseBody"];
|
|
4042
|
+
};
|
|
4043
|
+
};
|
|
4044
|
+
/** @description Forbidden */
|
|
4045
|
+
403: {
|
|
4046
|
+
headers: {
|
|
4047
|
+
[name: string]: unknown;
|
|
4048
|
+
};
|
|
4049
|
+
content: {
|
|
4050
|
+
"text/plain": string;
|
|
4051
|
+
};
|
|
4052
|
+
};
|
|
4053
|
+
/** @description Trace not found */
|
|
4054
|
+
404: {
|
|
4055
|
+
headers: {
|
|
4056
|
+
[name: string]: unknown;
|
|
4057
|
+
};
|
|
4058
|
+
content: {
|
|
4059
|
+
"text/plain": string;
|
|
4060
|
+
};
|
|
4061
|
+
};
|
|
4062
|
+
/** @description Validation Error */
|
|
4063
|
+
422: {
|
|
4064
|
+
headers: {
|
|
4065
|
+
[name: string]: unknown;
|
|
4066
|
+
};
|
|
4067
|
+
content: {
|
|
4068
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4069
|
+
};
|
|
4070
|
+
};
|
|
4071
|
+
};
|
|
4072
|
+
};
|
|
3602
4073
|
deleteTrace: {
|
|
3603
4074
|
parameters: {
|
|
3604
4075
|
query?: never;
|
|
@@ -4671,6 +5142,60 @@ export interface operations {
|
|
|
4671
5142
|
};
|
|
4672
5143
|
};
|
|
4673
5144
|
};
|
|
5145
|
+
annotateSessions: {
|
|
5146
|
+
parameters: {
|
|
5147
|
+
query?: {
|
|
5148
|
+
/** @description If true, fulfill request synchronously. */
|
|
5149
|
+
sync?: boolean;
|
|
5150
|
+
};
|
|
5151
|
+
header?: never;
|
|
5152
|
+
path?: never;
|
|
5153
|
+
cookie?: never;
|
|
5154
|
+
};
|
|
5155
|
+
requestBody: {
|
|
5156
|
+
content: {
|
|
5157
|
+
"application/json": components["schemas"]["AnnotateSessionsRequestBody"];
|
|
5158
|
+
};
|
|
5159
|
+
};
|
|
5160
|
+
responses: {
|
|
5161
|
+
/** @description Session annotations inserted successfully */
|
|
5162
|
+
200: {
|
|
5163
|
+
headers: {
|
|
5164
|
+
[name: string]: unknown;
|
|
5165
|
+
};
|
|
5166
|
+
content: {
|
|
5167
|
+
"application/json": components["schemas"]["AnnotateSessionsResponseBody"];
|
|
5168
|
+
};
|
|
5169
|
+
};
|
|
5170
|
+
/** @description Forbidden */
|
|
5171
|
+
403: {
|
|
5172
|
+
headers: {
|
|
5173
|
+
[name: string]: unknown;
|
|
5174
|
+
};
|
|
5175
|
+
content: {
|
|
5176
|
+
"text/plain": string;
|
|
5177
|
+
};
|
|
5178
|
+
};
|
|
5179
|
+
/** @description Session not found */
|
|
5180
|
+
404: {
|
|
5181
|
+
headers: {
|
|
5182
|
+
[name: string]: unknown;
|
|
5183
|
+
};
|
|
5184
|
+
content: {
|
|
5185
|
+
"text/plain": string;
|
|
5186
|
+
};
|
|
5187
|
+
};
|
|
5188
|
+
/** @description Validation Error */
|
|
5189
|
+
422: {
|
|
5190
|
+
headers: {
|
|
5191
|
+
[name: string]: unknown;
|
|
5192
|
+
};
|
|
5193
|
+
content: {
|
|
5194
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
5195
|
+
};
|
|
5196
|
+
};
|
|
5197
|
+
};
|
|
5198
|
+
};
|
|
4674
5199
|
annotateSpanDocuments: {
|
|
4675
5200
|
parameters: {
|
|
4676
5201
|
query?: {
|