@arizeai/phoenix-client 1.0.2 → 1.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/README.md +17 -5
- package/dist/esm/__generated__/api/v1.d.ts +1423 -284
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/schemas/llm/constants.d.ts +1 -1
- package/dist/esm/schemas/llm/converters.d.ts +4 -4
- package/dist/esm/schemas/llm/openai/converters.d.ts +1 -1
- package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts +8 -8
- package/dist/esm/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +5 -5
- package/dist/esm/schemas/llm/phoenixPrompt/messageSchemas.d.ts +8 -8
- package/dist/esm/schemas/llm/schemas.d.ts +4 -4
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/formatPromptMessages.d.ts +3 -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 +1423 -284
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/schemas/llm/constants.d.ts +1 -1
- package/dist/src/schemas/llm/converters.d.ts +4 -4
- package/dist/src/schemas/llm/openai/converters.d.ts +1 -1
- package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts +8 -8
- package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +5 -5
- package/dist/src/schemas/llm/phoenixPrompt/messageSchemas.d.ts +8 -8
- package/dist/src/schemas/llm/schemas.d.ts +4 -4
- package/dist/src/utils/formatPromptMessages.d.ts +3 -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 +2 -2
- package/src/__generated__/api/v1.ts +1423 -284
|
@@ -3,6 +3,79 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
+
"/v1/annotation_configs": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* List annotation configurations
|
|
15
|
+
* @description Retrieve a paginated list of all annotation configurations in the system.
|
|
16
|
+
*/
|
|
17
|
+
get: operations["list_annotation_configs_v1_annotation_configs_get"];
|
|
18
|
+
put?: never;
|
|
19
|
+
/** Create an annotation configuration */
|
|
20
|
+
post: operations["create_annotation_config_v1_annotation_configs_post"];
|
|
21
|
+
delete?: never;
|
|
22
|
+
options?: never;
|
|
23
|
+
head?: never;
|
|
24
|
+
patch?: never;
|
|
25
|
+
trace?: never;
|
|
26
|
+
};
|
|
27
|
+
"/v1/annotation_configs/{config_identifier}": {
|
|
28
|
+
parameters: {
|
|
29
|
+
query?: never;
|
|
30
|
+
header?: never;
|
|
31
|
+
path?: never;
|
|
32
|
+
cookie?: never;
|
|
33
|
+
};
|
|
34
|
+
/** Get an annotation configuration by ID or name */
|
|
35
|
+
get: operations["get_annotation_config_by_name_or_id_v1_annotation_configs__config_identifier__get"];
|
|
36
|
+
put?: never;
|
|
37
|
+
post?: never;
|
|
38
|
+
delete?: never;
|
|
39
|
+
options?: never;
|
|
40
|
+
head?: never;
|
|
41
|
+
patch?: never;
|
|
42
|
+
trace?: never;
|
|
43
|
+
};
|
|
44
|
+
"/v1/annotation_configs/{config_id}": {
|
|
45
|
+
parameters: {
|
|
46
|
+
query?: never;
|
|
47
|
+
header?: never;
|
|
48
|
+
path?: never;
|
|
49
|
+
cookie?: never;
|
|
50
|
+
};
|
|
51
|
+
get?: never;
|
|
52
|
+
/** Update an annotation configuration */
|
|
53
|
+
put: operations["update_annotation_config_v1_annotation_configs__config_id__put"];
|
|
54
|
+
post?: never;
|
|
55
|
+
/** Delete an annotation configuration */
|
|
56
|
+
delete: operations["delete_annotation_config_v1_annotation_configs__config_id__delete"];
|
|
57
|
+
options?: never;
|
|
58
|
+
head?: never;
|
|
59
|
+
patch?: never;
|
|
60
|
+
trace?: never;
|
|
61
|
+
};
|
|
62
|
+
"/v1/projects/{project_identifier}/span_annotations": {
|
|
63
|
+
parameters: {
|
|
64
|
+
query?: never;
|
|
65
|
+
header?: never;
|
|
66
|
+
path?: never;
|
|
67
|
+
cookie?: never;
|
|
68
|
+
};
|
|
69
|
+
/** Get span annotations for a list of span_ids. */
|
|
70
|
+
get: operations["listSpanAnnotationsBySpanIds"];
|
|
71
|
+
put?: never;
|
|
72
|
+
post?: never;
|
|
73
|
+
delete?: never;
|
|
74
|
+
options?: never;
|
|
75
|
+
head?: never;
|
|
76
|
+
patch?: never;
|
|
77
|
+
trace?: never;
|
|
78
|
+
};
|
|
6
79
|
"/v1/datasets": {
|
|
7
80
|
parameters: {
|
|
8
81
|
query?: never;
|
|
@@ -192,6 +265,23 @@ export interface paths {
|
|
|
192
265
|
patch?: never;
|
|
193
266
|
trace?: never;
|
|
194
267
|
};
|
|
268
|
+
"/v1/experiments/{experiment_id}/csv": {
|
|
269
|
+
parameters: {
|
|
270
|
+
query?: never;
|
|
271
|
+
header?: never;
|
|
272
|
+
path?: never;
|
|
273
|
+
cookie?: never;
|
|
274
|
+
};
|
|
275
|
+
/** Download experiment runs as a CSV file */
|
|
276
|
+
get: operations["getExperimentCSV"];
|
|
277
|
+
put?: never;
|
|
278
|
+
post?: never;
|
|
279
|
+
delete?: never;
|
|
280
|
+
options?: never;
|
|
281
|
+
head?: never;
|
|
282
|
+
patch?: never;
|
|
283
|
+
trace?: never;
|
|
284
|
+
};
|
|
195
285
|
"/v1/span_annotations": {
|
|
196
286
|
parameters: {
|
|
197
287
|
query?: never;
|
|
@@ -201,7 +291,7 @@ export interface paths {
|
|
|
201
291
|
};
|
|
202
292
|
get?: never;
|
|
203
293
|
put?: never;
|
|
204
|
-
/** Create
|
|
294
|
+
/** Create span annotations */
|
|
205
295
|
post: operations["annotateSpans"];
|
|
206
296
|
delete?: never;
|
|
207
297
|
options?: never;
|
|
@@ -234,10 +324,16 @@ export interface paths {
|
|
|
234
324
|
path?: never;
|
|
235
325
|
cookie?: never;
|
|
236
326
|
};
|
|
237
|
-
/**
|
|
327
|
+
/**
|
|
328
|
+
* List all prompts
|
|
329
|
+
* @description Retrieve a paginated list of all prompts in the system. A prompt can have multiple versions.
|
|
330
|
+
*/
|
|
238
331
|
get: operations["getPrompts"];
|
|
239
332
|
put?: never;
|
|
240
|
-
/**
|
|
333
|
+
/**
|
|
334
|
+
* Create a new prompt
|
|
335
|
+
* @description Create a new prompt and its initial version. A prompt can have multiple versions.
|
|
336
|
+
*/
|
|
241
337
|
post: operations["postPromptVersion"];
|
|
242
338
|
delete?: never;
|
|
243
339
|
options?: never;
|
|
@@ -252,7 +348,10 @@ export interface paths {
|
|
|
252
348
|
path?: never;
|
|
253
349
|
cookie?: never;
|
|
254
350
|
};
|
|
255
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* List prompt versions
|
|
353
|
+
* @description Retrieve all versions of a specific prompt with pagination support. Each prompt can have multiple versions with different configurations.
|
|
354
|
+
*/
|
|
256
355
|
get: operations["listPromptVersions"];
|
|
257
356
|
put?: never;
|
|
258
357
|
post?: never;
|
|
@@ -269,7 +368,10 @@ export interface paths {
|
|
|
269
368
|
path?: never;
|
|
270
369
|
cookie?: never;
|
|
271
370
|
};
|
|
272
|
-
/**
|
|
371
|
+
/**
|
|
372
|
+
* Get prompt version by ID
|
|
373
|
+
* @description Retrieve a specific prompt version using its unique identifier. A prompt version contains the actual template and configuration.
|
|
374
|
+
*/
|
|
273
375
|
get: operations["getPromptVersionByPromptVersionId"];
|
|
274
376
|
put?: never;
|
|
275
377
|
post?: never;
|
|
@@ -286,7 +388,10 @@ export interface paths {
|
|
|
286
388
|
path?: never;
|
|
287
389
|
cookie?: never;
|
|
288
390
|
};
|
|
289
|
-
/**
|
|
391
|
+
/**
|
|
392
|
+
* Get prompt version by tag
|
|
393
|
+
* @description Retrieve a specific prompt version using its tag name. Tags are used to identify specific versions of a prompt.
|
|
394
|
+
*/
|
|
290
395
|
get: operations["getPromptVersionByTagName"];
|
|
291
396
|
put?: never;
|
|
292
397
|
post?: never;
|
|
@@ -303,7 +408,10 @@ export interface paths {
|
|
|
303
408
|
path?: never;
|
|
304
409
|
cookie?: never;
|
|
305
410
|
};
|
|
306
|
-
/**
|
|
411
|
+
/**
|
|
412
|
+
* Get latest prompt version
|
|
413
|
+
* @description Retrieve the most recent version of a specific prompt.
|
|
414
|
+
*/
|
|
307
415
|
get: operations["getPromptVersionLatest"];
|
|
308
416
|
put?: never;
|
|
309
417
|
post?: never;
|
|
@@ -313,6 +421,82 @@ export interface paths {
|
|
|
313
421
|
patch?: never;
|
|
314
422
|
trace?: never;
|
|
315
423
|
};
|
|
424
|
+
"/v1/prompt_versions/{prompt_version_id}/tags": {
|
|
425
|
+
parameters: {
|
|
426
|
+
query?: never;
|
|
427
|
+
header?: never;
|
|
428
|
+
path?: never;
|
|
429
|
+
cookie?: never;
|
|
430
|
+
};
|
|
431
|
+
/**
|
|
432
|
+
* List prompt version tags
|
|
433
|
+
* @description Retrieve all tags associated with a specific prompt version. Tags are used to identify and categorize different versions of a prompt.
|
|
434
|
+
*/
|
|
435
|
+
get: operations["getPromptVersionTags"];
|
|
436
|
+
put?: never;
|
|
437
|
+
/**
|
|
438
|
+
* Add tag to prompt version
|
|
439
|
+
* @description Add a new tag to a specific prompt version. Tags help identify and categorize different versions of a prompt.
|
|
440
|
+
*/
|
|
441
|
+
post: operations["createPromptVersionTag"];
|
|
442
|
+
delete?: never;
|
|
443
|
+
options?: never;
|
|
444
|
+
head?: never;
|
|
445
|
+
patch?: never;
|
|
446
|
+
trace?: never;
|
|
447
|
+
};
|
|
448
|
+
"/v1/projects": {
|
|
449
|
+
parameters: {
|
|
450
|
+
query?: never;
|
|
451
|
+
header?: never;
|
|
452
|
+
path?: never;
|
|
453
|
+
cookie?: never;
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* List all projects
|
|
457
|
+
* @description Retrieve a paginated list of all projects in the system.
|
|
458
|
+
*/
|
|
459
|
+
get: operations["getProjects"];
|
|
460
|
+
put?: never;
|
|
461
|
+
/**
|
|
462
|
+
* Create a new project
|
|
463
|
+
* @description Create a new project with the specified configuration.
|
|
464
|
+
*/
|
|
465
|
+
post: operations["createProject"];
|
|
466
|
+
delete?: never;
|
|
467
|
+
options?: never;
|
|
468
|
+
head?: never;
|
|
469
|
+
patch?: never;
|
|
470
|
+
trace?: never;
|
|
471
|
+
};
|
|
472
|
+
"/v1/projects/{project_identifier}": {
|
|
473
|
+
parameters: {
|
|
474
|
+
query?: never;
|
|
475
|
+
header?: never;
|
|
476
|
+
path?: never;
|
|
477
|
+
cookie?: never;
|
|
478
|
+
};
|
|
479
|
+
/**
|
|
480
|
+
* Get project by ID or name
|
|
481
|
+
* @description Retrieve a specific project using its unique identifier: either project ID or project name. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.
|
|
482
|
+
*/
|
|
483
|
+
get: operations["getProject"];
|
|
484
|
+
/**
|
|
485
|
+
* Update a project by ID or name
|
|
486
|
+
* @description Update an existing project with new configuration. Project names cannot be changed. The project identifier is either project ID or project name. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.
|
|
487
|
+
*/
|
|
488
|
+
put: operations["updateProject"];
|
|
489
|
+
post?: never;
|
|
490
|
+
/**
|
|
491
|
+
* Delete a project by ID or name
|
|
492
|
+
* @description Delete an existing project and all its associated data. The project identifier is either project ID or project name. The default project cannot be deleted. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.
|
|
493
|
+
*/
|
|
494
|
+
delete: operations["deleteProject"];
|
|
495
|
+
options?: never;
|
|
496
|
+
head?: never;
|
|
497
|
+
patch?: never;
|
|
498
|
+
trace?: never;
|
|
499
|
+
};
|
|
316
500
|
}
|
|
317
501
|
export type webhooks = Record<string, never>;
|
|
318
502
|
export interface components {
|
|
@@ -320,13 +504,95 @@ export interface components {
|
|
|
320
504
|
/** AnnotateSpansRequestBody */
|
|
321
505
|
AnnotateSpansRequestBody: {
|
|
322
506
|
/** Data */
|
|
323
|
-
data: components["schemas"]["
|
|
507
|
+
data: components["schemas"]["SpanAnnotationData"][];
|
|
324
508
|
};
|
|
325
509
|
/** AnnotateSpansResponseBody */
|
|
326
510
|
AnnotateSpansResponseBody: {
|
|
327
511
|
/** Data */
|
|
328
512
|
data: components["schemas"]["InsertedSpanAnnotation"][];
|
|
329
513
|
};
|
|
514
|
+
/** CategoricalAnnotationConfig */
|
|
515
|
+
CategoricalAnnotationConfig: {
|
|
516
|
+
/** Name */
|
|
517
|
+
name: string;
|
|
518
|
+
/**
|
|
519
|
+
* @description discriminator enum property added by openapi-typescript
|
|
520
|
+
* @enum {string}
|
|
521
|
+
*/
|
|
522
|
+
type: "CATEGORICAL";
|
|
523
|
+
/** Description */
|
|
524
|
+
description?: string | null;
|
|
525
|
+
optimization_direction: components["schemas"]["OptimizationDirection"];
|
|
526
|
+
/** Values */
|
|
527
|
+
values: components["schemas"]["CategoricalAnnotationValue"][];
|
|
528
|
+
/** Id */
|
|
529
|
+
id: string;
|
|
530
|
+
};
|
|
531
|
+
/** CategoricalAnnotationConfigData */
|
|
532
|
+
CategoricalAnnotationConfigData: {
|
|
533
|
+
/** Name */
|
|
534
|
+
name: string;
|
|
535
|
+
/**
|
|
536
|
+
* @description discriminator enum property added by openapi-typescript
|
|
537
|
+
* @enum {string}
|
|
538
|
+
*/
|
|
539
|
+
type: "CATEGORICAL";
|
|
540
|
+
/** Description */
|
|
541
|
+
description?: string | null;
|
|
542
|
+
optimization_direction: components["schemas"]["OptimizationDirection"];
|
|
543
|
+
/** Values */
|
|
544
|
+
values: components["schemas"]["CategoricalAnnotationValue"][];
|
|
545
|
+
};
|
|
546
|
+
/** CategoricalAnnotationValue */
|
|
547
|
+
CategoricalAnnotationValue: {
|
|
548
|
+
/** Label */
|
|
549
|
+
label: string;
|
|
550
|
+
/** Score */
|
|
551
|
+
score?: number | null;
|
|
552
|
+
};
|
|
553
|
+
/** ContinuousAnnotationConfig */
|
|
554
|
+
ContinuousAnnotationConfig: {
|
|
555
|
+
/** Name */
|
|
556
|
+
name: string;
|
|
557
|
+
/**
|
|
558
|
+
* @description discriminator enum property added by openapi-typescript
|
|
559
|
+
* @enum {string}
|
|
560
|
+
*/
|
|
561
|
+
type: "CONTINUOUS";
|
|
562
|
+
/** Description */
|
|
563
|
+
description?: string | null;
|
|
564
|
+
optimization_direction: components["schemas"]["OptimizationDirection"];
|
|
565
|
+
/** Lower Bound */
|
|
566
|
+
lower_bound?: number | null;
|
|
567
|
+
/** Upper Bound */
|
|
568
|
+
upper_bound?: number | null;
|
|
569
|
+
/** Id */
|
|
570
|
+
id: string;
|
|
571
|
+
};
|
|
572
|
+
/** ContinuousAnnotationConfigData */
|
|
573
|
+
ContinuousAnnotationConfigData: {
|
|
574
|
+
/** Name */
|
|
575
|
+
name: string;
|
|
576
|
+
/**
|
|
577
|
+
* @description discriminator enum property added by openapi-typescript
|
|
578
|
+
* @enum {string}
|
|
579
|
+
*/
|
|
580
|
+
type: "CONTINUOUS";
|
|
581
|
+
/** Description */
|
|
582
|
+
description?: string | null;
|
|
583
|
+
optimization_direction: components["schemas"]["OptimizationDirection"];
|
|
584
|
+
/** Lower Bound */
|
|
585
|
+
lower_bound?: number | null;
|
|
586
|
+
/** Upper Bound */
|
|
587
|
+
upper_bound?: number | null;
|
|
588
|
+
};
|
|
589
|
+
/** CreateAnnotationConfigData */
|
|
590
|
+
CreateAnnotationConfigData: components["schemas"]["CategoricalAnnotationConfigData"] | components["schemas"]["ContinuousAnnotationConfigData"] | components["schemas"]["FreeformAnnotationConfigData"];
|
|
591
|
+
/** CreateAnnotationConfigResponseBody */
|
|
592
|
+
CreateAnnotationConfigResponseBody: {
|
|
593
|
+
/** Data */
|
|
594
|
+
data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
|
|
595
|
+
};
|
|
330
596
|
/**
|
|
331
597
|
* CreateExperimentRequestBody
|
|
332
598
|
* @description Details of the experiment to be created
|
|
@@ -346,7 +612,9 @@ export interface components {
|
|
|
346
612
|
* Metadata
|
|
347
613
|
* @description Metadata for the experiment
|
|
348
614
|
*/
|
|
349
|
-
metadata?:
|
|
615
|
+
metadata?: {
|
|
616
|
+
[key: string]: unknown;
|
|
617
|
+
} | null;
|
|
350
618
|
/**
|
|
351
619
|
* Version Id
|
|
352
620
|
* @description ID of the dataset version over which the experiment will be run (if omitted, the latest version will be used)
|
|
@@ -357,12 +625,23 @@ export interface components {
|
|
|
357
625
|
* @description Number of times the experiment should be repeated for each example
|
|
358
626
|
* @default 1
|
|
359
627
|
*/
|
|
360
|
-
repetitions
|
|
628
|
+
repetitions?: number;
|
|
361
629
|
};
|
|
362
630
|
/** CreateExperimentResponseBody */
|
|
363
631
|
CreateExperimentResponseBody: {
|
|
364
632
|
data: components["schemas"]["Experiment"];
|
|
365
633
|
};
|
|
634
|
+
/** CreateProjectRequestBody */
|
|
635
|
+
CreateProjectRequestBody: {
|
|
636
|
+
/** Name */
|
|
637
|
+
name: string;
|
|
638
|
+
/** Description */
|
|
639
|
+
description?: string | null;
|
|
640
|
+
};
|
|
641
|
+
/** CreateProjectResponseBody */
|
|
642
|
+
CreateProjectResponseBody: {
|
|
643
|
+
data: components["schemas"]["Project"];
|
|
644
|
+
};
|
|
366
645
|
/** CreatePromptRequestBody */
|
|
367
646
|
CreatePromptRequestBody: {
|
|
368
647
|
prompt: components["schemas"]["PromptData"];
|
|
@@ -381,7 +660,9 @@ export interface components {
|
|
|
381
660
|
/** Description */
|
|
382
661
|
description: string | null;
|
|
383
662
|
/** Metadata */
|
|
384
|
-
metadata:
|
|
663
|
+
metadata: {
|
|
664
|
+
[key: string]: unknown;
|
|
665
|
+
};
|
|
385
666
|
/**
|
|
386
667
|
* Created At
|
|
387
668
|
* Format: date-time
|
|
@@ -398,11 +679,17 @@ export interface components {
|
|
|
398
679
|
/** Id */
|
|
399
680
|
id: string;
|
|
400
681
|
/** Input */
|
|
401
|
-
input:
|
|
682
|
+
input: {
|
|
683
|
+
[key: string]: unknown;
|
|
684
|
+
};
|
|
402
685
|
/** Output */
|
|
403
|
-
output:
|
|
686
|
+
output: {
|
|
687
|
+
[key: string]: unknown;
|
|
688
|
+
};
|
|
404
689
|
/** Metadata */
|
|
405
|
-
metadata:
|
|
690
|
+
metadata: {
|
|
691
|
+
[key: string]: unknown;
|
|
692
|
+
};
|
|
406
693
|
/**
|
|
407
694
|
* Updated At
|
|
408
695
|
* Format: date-time
|
|
@@ -416,7 +703,9 @@ export interface components {
|
|
|
416
703
|
/** Description */
|
|
417
704
|
description: string | null;
|
|
418
705
|
/** Metadata */
|
|
419
|
-
metadata:
|
|
706
|
+
metadata: {
|
|
707
|
+
[key: string]: unknown;
|
|
708
|
+
};
|
|
420
709
|
/**
|
|
421
710
|
* Created At
|
|
422
711
|
* Format: date-time
|
|
@@ -432,7 +721,9 @@ export interface components {
|
|
|
432
721
|
/** Description */
|
|
433
722
|
description: string | null;
|
|
434
723
|
/** Metadata */
|
|
435
|
-
metadata:
|
|
724
|
+
metadata: {
|
|
725
|
+
[key: string]: unknown;
|
|
726
|
+
};
|
|
436
727
|
/**
|
|
437
728
|
* Created At
|
|
438
729
|
* Format: date-time
|
|
@@ -446,6 +737,11 @@ export interface components {
|
|
|
446
737
|
/** Example Count */
|
|
447
738
|
example_count: number;
|
|
448
739
|
};
|
|
740
|
+
/** DeleteAnnotationConfigResponseBody */
|
|
741
|
+
DeleteAnnotationConfigResponseBody: {
|
|
742
|
+
/** Data */
|
|
743
|
+
data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
|
|
744
|
+
};
|
|
449
745
|
/** Experiment */
|
|
450
746
|
Experiment: {
|
|
451
747
|
/**
|
|
@@ -472,7 +768,9 @@ export interface components {
|
|
|
472
768
|
* Metadata
|
|
473
769
|
* @description Metadata of the experiment
|
|
474
770
|
*/
|
|
475
|
-
metadata:
|
|
771
|
+
metadata: {
|
|
772
|
+
[key: string]: unknown;
|
|
773
|
+
};
|
|
476
774
|
/**
|
|
477
775
|
* Project Name
|
|
478
776
|
* @description The name of the project associated with the experiment
|
|
@@ -491,6 +789,44 @@ export interface components {
|
|
|
491
789
|
*/
|
|
492
790
|
updated_at: string;
|
|
493
791
|
};
|
|
792
|
+
/** FreeformAnnotationConfig */
|
|
793
|
+
FreeformAnnotationConfig: {
|
|
794
|
+
/** Name */
|
|
795
|
+
name: string;
|
|
796
|
+
/**
|
|
797
|
+
* @description discriminator enum property added by openapi-typescript
|
|
798
|
+
* @enum {string}
|
|
799
|
+
*/
|
|
800
|
+
type: "FREEFORM";
|
|
801
|
+
/** Description */
|
|
802
|
+
description?: string | null;
|
|
803
|
+
/** Id */
|
|
804
|
+
id: string;
|
|
805
|
+
};
|
|
806
|
+
/** FreeformAnnotationConfigData */
|
|
807
|
+
FreeformAnnotationConfigData: {
|
|
808
|
+
/** Name */
|
|
809
|
+
name: string;
|
|
810
|
+
/**
|
|
811
|
+
* @description discriminator enum property added by openapi-typescript
|
|
812
|
+
* @enum {string}
|
|
813
|
+
*/
|
|
814
|
+
type: "FREEFORM";
|
|
815
|
+
/** Description */
|
|
816
|
+
description?: string | null;
|
|
817
|
+
};
|
|
818
|
+
/** GetAnnotationConfigResponseBody */
|
|
819
|
+
GetAnnotationConfigResponseBody: {
|
|
820
|
+
/** Data */
|
|
821
|
+
data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
|
|
822
|
+
};
|
|
823
|
+
/** GetAnnotationConfigsResponseBody */
|
|
824
|
+
GetAnnotationConfigsResponseBody: {
|
|
825
|
+
/** Data */
|
|
826
|
+
data: (components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"])[];
|
|
827
|
+
/** Next Cursor */
|
|
828
|
+
next_cursor: string | null;
|
|
829
|
+
};
|
|
494
830
|
/** GetDatasetResponseBody */
|
|
495
831
|
GetDatasetResponseBody: {
|
|
496
832
|
data: components["schemas"]["DatasetWithExampleCount"];
|
|
@@ -499,19 +835,41 @@ export interface components {
|
|
|
499
835
|
GetExperimentResponseBody: {
|
|
500
836
|
data: components["schemas"]["Experiment"];
|
|
501
837
|
};
|
|
838
|
+
/** GetProjectResponseBody */
|
|
839
|
+
GetProjectResponseBody: {
|
|
840
|
+
data: components["schemas"]["Project"];
|
|
841
|
+
};
|
|
842
|
+
/** GetProjectsResponseBody */
|
|
843
|
+
GetProjectsResponseBody: {
|
|
844
|
+
/** Data */
|
|
845
|
+
data: components["schemas"]["Project"][];
|
|
846
|
+
/** Next Cursor */
|
|
847
|
+
next_cursor: string | null;
|
|
848
|
+
};
|
|
502
849
|
/** GetPromptResponseBody */
|
|
503
850
|
GetPromptResponseBody: {
|
|
504
851
|
data: components["schemas"]["PromptVersion"];
|
|
505
852
|
};
|
|
853
|
+
/** GetPromptVersionTagsResponseBody */
|
|
854
|
+
GetPromptVersionTagsResponseBody: {
|
|
855
|
+
/** Data */
|
|
856
|
+
data: components["schemas"]["PromptVersionTag"][];
|
|
857
|
+
/** Next Cursor */
|
|
858
|
+
next_cursor: string | null;
|
|
859
|
+
};
|
|
506
860
|
/** GetPromptVersionsResponseBody */
|
|
507
861
|
GetPromptVersionsResponseBody: {
|
|
508
862
|
/** Data */
|
|
509
863
|
data: components["schemas"]["PromptVersion"][];
|
|
864
|
+
/** Next Cursor */
|
|
865
|
+
next_cursor: string | null;
|
|
510
866
|
};
|
|
511
867
|
/** GetPromptsResponseBody */
|
|
512
868
|
GetPromptsResponseBody: {
|
|
513
869
|
/** Data */
|
|
514
870
|
data: components["schemas"]["Prompt"][];
|
|
871
|
+
/** Next Cursor */
|
|
872
|
+
next_cursor: string | null;
|
|
515
873
|
};
|
|
516
874
|
/** HTTPValidationError */
|
|
517
875
|
HTTPValidationError: {
|
|
@@ -565,6 +923,20 @@ export interface components {
|
|
|
565
923
|
* @enum {string}
|
|
566
924
|
*/
|
|
567
925
|
ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE";
|
|
926
|
+
/**
|
|
927
|
+
* OptimizationDirection
|
|
928
|
+
* @enum {string}
|
|
929
|
+
*/
|
|
930
|
+
OptimizationDirection: "MINIMIZE" | "MAXIMIZE" | "NONE";
|
|
931
|
+
/** Project */
|
|
932
|
+
Project: {
|
|
933
|
+
/** Name */
|
|
934
|
+
name: string;
|
|
935
|
+
/** Description */
|
|
936
|
+
description?: string | null;
|
|
937
|
+
/** Id */
|
|
938
|
+
id: string;
|
|
939
|
+
};
|
|
568
940
|
/** Prompt */
|
|
569
941
|
Prompt: {
|
|
570
942
|
name: components["schemas"]["Identifier"];
|
|
@@ -747,7 +1119,9 @@ export interface components {
|
|
|
747
1119
|
/** Description */
|
|
748
1120
|
description?: string;
|
|
749
1121
|
/** Schema */
|
|
750
|
-
schema?:
|
|
1122
|
+
schema?: {
|
|
1123
|
+
[key: string]: unknown;
|
|
1124
|
+
};
|
|
751
1125
|
/** Strict */
|
|
752
1126
|
strict?: boolean;
|
|
753
1127
|
};
|
|
@@ -821,7 +1195,9 @@ export interface components {
|
|
|
821
1195
|
/** Description */
|
|
822
1196
|
description?: string;
|
|
823
1197
|
/** Parameters */
|
|
824
|
-
parameters?:
|
|
1198
|
+
parameters?: {
|
|
1199
|
+
[key: string]: unknown;
|
|
1200
|
+
};
|
|
825
1201
|
/** Strict */
|
|
826
1202
|
strict?: boolean;
|
|
827
1203
|
};
|
|
@@ -875,6 +1251,20 @@ export interface components {
|
|
|
875
1251
|
/** Response Format */
|
|
876
1252
|
response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
|
|
877
1253
|
};
|
|
1254
|
+
/** PromptVersionTag */
|
|
1255
|
+
PromptVersionTag: {
|
|
1256
|
+
name: components["schemas"]["Identifier"];
|
|
1257
|
+
/** Description */
|
|
1258
|
+
description?: string | null;
|
|
1259
|
+
/** Id */
|
|
1260
|
+
id: string;
|
|
1261
|
+
};
|
|
1262
|
+
/** PromptVersionTagData */
|
|
1263
|
+
PromptVersionTagData: {
|
|
1264
|
+
name: components["schemas"]["Identifier"];
|
|
1265
|
+
/** Description */
|
|
1266
|
+
description?: string | null;
|
|
1267
|
+
};
|
|
878
1268
|
/** SpanAnnotation */
|
|
879
1269
|
SpanAnnotation: {
|
|
880
1270
|
/**
|
|
@@ -892,16 +1282,77 @@ export interface components {
|
|
|
892
1282
|
* @description The kind of annotator used for the annotation
|
|
893
1283
|
* @enum {string}
|
|
894
1284
|
*/
|
|
895
|
-
annotator_kind: "LLM" | "HUMAN";
|
|
1285
|
+
annotator_kind: "LLM" | "CODE" | "HUMAN";
|
|
896
1286
|
/** @description The result of the annotation */
|
|
897
1287
|
result?: components["schemas"]["SpanAnnotationResult"] | null;
|
|
898
1288
|
/**
|
|
899
1289
|
* Metadata
|
|
900
1290
|
* @description Metadata for the annotation
|
|
901
1291
|
*/
|
|
902
|
-
metadata?:
|
|
903
|
-
|
|
904
|
-
|
|
1292
|
+
metadata?: {
|
|
1293
|
+
[key: string]: unknown;
|
|
1294
|
+
} | null;
|
|
1295
|
+
/**
|
|
1296
|
+
* Identifier
|
|
1297
|
+
* @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
|
|
1298
|
+
* @default
|
|
1299
|
+
*/
|
|
1300
|
+
identifier?: string;
|
|
1301
|
+
/** Id */
|
|
1302
|
+
id: string;
|
|
1303
|
+
/**
|
|
1304
|
+
* Created At
|
|
1305
|
+
* Format: date-time
|
|
1306
|
+
*/
|
|
1307
|
+
created_at: string;
|
|
1308
|
+
/**
|
|
1309
|
+
* Updated At
|
|
1310
|
+
* Format: date-time
|
|
1311
|
+
*/
|
|
1312
|
+
updated_at: string;
|
|
1313
|
+
/**
|
|
1314
|
+
* Source
|
|
1315
|
+
* @enum {string}
|
|
1316
|
+
*/
|
|
1317
|
+
source: "API" | "APP";
|
|
1318
|
+
/** User Id */
|
|
1319
|
+
user_id: string | null;
|
|
1320
|
+
};
|
|
1321
|
+
/** SpanAnnotationData */
|
|
1322
|
+
SpanAnnotationData: {
|
|
1323
|
+
/**
|
|
1324
|
+
* Span Id
|
|
1325
|
+
* @description OpenTelemetry Span ID (hex format w/o 0x prefix)
|
|
1326
|
+
*/
|
|
1327
|
+
span_id: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Name
|
|
1330
|
+
* @description The name of the annotation
|
|
1331
|
+
*/
|
|
1332
|
+
name: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Annotator Kind
|
|
1335
|
+
* @description The kind of annotator used for the annotation
|
|
1336
|
+
* @enum {string}
|
|
1337
|
+
*/
|
|
1338
|
+
annotator_kind: "LLM" | "CODE" | "HUMAN";
|
|
1339
|
+
/** @description The result of the annotation */
|
|
1340
|
+
result?: components["schemas"]["SpanAnnotationResult"] | null;
|
|
1341
|
+
/**
|
|
1342
|
+
* Metadata
|
|
1343
|
+
* @description Metadata for the annotation
|
|
1344
|
+
*/
|
|
1345
|
+
metadata?: {
|
|
1346
|
+
[key: string]: unknown;
|
|
1347
|
+
} | null;
|
|
1348
|
+
/**
|
|
1349
|
+
* Identifier
|
|
1350
|
+
* @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
|
|
1351
|
+
* @default
|
|
1352
|
+
*/
|
|
1353
|
+
identifier?: string;
|
|
1354
|
+
};
|
|
1355
|
+
/** SpanAnnotationResult */
|
|
905
1356
|
SpanAnnotationResult: {
|
|
906
1357
|
/**
|
|
907
1358
|
* Label
|
|
@@ -919,6 +1370,13 @@ export interface components {
|
|
|
919
1370
|
*/
|
|
920
1371
|
explanation?: string | null;
|
|
921
1372
|
};
|
|
1373
|
+
/** SpanAnnotationsResponseBody */
|
|
1374
|
+
SpanAnnotationsResponseBody: {
|
|
1375
|
+
/** Data */
|
|
1376
|
+
data: components["schemas"]["SpanAnnotation"][];
|
|
1377
|
+
/** Next Cursor */
|
|
1378
|
+
next_cursor: string | null;
|
|
1379
|
+
};
|
|
922
1380
|
/** TextContentPart */
|
|
923
1381
|
TextContentPart: {
|
|
924
1382
|
/**
|
|
@@ -963,7 +1421,23 @@ export interface components {
|
|
|
963
1421
|
/** Tool Call Id */
|
|
964
1422
|
tool_call_id: string;
|
|
965
1423
|
/** Tool Result */
|
|
966
|
-
tool_result: boolean | number | string |
|
|
1424
|
+
tool_result: boolean | number | string | {
|
|
1425
|
+
[key: string]: unknown;
|
|
1426
|
+
} | unknown[] | null;
|
|
1427
|
+
};
|
|
1428
|
+
/** UpdateAnnotationConfigResponseBody */
|
|
1429
|
+
UpdateAnnotationConfigResponseBody: {
|
|
1430
|
+
/** Data */
|
|
1431
|
+
data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
|
|
1432
|
+
};
|
|
1433
|
+
/** UpdateProjectRequestBody */
|
|
1434
|
+
UpdateProjectRequestBody: {
|
|
1435
|
+
/** Description */
|
|
1436
|
+
description?: string | null;
|
|
1437
|
+
};
|
|
1438
|
+
/** UpdateProjectResponseBody */
|
|
1439
|
+
UpdateProjectResponseBody: {
|
|
1440
|
+
data: components["schemas"]["Project"];
|
|
967
1441
|
};
|
|
968
1442
|
/** UploadDatasetData */
|
|
969
1443
|
UploadDatasetData: {
|
|
@@ -992,14 +1466,12 @@ export interface components {
|
|
|
992
1466
|
}
|
|
993
1467
|
export type $defs = Record<string, never>;
|
|
994
1468
|
export interface operations {
|
|
995
|
-
|
|
1469
|
+
list_annotation_configs_v1_annotation_configs_get: {
|
|
996
1470
|
parameters: {
|
|
997
1471
|
query?: {
|
|
998
|
-
/** @description Cursor for pagination */
|
|
1472
|
+
/** @description Cursor for pagination (base64-encoded annotation config ID) */
|
|
999
1473
|
cursor?: string | null;
|
|
1000
|
-
/** @description
|
|
1001
|
-
name?: string | null;
|
|
1002
|
-
/** @description The max number of datasets to return at a time. */
|
|
1474
|
+
/** @description Maximum number of configs to return */
|
|
1003
1475
|
limit?: number;
|
|
1004
1476
|
};
|
|
1005
1477
|
header?: never;
|
|
@@ -1008,13 +1480,13 @@ export interface operations {
|
|
|
1008
1480
|
};
|
|
1009
1481
|
requestBody?: never;
|
|
1010
1482
|
responses: {
|
|
1011
|
-
/** @description
|
|
1483
|
+
/** @description A list of annotation configurations with pagination information */
|
|
1012
1484
|
200: {
|
|
1013
1485
|
headers: {
|
|
1014
1486
|
[name: string]: unknown;
|
|
1015
1487
|
};
|
|
1016
1488
|
content: {
|
|
1017
|
-
"application/json": components["schemas"]["
|
|
1489
|
+
"application/json": components["schemas"]["GetAnnotationConfigsResponseBody"];
|
|
1018
1490
|
};
|
|
1019
1491
|
};
|
|
1020
1492
|
/** @description Forbidden */
|
|
@@ -1026,28 +1498,29 @@ export interface operations {
|
|
|
1026
1498
|
"text/plain": string;
|
|
1027
1499
|
};
|
|
1028
1500
|
};
|
|
1029
|
-
/** @description
|
|
1501
|
+
/** @description Validation Error */
|
|
1030
1502
|
422: {
|
|
1031
1503
|
headers: {
|
|
1032
1504
|
[name: string]: unknown;
|
|
1033
1505
|
};
|
|
1034
1506
|
content: {
|
|
1035
|
-
"
|
|
1507
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1036
1508
|
};
|
|
1037
1509
|
};
|
|
1038
1510
|
};
|
|
1039
1511
|
};
|
|
1040
|
-
|
|
1512
|
+
create_annotation_config_v1_annotation_configs_post: {
|
|
1041
1513
|
parameters: {
|
|
1042
1514
|
query?: never;
|
|
1043
1515
|
header?: never;
|
|
1044
|
-
path
|
|
1045
|
-
/** @description The ID of the dataset */
|
|
1046
|
-
id: string;
|
|
1047
|
-
};
|
|
1516
|
+
path?: never;
|
|
1048
1517
|
cookie?: never;
|
|
1049
1518
|
};
|
|
1050
|
-
requestBody
|
|
1519
|
+
requestBody: {
|
|
1520
|
+
content: {
|
|
1521
|
+
"application/json": components["schemas"]["CreateAnnotationConfigData"];
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1051
1524
|
responses: {
|
|
1052
1525
|
/** @description Successful Response */
|
|
1053
1526
|
200: {
|
|
@@ -1055,7 +1528,7 @@ export interface operations {
|
|
|
1055
1528
|
[name: string]: unknown;
|
|
1056
1529
|
};
|
|
1057
1530
|
content: {
|
|
1058
|
-
"application/json": components["schemas"]["
|
|
1531
|
+
"application/json": components["schemas"]["CreateAnnotationConfigResponseBody"];
|
|
1059
1532
|
};
|
|
1060
1533
|
};
|
|
1061
1534
|
/** @description Forbidden */
|
|
@@ -1067,8 +1540,40 @@ export interface operations {
|
|
|
1067
1540
|
"text/plain": string;
|
|
1068
1541
|
};
|
|
1069
1542
|
};
|
|
1070
|
-
/** @description
|
|
1071
|
-
|
|
1543
|
+
/** @description Validation Error */
|
|
1544
|
+
422: {
|
|
1545
|
+
headers: {
|
|
1546
|
+
[name: string]: unknown;
|
|
1547
|
+
};
|
|
1548
|
+
content: {
|
|
1549
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1550
|
+
};
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
};
|
|
1554
|
+
get_annotation_config_by_name_or_id_v1_annotation_configs__config_identifier__get: {
|
|
1555
|
+
parameters: {
|
|
1556
|
+
query?: never;
|
|
1557
|
+
header?: never;
|
|
1558
|
+
path: {
|
|
1559
|
+
/** @description ID or name of the annotation configuration */
|
|
1560
|
+
config_identifier: string;
|
|
1561
|
+
};
|
|
1562
|
+
cookie?: never;
|
|
1563
|
+
};
|
|
1564
|
+
requestBody?: never;
|
|
1565
|
+
responses: {
|
|
1566
|
+
/** @description Successful Response */
|
|
1567
|
+
200: {
|
|
1568
|
+
headers: {
|
|
1569
|
+
[name: string]: unknown;
|
|
1570
|
+
};
|
|
1571
|
+
content: {
|
|
1572
|
+
"application/json": components["schemas"]["GetAnnotationConfigResponseBody"];
|
|
1573
|
+
};
|
|
1574
|
+
};
|
|
1575
|
+
/** @description Forbidden */
|
|
1576
|
+
403: {
|
|
1072
1577
|
headers: {
|
|
1073
1578
|
[name: string]: unknown;
|
|
1074
1579
|
};
|
|
@@ -1087,24 +1592,30 @@ export interface operations {
|
|
|
1087
1592
|
};
|
|
1088
1593
|
};
|
|
1089
1594
|
};
|
|
1090
|
-
|
|
1595
|
+
update_annotation_config_v1_annotation_configs__config_id__put: {
|
|
1091
1596
|
parameters: {
|
|
1092
1597
|
query?: never;
|
|
1093
1598
|
header?: never;
|
|
1094
1599
|
path: {
|
|
1095
|
-
/** @description
|
|
1096
|
-
|
|
1600
|
+
/** @description ID of the annotation configuration */
|
|
1601
|
+
config_id: string;
|
|
1097
1602
|
};
|
|
1098
1603
|
cookie?: never;
|
|
1099
1604
|
};
|
|
1100
|
-
requestBody
|
|
1605
|
+
requestBody: {
|
|
1606
|
+
content: {
|
|
1607
|
+
"application/json": components["schemas"]["CreateAnnotationConfigData"];
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1101
1610
|
responses: {
|
|
1102
1611
|
/** @description Successful Response */
|
|
1103
|
-
|
|
1612
|
+
200: {
|
|
1104
1613
|
headers: {
|
|
1105
1614
|
[name: string]: unknown;
|
|
1106
1615
|
};
|
|
1107
|
-
content
|
|
1616
|
+
content: {
|
|
1617
|
+
"application/json": components["schemas"]["UpdateAnnotationConfigResponseBody"];
|
|
1618
|
+
};
|
|
1108
1619
|
};
|
|
1109
1620
|
/** @description Forbidden */
|
|
1110
1621
|
403: {
|
|
@@ -1115,8 +1626,40 @@ export interface operations {
|
|
|
1115
1626
|
"text/plain": string;
|
|
1116
1627
|
};
|
|
1117
1628
|
};
|
|
1118
|
-
/** @description
|
|
1119
|
-
|
|
1629
|
+
/** @description Validation Error */
|
|
1630
|
+
422: {
|
|
1631
|
+
headers: {
|
|
1632
|
+
[name: string]: unknown;
|
|
1633
|
+
};
|
|
1634
|
+
content: {
|
|
1635
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1640
|
+
delete_annotation_config_v1_annotation_configs__config_id__delete: {
|
|
1641
|
+
parameters: {
|
|
1642
|
+
query?: never;
|
|
1643
|
+
header?: never;
|
|
1644
|
+
path: {
|
|
1645
|
+
/** @description ID of the annotation configuration */
|
|
1646
|
+
config_id: string;
|
|
1647
|
+
};
|
|
1648
|
+
cookie?: never;
|
|
1649
|
+
};
|
|
1650
|
+
requestBody?: never;
|
|
1651
|
+
responses: {
|
|
1652
|
+
/** @description Successful Response */
|
|
1653
|
+
200: {
|
|
1654
|
+
headers: {
|
|
1655
|
+
[name: string]: unknown;
|
|
1656
|
+
};
|
|
1657
|
+
content: {
|
|
1658
|
+
"application/json": components["schemas"]["DeleteAnnotationConfigResponseBody"];
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1661
|
+
/** @description Forbidden */
|
|
1662
|
+
403: {
|
|
1120
1663
|
headers: {
|
|
1121
1664
|
[name: string]: unknown;
|
|
1122
1665
|
};
|
|
@@ -1124,29 +1667,31 @@ export interface operations {
|
|
|
1124
1667
|
"text/plain": string;
|
|
1125
1668
|
};
|
|
1126
1669
|
};
|
|
1127
|
-
/** @description
|
|
1670
|
+
/** @description Validation Error */
|
|
1128
1671
|
422: {
|
|
1129
1672
|
headers: {
|
|
1130
1673
|
[name: string]: unknown;
|
|
1131
1674
|
};
|
|
1132
1675
|
content: {
|
|
1133
|
-
"
|
|
1676
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1134
1677
|
};
|
|
1135
1678
|
};
|
|
1136
1679
|
};
|
|
1137
1680
|
};
|
|
1138
|
-
|
|
1681
|
+
listSpanAnnotationsBySpanIds: {
|
|
1139
1682
|
parameters: {
|
|
1140
|
-
query
|
|
1141
|
-
/** @description
|
|
1683
|
+
query: {
|
|
1684
|
+
/** @description One or more span id to fetch annotations for */
|
|
1685
|
+
span_ids: string[];
|
|
1686
|
+
/** @description A cursor for pagination */
|
|
1142
1687
|
cursor?: string | null;
|
|
1143
|
-
/** @description The
|
|
1688
|
+
/** @description The maximum number of annotations to return in a single request */
|
|
1144
1689
|
limit?: number;
|
|
1145
1690
|
};
|
|
1146
1691
|
header?: never;
|
|
1147
1692
|
path: {
|
|
1148
|
-
/** @description The ID
|
|
1149
|
-
|
|
1693
|
+
/** @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. */
|
|
1694
|
+
project_identifier: string;
|
|
1150
1695
|
};
|
|
1151
1696
|
cookie?: never;
|
|
1152
1697
|
};
|
|
@@ -1158,7 +1703,7 @@ export interface operations {
|
|
|
1158
1703
|
[name: string]: unknown;
|
|
1159
1704
|
};
|
|
1160
1705
|
content: {
|
|
1161
|
-
"application/json": components["schemas"]["
|
|
1706
|
+
"application/json": components["schemas"]["SpanAnnotationsResponseBody"];
|
|
1162
1707
|
};
|
|
1163
1708
|
};
|
|
1164
1709
|
/** @description Forbidden */
|
|
@@ -1170,7 +1715,16 @@ export interface operations {
|
|
|
1170
1715
|
"text/plain": string;
|
|
1171
1716
|
};
|
|
1172
1717
|
};
|
|
1173
|
-
/** @description
|
|
1718
|
+
/** @description Project or spans not found */
|
|
1719
|
+
404: {
|
|
1720
|
+
headers: {
|
|
1721
|
+
[name: string]: unknown;
|
|
1722
|
+
};
|
|
1723
|
+
content: {
|
|
1724
|
+
"text/plain": string;
|
|
1725
|
+
};
|
|
1726
|
+
};
|
|
1727
|
+
/** @description Invalid parameters */
|
|
1174
1728
|
422: {
|
|
1175
1729
|
headers: {
|
|
1176
1730
|
[name: string]: unknown;
|
|
@@ -1181,40 +1735,21 @@ export interface operations {
|
|
|
1181
1735
|
};
|
|
1182
1736
|
};
|
|
1183
1737
|
};
|
|
1184
|
-
|
|
1738
|
+
listDatasets: {
|
|
1185
1739
|
parameters: {
|
|
1186
1740
|
query?: {
|
|
1187
|
-
/** @description
|
|
1188
|
-
|
|
1741
|
+
/** @description Cursor for pagination */
|
|
1742
|
+
cursor?: string | null;
|
|
1743
|
+
/** @description An optional dataset name to filter by */
|
|
1744
|
+
name?: string | null;
|
|
1745
|
+
/** @description The max number of datasets to return at a time. */
|
|
1746
|
+
limit?: number;
|
|
1189
1747
|
};
|
|
1190
1748
|
header?: never;
|
|
1191
1749
|
path?: never;
|
|
1192
1750
|
cookie?: never;
|
|
1193
1751
|
};
|
|
1194
|
-
requestBody?:
|
|
1195
|
-
content: {
|
|
1196
|
-
"application/json": {
|
|
1197
|
-
/** @enum {string} */
|
|
1198
|
-
action?: "create" | "append";
|
|
1199
|
-
name: string;
|
|
1200
|
-
description?: string;
|
|
1201
|
-
inputs: Record<string, unknown>[];
|
|
1202
|
-
outputs?: Record<string, unknown>[];
|
|
1203
|
-
metadata?: Record<string, unknown>[];
|
|
1204
|
-
};
|
|
1205
|
-
"multipart/form-data": {
|
|
1206
|
-
/** @enum {string} */
|
|
1207
|
-
action?: "create" | "append";
|
|
1208
|
-
name: string;
|
|
1209
|
-
description?: string;
|
|
1210
|
-
"input_keys[]": string[];
|
|
1211
|
-
"output_keys[]": string[];
|
|
1212
|
-
"metadata_keys[]"?: string[];
|
|
1213
|
-
/** Format: binary */
|
|
1214
|
-
file: string;
|
|
1215
|
-
};
|
|
1216
|
-
};
|
|
1217
|
-
};
|
|
1752
|
+
requestBody?: never;
|
|
1218
1753
|
responses: {
|
|
1219
1754
|
/** @description Successful Response */
|
|
1220
1755
|
200: {
|
|
@@ -1222,7 +1757,7 @@ export interface operations {
|
|
|
1222
1757
|
[name: string]: unknown;
|
|
1223
1758
|
};
|
|
1224
1759
|
content: {
|
|
1225
|
-
"application/json": components["schemas"]["
|
|
1760
|
+
"application/json": components["schemas"]["ListDatasetsResponseBody"];
|
|
1226
1761
|
};
|
|
1227
1762
|
};
|
|
1228
1763
|
/** @description Forbidden */
|
|
@@ -1234,16 +1769,7 @@ export interface operations {
|
|
|
1234
1769
|
"text/plain": string;
|
|
1235
1770
|
};
|
|
1236
1771
|
};
|
|
1237
|
-
/** @description
|
|
1238
|
-
409: {
|
|
1239
|
-
headers: {
|
|
1240
|
-
[name: string]: unknown;
|
|
1241
|
-
};
|
|
1242
|
-
content: {
|
|
1243
|
-
"text/plain": string;
|
|
1244
|
-
};
|
|
1245
|
-
};
|
|
1246
|
-
/** @description Invalid request body */
|
|
1772
|
+
/** @description Unprocessable Entity */
|
|
1247
1773
|
422: {
|
|
1248
1774
|
headers: {
|
|
1249
1775
|
[name: string]: unknown;
|
|
@@ -1254,12 +1780,9 @@ export interface operations {
|
|
|
1254
1780
|
};
|
|
1255
1781
|
};
|
|
1256
1782
|
};
|
|
1257
|
-
|
|
1783
|
+
getDataset: {
|
|
1258
1784
|
parameters: {
|
|
1259
|
-
query?:
|
|
1260
|
-
/** @description The ID of the dataset version (if omitted, returns data from the latest version) */
|
|
1261
|
-
version_id?: string | null;
|
|
1262
|
-
};
|
|
1785
|
+
query?: never;
|
|
1263
1786
|
header?: never;
|
|
1264
1787
|
path: {
|
|
1265
1788
|
/** @description The ID of the dataset */
|
|
@@ -1275,7 +1798,7 @@ export interface operations {
|
|
|
1275
1798
|
[name: string]: unknown;
|
|
1276
1799
|
};
|
|
1277
1800
|
content: {
|
|
1278
|
-
"application/json": components["schemas"]["
|
|
1801
|
+
"application/json": components["schemas"]["GetDatasetResponseBody"];
|
|
1279
1802
|
};
|
|
1280
1803
|
};
|
|
1281
1804
|
/** @description Forbidden */
|
|
@@ -1307,15 +1830,12 @@ export interface operations {
|
|
|
1307
1830
|
};
|
|
1308
1831
|
};
|
|
1309
1832
|
};
|
|
1310
|
-
|
|
1833
|
+
deleteDatasetById: {
|
|
1311
1834
|
parameters: {
|
|
1312
|
-
query?:
|
|
1313
|
-
/** @description The ID of the dataset version (if omitted, returns data from the latest version) */
|
|
1314
|
-
version_id?: string | null;
|
|
1315
|
-
};
|
|
1835
|
+
query?: never;
|
|
1316
1836
|
header?: never;
|
|
1317
1837
|
path: {
|
|
1318
|
-
/** @description The ID of the dataset */
|
|
1838
|
+
/** @description The ID of the dataset to delete. */
|
|
1319
1839
|
id: string;
|
|
1320
1840
|
};
|
|
1321
1841
|
cookie?: never;
|
|
@@ -1323,13 +1843,11 @@ export interface operations {
|
|
|
1323
1843
|
requestBody?: never;
|
|
1324
1844
|
responses: {
|
|
1325
1845
|
/** @description Successful Response */
|
|
1326
|
-
|
|
1846
|
+
204: {
|
|
1327
1847
|
headers: {
|
|
1328
1848
|
[name: string]: unknown;
|
|
1329
1849
|
};
|
|
1330
|
-
content
|
|
1331
|
-
"text/csv": string;
|
|
1332
|
-
};
|
|
1850
|
+
content?: never;
|
|
1333
1851
|
};
|
|
1334
1852
|
/** @description Forbidden */
|
|
1335
1853
|
403: {
|
|
@@ -1340,8 +1858,8 @@ export interface operations {
|
|
|
1340
1858
|
"text/plain": string;
|
|
1341
1859
|
};
|
|
1342
1860
|
};
|
|
1343
|
-
/** @description
|
|
1344
|
-
|
|
1861
|
+
/** @description Dataset not found */
|
|
1862
|
+
404: {
|
|
1345
1863
|
headers: {
|
|
1346
1864
|
[name: string]: unknown;
|
|
1347
1865
|
};
|
|
@@ -1349,12 +1867,237 @@ export interface operations {
|
|
|
1349
1867
|
"text/plain": string;
|
|
1350
1868
|
};
|
|
1351
1869
|
};
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1870
|
+
/** @description Invalid dataset ID */
|
|
1871
|
+
422: {
|
|
1872
|
+
headers: {
|
|
1873
|
+
[name: string]: unknown;
|
|
1874
|
+
};
|
|
1875
|
+
content: {
|
|
1876
|
+
"text/plain": string;
|
|
1877
|
+
};
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
listDatasetVersionsByDatasetId: {
|
|
1882
|
+
parameters: {
|
|
1883
|
+
query?: {
|
|
1884
|
+
/** @description Cursor for pagination */
|
|
1885
|
+
cursor?: string | null;
|
|
1886
|
+
/** @description The max number of dataset versions to return at a time */
|
|
1887
|
+
limit?: number;
|
|
1888
|
+
};
|
|
1889
|
+
header?: never;
|
|
1890
|
+
path: {
|
|
1891
|
+
/** @description The ID of the dataset */
|
|
1892
|
+
id: string;
|
|
1893
|
+
};
|
|
1894
|
+
cookie?: never;
|
|
1895
|
+
};
|
|
1896
|
+
requestBody?: never;
|
|
1897
|
+
responses: {
|
|
1898
|
+
/** @description Successful Response */
|
|
1899
|
+
200: {
|
|
1900
|
+
headers: {
|
|
1901
|
+
[name: string]: unknown;
|
|
1902
|
+
};
|
|
1903
|
+
content: {
|
|
1904
|
+
"application/json": components["schemas"]["ListDatasetVersionsResponseBody"];
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1907
|
+
/** @description Forbidden */
|
|
1908
|
+
403: {
|
|
1909
|
+
headers: {
|
|
1910
|
+
[name: string]: unknown;
|
|
1911
|
+
};
|
|
1912
|
+
content: {
|
|
1913
|
+
"text/plain": string;
|
|
1914
|
+
};
|
|
1915
|
+
};
|
|
1916
|
+
/** @description Unprocessable Entity */
|
|
1917
|
+
422: {
|
|
1918
|
+
headers: {
|
|
1919
|
+
[name: string]: unknown;
|
|
1920
|
+
};
|
|
1921
|
+
content: {
|
|
1922
|
+
"text/plain": string;
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1926
|
+
};
|
|
1927
|
+
uploadDataset: {
|
|
1928
|
+
parameters: {
|
|
1929
|
+
query?: {
|
|
1930
|
+
/** @description If true, fulfill request synchronously and return JSON containing dataset_id. */
|
|
1931
|
+
sync?: boolean;
|
|
1932
|
+
};
|
|
1933
|
+
header?: never;
|
|
1934
|
+
path?: never;
|
|
1935
|
+
cookie?: never;
|
|
1936
|
+
};
|
|
1937
|
+
requestBody?: {
|
|
1938
|
+
content: {
|
|
1939
|
+
"application/json": {
|
|
1940
|
+
/** @enum {string} */
|
|
1941
|
+
action?: "create" | "append";
|
|
1942
|
+
name: string;
|
|
1943
|
+
description?: string;
|
|
1944
|
+
inputs: Record<string, unknown>[];
|
|
1945
|
+
outputs?: Record<string, unknown>[];
|
|
1946
|
+
metadata?: Record<string, unknown>[];
|
|
1947
|
+
};
|
|
1948
|
+
"multipart/form-data": {
|
|
1949
|
+
/** @enum {string} */
|
|
1950
|
+
action?: "create" | "append";
|
|
1951
|
+
name: string;
|
|
1952
|
+
description?: string;
|
|
1953
|
+
"input_keys[]": string[];
|
|
1954
|
+
"output_keys[]": string[];
|
|
1955
|
+
"metadata_keys[]"?: string[];
|
|
1956
|
+
/** Format: binary */
|
|
1957
|
+
file: string;
|
|
1958
|
+
};
|
|
1959
|
+
};
|
|
1960
|
+
};
|
|
1961
|
+
responses: {
|
|
1962
|
+
/** @description Successful Response */
|
|
1963
|
+
200: {
|
|
1964
|
+
headers: {
|
|
1965
|
+
[name: string]: unknown;
|
|
1966
|
+
};
|
|
1967
|
+
content: {
|
|
1968
|
+
"application/json": components["schemas"]["UploadDatasetResponseBody"] | null;
|
|
1969
|
+
};
|
|
1970
|
+
};
|
|
1971
|
+
/** @description Forbidden */
|
|
1972
|
+
403: {
|
|
1973
|
+
headers: {
|
|
1974
|
+
[name: string]: unknown;
|
|
1975
|
+
};
|
|
1976
|
+
content: {
|
|
1977
|
+
"text/plain": string;
|
|
1978
|
+
};
|
|
1979
|
+
};
|
|
1980
|
+
/** @description Dataset of the same name already exists */
|
|
1981
|
+
409: {
|
|
1982
|
+
headers: {
|
|
1983
|
+
[name: string]: unknown;
|
|
1984
|
+
};
|
|
1985
|
+
content: {
|
|
1986
|
+
"text/plain": string;
|
|
1987
|
+
};
|
|
1988
|
+
};
|
|
1989
|
+
/** @description Invalid request body */
|
|
1990
|
+
422: {
|
|
1991
|
+
headers: {
|
|
1992
|
+
[name: string]: unknown;
|
|
1993
|
+
};
|
|
1994
|
+
content: {
|
|
1995
|
+
"text/plain": string;
|
|
1996
|
+
};
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
1999
|
+
};
|
|
2000
|
+
getDatasetExamples: {
|
|
2001
|
+
parameters: {
|
|
2002
|
+
query?: {
|
|
2003
|
+
/** @description The ID of the dataset version (if omitted, returns data from the latest version) */
|
|
2004
|
+
version_id?: string | null;
|
|
2005
|
+
};
|
|
2006
|
+
header?: never;
|
|
2007
|
+
path: {
|
|
2008
|
+
/** @description The ID of the dataset */
|
|
2009
|
+
id: string;
|
|
2010
|
+
};
|
|
2011
|
+
cookie?: never;
|
|
2012
|
+
};
|
|
2013
|
+
requestBody?: never;
|
|
2014
|
+
responses: {
|
|
2015
|
+
/** @description Successful Response */
|
|
2016
|
+
200: {
|
|
2017
|
+
headers: {
|
|
2018
|
+
[name: string]: unknown;
|
|
2019
|
+
};
|
|
2020
|
+
content: {
|
|
2021
|
+
"application/json": components["schemas"]["ListDatasetExamplesResponseBody"];
|
|
2022
|
+
};
|
|
2023
|
+
};
|
|
2024
|
+
/** @description Forbidden */
|
|
2025
|
+
403: {
|
|
2026
|
+
headers: {
|
|
2027
|
+
[name: string]: unknown;
|
|
2028
|
+
};
|
|
2029
|
+
content: {
|
|
2030
|
+
"text/plain": string;
|
|
2031
|
+
};
|
|
2032
|
+
};
|
|
2033
|
+
/** @description Not Found */
|
|
2034
|
+
404: {
|
|
2035
|
+
headers: {
|
|
2036
|
+
[name: string]: unknown;
|
|
2037
|
+
};
|
|
2038
|
+
content: {
|
|
2039
|
+
"text/plain": string;
|
|
2040
|
+
};
|
|
2041
|
+
};
|
|
2042
|
+
/** @description Validation Error */
|
|
2043
|
+
422: {
|
|
2044
|
+
headers: {
|
|
2045
|
+
[name: string]: unknown;
|
|
2046
|
+
};
|
|
2047
|
+
content: {
|
|
2048
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
2049
|
+
};
|
|
2050
|
+
};
|
|
2051
|
+
};
|
|
2052
|
+
};
|
|
2053
|
+
getDatasetCsv: {
|
|
2054
|
+
parameters: {
|
|
2055
|
+
query?: {
|
|
2056
|
+
/** @description The ID of the dataset version (if omitted, returns data from the latest version) */
|
|
2057
|
+
version_id?: string | null;
|
|
2058
|
+
};
|
|
2059
|
+
header?: never;
|
|
2060
|
+
path: {
|
|
2061
|
+
/** @description The ID of the dataset */
|
|
2062
|
+
id: string;
|
|
2063
|
+
};
|
|
2064
|
+
cookie?: never;
|
|
2065
|
+
};
|
|
2066
|
+
requestBody?: never;
|
|
2067
|
+
responses: {
|
|
2068
|
+
/** @description Successful Response */
|
|
2069
|
+
200: {
|
|
2070
|
+
headers: {
|
|
2071
|
+
[name: string]: unknown;
|
|
2072
|
+
};
|
|
2073
|
+
content: {
|
|
2074
|
+
"text/csv": string;
|
|
2075
|
+
};
|
|
2076
|
+
};
|
|
2077
|
+
/** @description Forbidden */
|
|
2078
|
+
403: {
|
|
2079
|
+
headers: {
|
|
2080
|
+
[name: string]: unknown;
|
|
2081
|
+
};
|
|
2082
|
+
content: {
|
|
2083
|
+
"text/plain": string;
|
|
2084
|
+
};
|
|
2085
|
+
};
|
|
2086
|
+
/** @description Unprocessable Entity */
|
|
2087
|
+
422: {
|
|
2088
|
+
headers: {
|
|
2089
|
+
[name: string]: unknown;
|
|
2090
|
+
};
|
|
2091
|
+
content: {
|
|
2092
|
+
"text/plain": string;
|
|
2093
|
+
};
|
|
2094
|
+
};
|
|
2095
|
+
};
|
|
2096
|
+
};
|
|
2097
|
+
getDatasetJSONLOpenAIFineTuning: {
|
|
2098
|
+
parameters: {
|
|
2099
|
+
query?: {
|
|
2100
|
+
/** @description The ID of the dataset version (if omitted, returns data from the latest version) */
|
|
1358
2101
|
version_id?: string | null;
|
|
1359
2102
|
};
|
|
1360
2103
|
header?: never;
|
|
@@ -1362,12 +2105,445 @@ export interface operations {
|
|
|
1362
2105
|
/** @description The ID of the dataset */
|
|
1363
2106
|
id: string;
|
|
1364
2107
|
};
|
|
1365
|
-
cookie?: never;
|
|
2108
|
+
cookie?: never;
|
|
2109
|
+
};
|
|
2110
|
+
requestBody?: never;
|
|
2111
|
+
responses: {
|
|
2112
|
+
/** @description Successful Response */
|
|
2113
|
+
200: {
|
|
2114
|
+
headers: {
|
|
2115
|
+
[name: string]: unknown;
|
|
2116
|
+
};
|
|
2117
|
+
content: {
|
|
2118
|
+
"text/plain": string;
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
/** @description Forbidden */
|
|
2122
|
+
403: {
|
|
2123
|
+
headers: {
|
|
2124
|
+
[name: string]: unknown;
|
|
2125
|
+
};
|
|
2126
|
+
content: {
|
|
2127
|
+
"text/plain": string;
|
|
2128
|
+
};
|
|
2129
|
+
};
|
|
2130
|
+
/** @description Invalid dataset or version ID */
|
|
2131
|
+
422: {
|
|
2132
|
+
headers: {
|
|
2133
|
+
[name: string]: unknown;
|
|
2134
|
+
};
|
|
2135
|
+
content: {
|
|
2136
|
+
"text/plain": string;
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
getDatasetJSONLOpenAIEvals: {
|
|
2142
|
+
parameters: {
|
|
2143
|
+
query?: {
|
|
2144
|
+
/** @description The ID of the dataset version (if omitted, returns data from the latest version) */
|
|
2145
|
+
version_id?: string | null;
|
|
2146
|
+
};
|
|
2147
|
+
header?: never;
|
|
2148
|
+
path: {
|
|
2149
|
+
/** @description The ID of the dataset */
|
|
2150
|
+
id: string;
|
|
2151
|
+
};
|
|
2152
|
+
cookie?: never;
|
|
2153
|
+
};
|
|
2154
|
+
requestBody?: never;
|
|
2155
|
+
responses: {
|
|
2156
|
+
/** @description Successful Response */
|
|
2157
|
+
200: {
|
|
2158
|
+
headers: {
|
|
2159
|
+
[name: string]: unknown;
|
|
2160
|
+
};
|
|
2161
|
+
content: {
|
|
2162
|
+
"text/plain": string;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
/** @description Forbidden */
|
|
2166
|
+
403: {
|
|
2167
|
+
headers: {
|
|
2168
|
+
[name: string]: unknown;
|
|
2169
|
+
};
|
|
2170
|
+
content: {
|
|
2171
|
+
"text/plain": string;
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
2174
|
+
/** @description Invalid dataset or version ID */
|
|
2175
|
+
422: {
|
|
2176
|
+
headers: {
|
|
2177
|
+
[name: string]: unknown;
|
|
2178
|
+
};
|
|
2179
|
+
content: {
|
|
2180
|
+
"text/plain": string;
|
|
2181
|
+
};
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
2184
|
+
};
|
|
2185
|
+
listExperiments: {
|
|
2186
|
+
parameters: {
|
|
2187
|
+
query?: never;
|
|
2188
|
+
header?: never;
|
|
2189
|
+
path: {
|
|
2190
|
+
dataset_id: string;
|
|
2191
|
+
};
|
|
2192
|
+
cookie?: never;
|
|
2193
|
+
};
|
|
2194
|
+
requestBody?: never;
|
|
2195
|
+
responses: {
|
|
2196
|
+
/** @description Experiments retrieved successfully */
|
|
2197
|
+
200: {
|
|
2198
|
+
headers: {
|
|
2199
|
+
[name: string]: unknown;
|
|
2200
|
+
};
|
|
2201
|
+
content: {
|
|
2202
|
+
"application/json": components["schemas"]["ListExperimentsResponseBody"];
|
|
2203
|
+
};
|
|
2204
|
+
};
|
|
2205
|
+
/** @description Forbidden */
|
|
2206
|
+
403: {
|
|
2207
|
+
headers: {
|
|
2208
|
+
[name: string]: unknown;
|
|
2209
|
+
};
|
|
2210
|
+
content: {
|
|
2211
|
+
"text/plain": string;
|
|
2212
|
+
};
|
|
2213
|
+
};
|
|
2214
|
+
/** @description Validation Error */
|
|
2215
|
+
422: {
|
|
2216
|
+
headers: {
|
|
2217
|
+
[name: string]: unknown;
|
|
2218
|
+
};
|
|
2219
|
+
content: {
|
|
2220
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
2221
|
+
};
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
};
|
|
2225
|
+
createExperiment: {
|
|
2226
|
+
parameters: {
|
|
2227
|
+
query?: never;
|
|
2228
|
+
header?: never;
|
|
2229
|
+
path: {
|
|
2230
|
+
dataset_id: string;
|
|
2231
|
+
};
|
|
2232
|
+
cookie?: never;
|
|
2233
|
+
};
|
|
2234
|
+
requestBody: {
|
|
2235
|
+
content: {
|
|
2236
|
+
"application/json": components["schemas"]["CreateExperimentRequestBody"];
|
|
2237
|
+
};
|
|
2238
|
+
};
|
|
2239
|
+
responses: {
|
|
2240
|
+
/** @description Experiment retrieved successfully */
|
|
2241
|
+
200: {
|
|
2242
|
+
headers: {
|
|
2243
|
+
[name: string]: unknown;
|
|
2244
|
+
};
|
|
2245
|
+
content: {
|
|
2246
|
+
"application/json": components["schemas"]["CreateExperimentResponseBody"];
|
|
2247
|
+
};
|
|
2248
|
+
};
|
|
2249
|
+
/** @description Forbidden */
|
|
2250
|
+
403: {
|
|
2251
|
+
headers: {
|
|
2252
|
+
[name: string]: unknown;
|
|
2253
|
+
};
|
|
2254
|
+
content: {
|
|
2255
|
+
"text/plain": string;
|
|
2256
|
+
};
|
|
2257
|
+
};
|
|
2258
|
+
/** @description Dataset or DatasetVersion not found */
|
|
2259
|
+
404: {
|
|
2260
|
+
headers: {
|
|
2261
|
+
[name: string]: unknown;
|
|
2262
|
+
};
|
|
2263
|
+
content: {
|
|
2264
|
+
"text/plain": string;
|
|
2265
|
+
};
|
|
2266
|
+
};
|
|
2267
|
+
/** @description Validation Error */
|
|
2268
|
+
422: {
|
|
2269
|
+
headers: {
|
|
2270
|
+
[name: string]: unknown;
|
|
2271
|
+
};
|
|
2272
|
+
content: {
|
|
2273
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2276
|
+
};
|
|
2277
|
+
};
|
|
2278
|
+
getExperiment: {
|
|
2279
|
+
parameters: {
|
|
2280
|
+
query?: never;
|
|
2281
|
+
header?: never;
|
|
2282
|
+
path: {
|
|
2283
|
+
experiment_id: string;
|
|
2284
|
+
};
|
|
2285
|
+
cookie?: never;
|
|
2286
|
+
};
|
|
2287
|
+
requestBody?: never;
|
|
2288
|
+
responses: {
|
|
2289
|
+
/** @description Experiment retrieved successfully */
|
|
2290
|
+
200: {
|
|
2291
|
+
headers: {
|
|
2292
|
+
[name: string]: unknown;
|
|
2293
|
+
};
|
|
2294
|
+
content: {
|
|
2295
|
+
"application/json": components["schemas"]["GetExperimentResponseBody"];
|
|
2296
|
+
};
|
|
2297
|
+
};
|
|
2298
|
+
/** @description Forbidden */
|
|
2299
|
+
403: {
|
|
2300
|
+
headers: {
|
|
2301
|
+
[name: string]: unknown;
|
|
2302
|
+
};
|
|
2303
|
+
content: {
|
|
2304
|
+
"text/plain": string;
|
|
2305
|
+
};
|
|
2306
|
+
};
|
|
2307
|
+
/** @description Experiment not found */
|
|
2308
|
+
404: {
|
|
2309
|
+
headers: {
|
|
2310
|
+
[name: string]: unknown;
|
|
2311
|
+
};
|
|
2312
|
+
content: {
|
|
2313
|
+
"text/plain": string;
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
2316
|
+
/** @description Validation Error */
|
|
2317
|
+
422: {
|
|
2318
|
+
headers: {
|
|
2319
|
+
[name: string]: unknown;
|
|
2320
|
+
};
|
|
2321
|
+
content: {
|
|
2322
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
2327
|
+
getExperimentJSON: {
|
|
2328
|
+
parameters: {
|
|
2329
|
+
query?: never;
|
|
2330
|
+
header?: never;
|
|
2331
|
+
path: {
|
|
2332
|
+
experiment_id: string;
|
|
2333
|
+
};
|
|
2334
|
+
cookie?: never;
|
|
2335
|
+
};
|
|
2336
|
+
requestBody?: never;
|
|
2337
|
+
responses: {
|
|
2338
|
+
/** @description Successful Response */
|
|
2339
|
+
200: {
|
|
2340
|
+
headers: {
|
|
2341
|
+
[name: string]: unknown;
|
|
2342
|
+
};
|
|
2343
|
+
content: {
|
|
2344
|
+
"text/plain": string;
|
|
2345
|
+
};
|
|
2346
|
+
};
|
|
2347
|
+
/** @description Forbidden */
|
|
2348
|
+
403: {
|
|
2349
|
+
headers: {
|
|
2350
|
+
[name: string]: unknown;
|
|
2351
|
+
};
|
|
2352
|
+
content: {
|
|
2353
|
+
"text/plain": string;
|
|
2354
|
+
};
|
|
2355
|
+
};
|
|
2356
|
+
/** @description Experiment not found */
|
|
2357
|
+
404: {
|
|
2358
|
+
headers: {
|
|
2359
|
+
[name: string]: unknown;
|
|
2360
|
+
};
|
|
2361
|
+
content: {
|
|
2362
|
+
"text/plain": string;
|
|
2363
|
+
};
|
|
2364
|
+
};
|
|
2365
|
+
/** @description Validation Error */
|
|
2366
|
+
422: {
|
|
2367
|
+
headers: {
|
|
2368
|
+
[name: string]: unknown;
|
|
2369
|
+
};
|
|
2370
|
+
content: {
|
|
2371
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
2372
|
+
};
|
|
2373
|
+
};
|
|
2374
|
+
};
|
|
2375
|
+
};
|
|
2376
|
+
getExperimentCSV: {
|
|
2377
|
+
parameters: {
|
|
2378
|
+
query?: never;
|
|
2379
|
+
header?: never;
|
|
2380
|
+
path: {
|
|
2381
|
+
experiment_id: string;
|
|
2382
|
+
};
|
|
2383
|
+
cookie?: never;
|
|
2384
|
+
};
|
|
2385
|
+
requestBody?: never;
|
|
2386
|
+
responses: {
|
|
2387
|
+
/** @description Successful Response */
|
|
2388
|
+
200: {
|
|
2389
|
+
headers: {
|
|
2390
|
+
[name: string]: unknown;
|
|
2391
|
+
};
|
|
2392
|
+
content: {
|
|
2393
|
+
"application/json": unknown;
|
|
2394
|
+
"text/csv": string;
|
|
2395
|
+
};
|
|
2396
|
+
};
|
|
2397
|
+
/** @description Forbidden */
|
|
2398
|
+
403: {
|
|
2399
|
+
headers: {
|
|
2400
|
+
[name: string]: unknown;
|
|
2401
|
+
};
|
|
2402
|
+
content: {
|
|
2403
|
+
"text/plain": string;
|
|
2404
|
+
};
|
|
2405
|
+
};
|
|
2406
|
+
/** @description Validation Error */
|
|
2407
|
+
422: {
|
|
2408
|
+
headers: {
|
|
2409
|
+
[name: string]: unknown;
|
|
2410
|
+
};
|
|
2411
|
+
content: {
|
|
2412
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
};
|
|
2416
|
+
};
|
|
2417
|
+
annotateSpans: {
|
|
2418
|
+
parameters: {
|
|
2419
|
+
query?: {
|
|
2420
|
+
/** @description If true, fulfill request synchronously. */
|
|
2421
|
+
sync?: boolean;
|
|
2422
|
+
};
|
|
2423
|
+
header?: never;
|
|
2424
|
+
path?: never;
|
|
2425
|
+
cookie?: never;
|
|
2426
|
+
};
|
|
2427
|
+
requestBody: {
|
|
2428
|
+
content: {
|
|
2429
|
+
"application/json": components["schemas"]["AnnotateSpansRequestBody"];
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
responses: {
|
|
2433
|
+
/** @description Span annotations inserted successfully */
|
|
2434
|
+
200: {
|
|
2435
|
+
headers: {
|
|
2436
|
+
[name: string]: unknown;
|
|
2437
|
+
};
|
|
2438
|
+
content: {
|
|
2439
|
+
"application/json": components["schemas"]["AnnotateSpansResponseBody"];
|
|
2440
|
+
};
|
|
2441
|
+
};
|
|
2442
|
+
/** @description Forbidden */
|
|
2443
|
+
403: {
|
|
2444
|
+
headers: {
|
|
2445
|
+
[name: string]: unknown;
|
|
2446
|
+
};
|
|
2447
|
+
content: {
|
|
2448
|
+
"text/plain": string;
|
|
2449
|
+
};
|
|
2450
|
+
};
|
|
2451
|
+
/** @description Span not found */
|
|
2452
|
+
404: {
|
|
2453
|
+
headers: {
|
|
2454
|
+
[name: string]: unknown;
|
|
2455
|
+
};
|
|
2456
|
+
content: {
|
|
2457
|
+
"text/plain": string;
|
|
2458
|
+
};
|
|
2459
|
+
};
|
|
2460
|
+
/** @description Validation Error */
|
|
2461
|
+
422: {
|
|
2462
|
+
headers: {
|
|
2463
|
+
[name: string]: unknown;
|
|
2464
|
+
};
|
|
2465
|
+
content: {
|
|
2466
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
2467
|
+
};
|
|
2468
|
+
};
|
|
2469
|
+
};
|
|
2470
|
+
};
|
|
2471
|
+
getEvaluations: {
|
|
2472
|
+
parameters: {
|
|
2473
|
+
query?: {
|
|
2474
|
+
/** @description The name of the project to get evaluations from (if omitted, evaluations will be drawn from the `default` project) */
|
|
2475
|
+
project_name?: string | null;
|
|
2476
|
+
};
|
|
2477
|
+
header?: never;
|
|
2478
|
+
path?: never;
|
|
2479
|
+
cookie?: never;
|
|
2480
|
+
};
|
|
2481
|
+
requestBody?: never;
|
|
2482
|
+
responses: {
|
|
2483
|
+
/** @description Successful Response */
|
|
2484
|
+
200: {
|
|
2485
|
+
headers: {
|
|
2486
|
+
[name: string]: unknown;
|
|
2487
|
+
};
|
|
2488
|
+
content: {
|
|
2489
|
+
"application/json": unknown;
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2492
|
+
/** @description Forbidden */
|
|
2493
|
+
403: {
|
|
2494
|
+
headers: {
|
|
2495
|
+
[name: string]: unknown;
|
|
2496
|
+
};
|
|
2497
|
+
content: {
|
|
2498
|
+
"text/plain": string;
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
2501
|
+
/** @description Not Found */
|
|
2502
|
+
404: {
|
|
2503
|
+
headers: {
|
|
2504
|
+
[name: string]: unknown;
|
|
2505
|
+
};
|
|
2506
|
+
content: {
|
|
2507
|
+
"text/plain": string;
|
|
2508
|
+
};
|
|
2509
|
+
};
|
|
2510
|
+
/** @description Validation Error */
|
|
2511
|
+
422: {
|
|
2512
|
+
headers: {
|
|
2513
|
+
[name: string]: unknown;
|
|
2514
|
+
};
|
|
2515
|
+
content: {
|
|
2516
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
2517
|
+
};
|
|
2518
|
+
};
|
|
2519
|
+
};
|
|
2520
|
+
};
|
|
2521
|
+
addEvaluations: {
|
|
2522
|
+
parameters: {
|
|
2523
|
+
query?: never;
|
|
2524
|
+
header?: {
|
|
2525
|
+
"content-type"?: string | null;
|
|
2526
|
+
"content-encoding"?: string | null;
|
|
2527
|
+
};
|
|
2528
|
+
path?: never;
|
|
2529
|
+
cookie?: never;
|
|
2530
|
+
};
|
|
2531
|
+
requestBody: {
|
|
2532
|
+
content: {
|
|
2533
|
+
"application/x-protobuf": string;
|
|
2534
|
+
"application/x-pandas-arrow": string;
|
|
2535
|
+
};
|
|
1366
2536
|
};
|
|
1367
|
-
requestBody?: never;
|
|
1368
2537
|
responses: {
|
|
1369
2538
|
/** @description Successful Response */
|
|
1370
|
-
|
|
2539
|
+
204: {
|
|
2540
|
+
headers: {
|
|
2541
|
+
[name: string]: unknown;
|
|
2542
|
+
};
|
|
2543
|
+
content?: never;
|
|
2544
|
+
};
|
|
2545
|
+
/** @description Forbidden */
|
|
2546
|
+
403: {
|
|
1371
2547
|
headers: {
|
|
1372
2548
|
[name: string]: unknown;
|
|
1373
2549
|
};
|
|
@@ -1375,8 +2551,8 @@ export interface operations {
|
|
|
1375
2551
|
"text/plain": string;
|
|
1376
2552
|
};
|
|
1377
2553
|
};
|
|
1378
|
-
/** @description
|
|
1379
|
-
|
|
2554
|
+
/** @description Unsupported content type, only gzipped protobuf and pandas-arrow are supported */
|
|
2555
|
+
415: {
|
|
1380
2556
|
headers: {
|
|
1381
2557
|
[name: string]: unknown;
|
|
1382
2558
|
};
|
|
@@ -1384,7 +2560,7 @@ export interface operations {
|
|
|
1384
2560
|
"text/plain": string;
|
|
1385
2561
|
};
|
|
1386
2562
|
};
|
|
1387
|
-
/** @description
|
|
2563
|
+
/** @description Unprocessable Entity */
|
|
1388
2564
|
422: {
|
|
1389
2565
|
headers: {
|
|
1390
2566
|
[name: string]: unknown;
|
|
@@ -1395,28 +2571,27 @@ export interface operations {
|
|
|
1395
2571
|
};
|
|
1396
2572
|
};
|
|
1397
2573
|
};
|
|
1398
|
-
|
|
2574
|
+
getPrompts: {
|
|
1399
2575
|
parameters: {
|
|
1400
2576
|
query?: {
|
|
1401
|
-
/** @description
|
|
1402
|
-
|
|
2577
|
+
/** @description Cursor for pagination (base64-encoded prompt ID) */
|
|
2578
|
+
cursor?: string | null;
|
|
2579
|
+
/** @description The max number of prompts to return at a time. */
|
|
2580
|
+
limit?: number;
|
|
1403
2581
|
};
|
|
1404
2582
|
header?: never;
|
|
1405
|
-
path
|
|
1406
|
-
/** @description The ID of the dataset */
|
|
1407
|
-
id: string;
|
|
1408
|
-
};
|
|
2583
|
+
path?: never;
|
|
1409
2584
|
cookie?: never;
|
|
1410
2585
|
};
|
|
1411
2586
|
requestBody?: never;
|
|
1412
2587
|
responses: {
|
|
1413
|
-
/** @description
|
|
2588
|
+
/** @description A list of prompts with pagination information */
|
|
1414
2589
|
200: {
|
|
1415
2590
|
headers: {
|
|
1416
2591
|
[name: string]: unknown;
|
|
1417
2592
|
};
|
|
1418
2593
|
content: {
|
|
1419
|
-
"
|
|
2594
|
+
"application/json": components["schemas"]["GetPromptsResponseBody"];
|
|
1420
2595
|
};
|
|
1421
2596
|
};
|
|
1422
2597
|
/** @description Forbidden */
|
|
@@ -1428,7 +2603,7 @@ export interface operations {
|
|
|
1428
2603
|
"text/plain": string;
|
|
1429
2604
|
};
|
|
1430
2605
|
};
|
|
1431
|
-
/** @description
|
|
2606
|
+
/** @description Unprocessable Entity */
|
|
1432
2607
|
422: {
|
|
1433
2608
|
headers: {
|
|
1434
2609
|
[name: string]: unknown;
|
|
@@ -1439,24 +2614,26 @@ export interface operations {
|
|
|
1439
2614
|
};
|
|
1440
2615
|
};
|
|
1441
2616
|
};
|
|
1442
|
-
|
|
2617
|
+
postPromptVersion: {
|
|
1443
2618
|
parameters: {
|
|
1444
2619
|
query?: never;
|
|
1445
2620
|
header?: never;
|
|
1446
|
-
path
|
|
1447
|
-
dataset_id: string;
|
|
1448
|
-
};
|
|
2621
|
+
path?: never;
|
|
1449
2622
|
cookie?: never;
|
|
1450
2623
|
};
|
|
1451
|
-
requestBody
|
|
2624
|
+
requestBody: {
|
|
2625
|
+
content: {
|
|
2626
|
+
"application/json": components["schemas"]["CreatePromptRequestBody"];
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
1452
2629
|
responses: {
|
|
1453
|
-
/** @description
|
|
2630
|
+
/** @description The newly created prompt version */
|
|
1454
2631
|
200: {
|
|
1455
2632
|
headers: {
|
|
1456
2633
|
[name: string]: unknown;
|
|
1457
2634
|
};
|
|
1458
2635
|
content: {
|
|
1459
|
-
"application/json": components["schemas"]["
|
|
2636
|
+
"application/json": components["schemas"]["CreatePromptResponseBody"];
|
|
1460
2637
|
};
|
|
1461
2638
|
};
|
|
1462
2639
|
/** @description Forbidden */
|
|
@@ -1468,39 +2645,41 @@ export interface operations {
|
|
|
1468
2645
|
"text/plain": string;
|
|
1469
2646
|
};
|
|
1470
2647
|
};
|
|
1471
|
-
/** @description
|
|
2648
|
+
/** @description Unprocessable Entity */
|
|
1472
2649
|
422: {
|
|
1473
2650
|
headers: {
|
|
1474
2651
|
[name: string]: unknown;
|
|
1475
2652
|
};
|
|
1476
2653
|
content: {
|
|
1477
|
-
"
|
|
2654
|
+
"text/plain": string;
|
|
1478
2655
|
};
|
|
1479
2656
|
};
|
|
1480
2657
|
};
|
|
1481
2658
|
};
|
|
1482
|
-
|
|
2659
|
+
listPromptVersions: {
|
|
1483
2660
|
parameters: {
|
|
1484
|
-
query?:
|
|
2661
|
+
query?: {
|
|
2662
|
+
/** @description Cursor for pagination (base64-encoded promptVersion ID) */
|
|
2663
|
+
cursor?: string | null;
|
|
2664
|
+
/** @description The max number of prompt versions to return at a time. */
|
|
2665
|
+
limit?: number;
|
|
2666
|
+
};
|
|
1485
2667
|
header?: never;
|
|
1486
2668
|
path: {
|
|
1487
|
-
|
|
2669
|
+
/** @description The identifier of the prompt, i.e. name or ID. */
|
|
2670
|
+
prompt_identifier: string;
|
|
1488
2671
|
};
|
|
1489
2672
|
cookie?: never;
|
|
1490
2673
|
};
|
|
1491
|
-
requestBody
|
|
1492
|
-
content: {
|
|
1493
|
-
"application/json": components["schemas"]["CreateExperimentRequestBody"];
|
|
1494
|
-
};
|
|
1495
|
-
};
|
|
2674
|
+
requestBody?: never;
|
|
1496
2675
|
responses: {
|
|
1497
|
-
/** @description
|
|
2676
|
+
/** @description A list of prompt versions with pagination information */
|
|
1498
2677
|
200: {
|
|
1499
2678
|
headers: {
|
|
1500
2679
|
[name: string]: unknown;
|
|
1501
2680
|
};
|
|
1502
2681
|
content: {
|
|
1503
|
-
"application/json": components["schemas"]["
|
|
2682
|
+
"application/json": components["schemas"]["GetPromptVersionsResponseBody"];
|
|
1504
2683
|
};
|
|
1505
2684
|
};
|
|
1506
2685
|
/** @description Forbidden */
|
|
@@ -1512,7 +2691,7 @@ export interface operations {
|
|
|
1512
2691
|
"text/plain": string;
|
|
1513
2692
|
};
|
|
1514
2693
|
};
|
|
1515
|
-
/** @description
|
|
2694
|
+
/** @description Not Found */
|
|
1516
2695
|
404: {
|
|
1517
2696
|
headers: {
|
|
1518
2697
|
[name: string]: unknown;
|
|
@@ -1521,35 +2700,36 @@ export interface operations {
|
|
|
1521
2700
|
"text/plain": string;
|
|
1522
2701
|
};
|
|
1523
2702
|
};
|
|
1524
|
-
/** @description
|
|
2703
|
+
/** @description Unprocessable Entity */
|
|
1525
2704
|
422: {
|
|
1526
2705
|
headers: {
|
|
1527
2706
|
[name: string]: unknown;
|
|
1528
2707
|
};
|
|
1529
2708
|
content: {
|
|
1530
|
-
"
|
|
2709
|
+
"text/plain": string;
|
|
1531
2710
|
};
|
|
1532
2711
|
};
|
|
1533
2712
|
};
|
|
1534
2713
|
};
|
|
1535
|
-
|
|
2714
|
+
getPromptVersionByPromptVersionId: {
|
|
1536
2715
|
parameters: {
|
|
1537
2716
|
query?: never;
|
|
1538
2717
|
header?: never;
|
|
1539
2718
|
path: {
|
|
1540
|
-
|
|
2719
|
+
/** @description The ID of the prompt version. */
|
|
2720
|
+
prompt_version_id: string;
|
|
1541
2721
|
};
|
|
1542
2722
|
cookie?: never;
|
|
1543
2723
|
};
|
|
1544
2724
|
requestBody?: never;
|
|
1545
2725
|
responses: {
|
|
1546
|
-
/** @description
|
|
2726
|
+
/** @description The requested prompt version */
|
|
1547
2727
|
200: {
|
|
1548
2728
|
headers: {
|
|
1549
2729
|
[name: string]: unknown;
|
|
1550
2730
|
};
|
|
1551
2731
|
content: {
|
|
1552
|
-
"application/json": components["schemas"]["
|
|
2732
|
+
"application/json": components["schemas"]["GetPromptResponseBody"];
|
|
1553
2733
|
};
|
|
1554
2734
|
};
|
|
1555
2735
|
/** @description Forbidden */
|
|
@@ -1561,7 +2741,7 @@ export interface operations {
|
|
|
1561
2741
|
"text/plain": string;
|
|
1562
2742
|
};
|
|
1563
2743
|
};
|
|
1564
|
-
/** @description
|
|
2744
|
+
/** @description Not Found */
|
|
1565
2745
|
404: {
|
|
1566
2746
|
headers: {
|
|
1567
2747
|
[name: string]: unknown;
|
|
@@ -1570,35 +2750,38 @@ export interface operations {
|
|
|
1570
2750
|
"text/plain": string;
|
|
1571
2751
|
};
|
|
1572
2752
|
};
|
|
1573
|
-
/** @description
|
|
2753
|
+
/** @description Unprocessable Entity */
|
|
1574
2754
|
422: {
|
|
1575
2755
|
headers: {
|
|
1576
2756
|
[name: string]: unknown;
|
|
1577
2757
|
};
|
|
1578
2758
|
content: {
|
|
1579
|
-
"
|
|
2759
|
+
"text/plain": string;
|
|
1580
2760
|
};
|
|
1581
2761
|
};
|
|
1582
2762
|
};
|
|
1583
2763
|
};
|
|
1584
|
-
|
|
2764
|
+
getPromptVersionByTagName: {
|
|
1585
2765
|
parameters: {
|
|
1586
2766
|
query?: never;
|
|
1587
2767
|
header?: never;
|
|
1588
2768
|
path: {
|
|
1589
|
-
|
|
2769
|
+
/** @description The identifier of the prompt, i.e. name or ID. */
|
|
2770
|
+
prompt_identifier: string;
|
|
2771
|
+
/** @description The tag of the prompt version */
|
|
2772
|
+
tag_name: string;
|
|
1590
2773
|
};
|
|
1591
2774
|
cookie?: never;
|
|
1592
2775
|
};
|
|
1593
2776
|
requestBody?: never;
|
|
1594
2777
|
responses: {
|
|
1595
|
-
/** @description
|
|
2778
|
+
/** @description The prompt version with the specified tag */
|
|
1596
2779
|
200: {
|
|
1597
2780
|
headers: {
|
|
1598
2781
|
[name: string]: unknown;
|
|
1599
2782
|
};
|
|
1600
2783
|
content: {
|
|
1601
|
-
"
|
|
2784
|
+
"application/json": components["schemas"]["GetPromptResponseBody"];
|
|
1602
2785
|
};
|
|
1603
2786
|
};
|
|
1604
2787
|
/** @description Forbidden */
|
|
@@ -1610,7 +2793,7 @@ export interface operations {
|
|
|
1610
2793
|
"text/plain": string;
|
|
1611
2794
|
};
|
|
1612
2795
|
};
|
|
1613
|
-
/** @description
|
|
2796
|
+
/** @description Not Found */
|
|
1614
2797
|
404: {
|
|
1615
2798
|
headers: {
|
|
1616
2799
|
[name: string]: unknown;
|
|
@@ -1619,40 +2802,36 @@ export interface operations {
|
|
|
1619
2802
|
"text/plain": string;
|
|
1620
2803
|
};
|
|
1621
2804
|
};
|
|
1622
|
-
/** @description
|
|
2805
|
+
/** @description Unprocessable Entity */
|
|
1623
2806
|
422: {
|
|
1624
2807
|
headers: {
|
|
1625
2808
|
[name: string]: unknown;
|
|
1626
2809
|
};
|
|
1627
2810
|
content: {
|
|
1628
|
-
"
|
|
2811
|
+
"text/plain": string;
|
|
1629
2812
|
};
|
|
1630
2813
|
};
|
|
1631
2814
|
};
|
|
1632
2815
|
};
|
|
1633
|
-
|
|
2816
|
+
getPromptVersionLatest: {
|
|
1634
2817
|
parameters: {
|
|
1635
|
-
query?:
|
|
1636
|
-
/** @description If true, fulfill request synchronously. */
|
|
1637
|
-
sync?: boolean;
|
|
1638
|
-
};
|
|
2818
|
+
query?: never;
|
|
1639
2819
|
header?: never;
|
|
1640
|
-
path
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
requestBody: {
|
|
1644
|
-
content: {
|
|
1645
|
-
"application/json": components["schemas"]["AnnotateSpansRequestBody"];
|
|
2820
|
+
path: {
|
|
2821
|
+
/** @description The identifier of the prompt, i.e. name or ID. */
|
|
2822
|
+
prompt_identifier: string;
|
|
1646
2823
|
};
|
|
2824
|
+
cookie?: never;
|
|
1647
2825
|
};
|
|
2826
|
+
requestBody?: never;
|
|
1648
2827
|
responses: {
|
|
1649
|
-
/** @description
|
|
2828
|
+
/** @description The latest version of the specified prompt */
|
|
1650
2829
|
200: {
|
|
1651
2830
|
headers: {
|
|
1652
2831
|
[name: string]: unknown;
|
|
1653
2832
|
};
|
|
1654
2833
|
content: {
|
|
1655
|
-
"application/json": components["schemas"]["
|
|
2834
|
+
"application/json": components["schemas"]["GetPromptResponseBody"];
|
|
1656
2835
|
};
|
|
1657
2836
|
};
|
|
1658
2837
|
/** @description Forbidden */
|
|
@@ -1664,7 +2843,7 @@ export interface operations {
|
|
|
1664
2843
|
"text/plain": string;
|
|
1665
2844
|
};
|
|
1666
2845
|
};
|
|
1667
|
-
/** @description
|
|
2846
|
+
/** @description Not Found */
|
|
1668
2847
|
404: {
|
|
1669
2848
|
headers: {
|
|
1670
2849
|
[name: string]: unknown;
|
|
@@ -1673,36 +2852,41 @@ export interface operations {
|
|
|
1673
2852
|
"text/plain": string;
|
|
1674
2853
|
};
|
|
1675
2854
|
};
|
|
1676
|
-
/** @description
|
|
2855
|
+
/** @description Unprocessable Entity */
|
|
1677
2856
|
422: {
|
|
1678
2857
|
headers: {
|
|
1679
2858
|
[name: string]: unknown;
|
|
1680
2859
|
};
|
|
1681
2860
|
content: {
|
|
1682
|
-
"
|
|
2861
|
+
"text/plain": string;
|
|
1683
2862
|
};
|
|
1684
2863
|
};
|
|
1685
2864
|
};
|
|
1686
2865
|
};
|
|
1687
|
-
|
|
2866
|
+
getPromptVersionTags: {
|
|
1688
2867
|
parameters: {
|
|
1689
2868
|
query?: {
|
|
1690
|
-
/** @description
|
|
1691
|
-
|
|
2869
|
+
/** @description Cursor for pagination (base64-encoded promptVersionTag ID) */
|
|
2870
|
+
cursor?: string | null;
|
|
2871
|
+
/** @description The max number of tags to return at a time. */
|
|
2872
|
+
limit?: number;
|
|
1692
2873
|
};
|
|
1693
2874
|
header?: never;
|
|
1694
|
-
path
|
|
2875
|
+
path: {
|
|
2876
|
+
/** @description The ID of the prompt version. */
|
|
2877
|
+
prompt_version_id: string;
|
|
2878
|
+
};
|
|
1695
2879
|
cookie?: never;
|
|
1696
2880
|
};
|
|
1697
2881
|
requestBody?: never;
|
|
1698
2882
|
responses: {
|
|
1699
|
-
/** @description
|
|
2883
|
+
/** @description A list of tags associated with the prompt version */
|
|
1700
2884
|
200: {
|
|
1701
2885
|
headers: {
|
|
1702
2886
|
[name: string]: unknown;
|
|
1703
2887
|
};
|
|
1704
2888
|
content: {
|
|
1705
|
-
"application/json":
|
|
2889
|
+
"application/json": components["schemas"]["GetPromptVersionTagsResponseBody"];
|
|
1706
2890
|
};
|
|
1707
2891
|
};
|
|
1708
2892
|
/** @description Forbidden */
|
|
@@ -1723,35 +2907,34 @@ export interface operations {
|
|
|
1723
2907
|
"text/plain": string;
|
|
1724
2908
|
};
|
|
1725
2909
|
};
|
|
1726
|
-
/** @description
|
|
2910
|
+
/** @description Unprocessable Entity */
|
|
1727
2911
|
422: {
|
|
1728
2912
|
headers: {
|
|
1729
2913
|
[name: string]: unknown;
|
|
1730
2914
|
};
|
|
1731
2915
|
content: {
|
|
1732
|
-
"
|
|
2916
|
+
"text/plain": string;
|
|
1733
2917
|
};
|
|
1734
2918
|
};
|
|
1735
2919
|
};
|
|
1736
2920
|
};
|
|
1737
|
-
|
|
2921
|
+
createPromptVersionTag: {
|
|
1738
2922
|
parameters: {
|
|
1739
2923
|
query?: never;
|
|
1740
|
-
header?:
|
|
1741
|
-
|
|
1742
|
-
|
|
2924
|
+
header?: never;
|
|
2925
|
+
path: {
|
|
2926
|
+
/** @description The ID of the prompt version. */
|
|
2927
|
+
prompt_version_id: string;
|
|
1743
2928
|
};
|
|
1744
|
-
path?: never;
|
|
1745
2929
|
cookie?: never;
|
|
1746
2930
|
};
|
|
1747
2931
|
requestBody: {
|
|
1748
2932
|
content: {
|
|
1749
|
-
"application/
|
|
1750
|
-
"application/x-pandas-arrow": string;
|
|
2933
|
+
"application/json": components["schemas"]["PromptVersionTagData"];
|
|
1751
2934
|
};
|
|
1752
2935
|
};
|
|
1753
2936
|
responses: {
|
|
1754
|
-
/** @description
|
|
2937
|
+
/** @description No content returned on successful tag creation */
|
|
1755
2938
|
204: {
|
|
1756
2939
|
headers: {
|
|
1757
2940
|
[name: string]: unknown;
|
|
@@ -1767,8 +2950,8 @@ export interface operations {
|
|
|
1767
2950
|
"text/plain": string;
|
|
1768
2951
|
};
|
|
1769
2952
|
};
|
|
1770
|
-
/** @description
|
|
1771
|
-
|
|
2953
|
+
/** @description Not Found */
|
|
2954
|
+
404: {
|
|
1772
2955
|
headers: {
|
|
1773
2956
|
[name: string]: unknown;
|
|
1774
2957
|
};
|
|
@@ -1787,13 +2970,15 @@ export interface operations {
|
|
|
1787
2970
|
};
|
|
1788
2971
|
};
|
|
1789
2972
|
};
|
|
1790
|
-
|
|
2973
|
+
getProjects: {
|
|
1791
2974
|
parameters: {
|
|
1792
2975
|
query?: {
|
|
1793
|
-
/** @description Cursor for pagination (
|
|
2976
|
+
/** @description Cursor for pagination (project ID) */
|
|
1794
2977
|
cursor?: string | null;
|
|
1795
|
-
/** @description The max number of
|
|
2978
|
+
/** @description The max number of projects to return at a time. */
|
|
1796
2979
|
limit?: number;
|
|
2980
|
+
/** @description Include experiment projects in the response. Experiment projects are created from running experiments. */
|
|
2981
|
+
include_experiment_projects?: boolean;
|
|
1797
2982
|
};
|
|
1798
2983
|
header?: never;
|
|
1799
2984
|
path?: never;
|
|
@@ -1801,13 +2986,13 @@ export interface operations {
|
|
|
1801
2986
|
};
|
|
1802
2987
|
requestBody?: never;
|
|
1803
2988
|
responses: {
|
|
1804
|
-
/** @description
|
|
2989
|
+
/** @description A list of projects with pagination information */
|
|
1805
2990
|
200: {
|
|
1806
2991
|
headers: {
|
|
1807
2992
|
[name: string]: unknown;
|
|
1808
2993
|
};
|
|
1809
2994
|
content: {
|
|
1810
|
-
"application/json": components["schemas"]["
|
|
2995
|
+
"application/json": components["schemas"]["GetProjectsResponseBody"];
|
|
1811
2996
|
};
|
|
1812
2997
|
};
|
|
1813
2998
|
/** @description Forbidden */
|
|
@@ -1830,7 +3015,7 @@ export interface operations {
|
|
|
1830
3015
|
};
|
|
1831
3016
|
};
|
|
1832
3017
|
};
|
|
1833
|
-
|
|
3018
|
+
createProject: {
|
|
1834
3019
|
parameters: {
|
|
1835
3020
|
query?: never;
|
|
1836
3021
|
header?: never;
|
|
@@ -1839,63 +3024,17 @@ export interface operations {
|
|
|
1839
3024
|
};
|
|
1840
3025
|
requestBody: {
|
|
1841
3026
|
content: {
|
|
1842
|
-
"application/json": components["schemas"]["
|
|
1843
|
-
};
|
|
1844
|
-
};
|
|
1845
|
-
responses: {
|
|
1846
|
-
/** @description Successful Response */
|
|
1847
|
-
200: {
|
|
1848
|
-
headers: {
|
|
1849
|
-
[name: string]: unknown;
|
|
1850
|
-
};
|
|
1851
|
-
content: {
|
|
1852
|
-
"application/json": components["schemas"]["CreatePromptResponseBody"];
|
|
1853
|
-
};
|
|
3027
|
+
"application/json": components["schemas"]["CreateProjectRequestBody"];
|
|
1854
3028
|
};
|
|
1855
|
-
/** @description Forbidden */
|
|
1856
|
-
403: {
|
|
1857
|
-
headers: {
|
|
1858
|
-
[name: string]: unknown;
|
|
1859
|
-
};
|
|
1860
|
-
content: {
|
|
1861
|
-
"text/plain": string;
|
|
1862
|
-
};
|
|
1863
|
-
};
|
|
1864
|
-
/** @description Unprocessable Entity */
|
|
1865
|
-
422: {
|
|
1866
|
-
headers: {
|
|
1867
|
-
[name: string]: unknown;
|
|
1868
|
-
};
|
|
1869
|
-
content: {
|
|
1870
|
-
"text/plain": string;
|
|
1871
|
-
};
|
|
1872
|
-
};
|
|
1873
|
-
};
|
|
1874
|
-
};
|
|
1875
|
-
listPromptVersions: {
|
|
1876
|
-
parameters: {
|
|
1877
|
-
query?: {
|
|
1878
|
-
/** @description Cursor for pagination (base64-encoded promptVersion ID) */
|
|
1879
|
-
cursor?: string | null;
|
|
1880
|
-
/** @description The max number of prompt versions to return at a time. */
|
|
1881
|
-
limit?: number;
|
|
1882
|
-
};
|
|
1883
|
-
header?: never;
|
|
1884
|
-
path: {
|
|
1885
|
-
/** @description The identifier of the prompt, i.e. name or ID. */
|
|
1886
|
-
prompt_identifier: string;
|
|
1887
|
-
};
|
|
1888
|
-
cookie?: never;
|
|
1889
3029
|
};
|
|
1890
|
-
requestBody?: never;
|
|
1891
3030
|
responses: {
|
|
1892
|
-
/** @description
|
|
3031
|
+
/** @description The newly created project */
|
|
1893
3032
|
200: {
|
|
1894
3033
|
headers: {
|
|
1895
3034
|
[name: string]: unknown;
|
|
1896
3035
|
};
|
|
1897
3036
|
content: {
|
|
1898
|
-
"application/json": components["schemas"]["
|
|
3037
|
+
"application/json": components["schemas"]["CreateProjectResponseBody"];
|
|
1899
3038
|
};
|
|
1900
3039
|
};
|
|
1901
3040
|
/** @description Forbidden */
|
|
@@ -1918,25 +3057,25 @@ export interface operations {
|
|
|
1918
3057
|
};
|
|
1919
3058
|
};
|
|
1920
3059
|
};
|
|
1921
|
-
|
|
3060
|
+
getProject: {
|
|
1922
3061
|
parameters: {
|
|
1923
3062
|
query?: never;
|
|
1924
3063
|
header?: never;
|
|
1925
3064
|
path: {
|
|
1926
|
-
/** @description The ID
|
|
1927
|
-
|
|
3065
|
+
/** @description The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
|
|
3066
|
+
project_identifier: string;
|
|
1928
3067
|
};
|
|
1929
3068
|
cookie?: never;
|
|
1930
3069
|
};
|
|
1931
3070
|
requestBody?: never;
|
|
1932
3071
|
responses: {
|
|
1933
|
-
/** @description
|
|
3072
|
+
/** @description The requested project */
|
|
1934
3073
|
200: {
|
|
1935
3074
|
headers: {
|
|
1936
3075
|
[name: string]: unknown;
|
|
1937
3076
|
};
|
|
1938
3077
|
content: {
|
|
1939
|
-
"application/json": components["schemas"]["
|
|
3078
|
+
"application/json": components["schemas"]["GetProjectResponseBody"];
|
|
1940
3079
|
};
|
|
1941
3080
|
};
|
|
1942
3081
|
/** @description Forbidden */
|
|
@@ -1968,27 +3107,29 @@ export interface operations {
|
|
|
1968
3107
|
};
|
|
1969
3108
|
};
|
|
1970
3109
|
};
|
|
1971
|
-
|
|
3110
|
+
updateProject: {
|
|
1972
3111
|
parameters: {
|
|
1973
3112
|
query?: never;
|
|
1974
3113
|
header?: never;
|
|
1975
3114
|
path: {
|
|
1976
|
-
/** @description The identifier
|
|
1977
|
-
|
|
1978
|
-
/** @description The tag of the prompt version */
|
|
1979
|
-
tag_name: string;
|
|
3115
|
+
/** @description The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
|
|
3116
|
+
project_identifier: string;
|
|
1980
3117
|
};
|
|
1981
3118
|
cookie?: never;
|
|
1982
3119
|
};
|
|
1983
|
-
requestBody
|
|
3120
|
+
requestBody: {
|
|
3121
|
+
content: {
|
|
3122
|
+
"application/json": components["schemas"]["UpdateProjectRequestBody"];
|
|
3123
|
+
};
|
|
3124
|
+
};
|
|
1984
3125
|
responses: {
|
|
1985
|
-
/** @description
|
|
3126
|
+
/** @description The updated project */
|
|
1986
3127
|
200: {
|
|
1987
3128
|
headers: {
|
|
1988
3129
|
[name: string]: unknown;
|
|
1989
3130
|
};
|
|
1990
3131
|
content: {
|
|
1991
|
-
"application/json": components["schemas"]["
|
|
3132
|
+
"application/json": components["schemas"]["UpdateProjectResponseBody"];
|
|
1992
3133
|
};
|
|
1993
3134
|
};
|
|
1994
3135
|
/** @description Forbidden */
|
|
@@ -2020,26 +3161,24 @@ export interface operations {
|
|
|
2020
3161
|
};
|
|
2021
3162
|
};
|
|
2022
3163
|
};
|
|
2023
|
-
|
|
3164
|
+
deleteProject: {
|
|
2024
3165
|
parameters: {
|
|
2025
3166
|
query?: never;
|
|
2026
3167
|
header?: never;
|
|
2027
3168
|
path: {
|
|
2028
|
-
/** @description The identifier
|
|
2029
|
-
|
|
3169
|
+
/** @description The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
|
|
3170
|
+
project_identifier: string;
|
|
2030
3171
|
};
|
|
2031
3172
|
cookie?: never;
|
|
2032
3173
|
};
|
|
2033
3174
|
requestBody?: never;
|
|
2034
3175
|
responses: {
|
|
2035
|
-
/** @description
|
|
2036
|
-
|
|
3176
|
+
/** @description No content returned on successful deletion */
|
|
3177
|
+
204: {
|
|
2037
3178
|
headers: {
|
|
2038
3179
|
[name: string]: unknown;
|
|
2039
3180
|
};
|
|
2040
|
-
content
|
|
2041
|
-
"application/json": components["schemas"]["GetPromptResponseBody"];
|
|
2042
|
-
};
|
|
3181
|
+
content?: never;
|
|
2043
3182
|
};
|
|
2044
3183
|
/** @description Forbidden */
|
|
2045
3184
|
403: {
|