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