@arizeai/phoenix-client 1.0.2 → 1.2.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.
Files changed (84) hide show
  1. package/README.md +17 -5
  2. package/dist/esm/__generated__/api/v1.d.ts +1809 -295
  3. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  4. package/dist/esm/experiments/runExperiment.d.ts +48 -13
  5. package/dist/esm/experiments/runExperiment.d.ts.map +1 -1
  6. package/dist/esm/experiments/runExperiment.js +139 -36
  7. package/dist/esm/experiments/runExperiment.js.map +1 -1
  8. package/dist/esm/schemas/llm/constants.d.ts +1 -1
  9. package/dist/esm/schemas/llm/converters.d.ts +4 -4
  10. package/dist/esm/schemas/llm/openai/converters.d.ts +1 -1
  11. package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts +8 -8
  12. package/dist/esm/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +5 -5
  13. package/dist/esm/schemas/llm/phoenixPrompt/messageSchemas.d.ts +8 -8
  14. package/dist/esm/schemas/llm/schemas.d.ts +4 -4
  15. package/dist/esm/spans/addSpanAnnotation.d.ts +39 -0
  16. package/dist/esm/spans/addSpanAnnotation.d.ts.map +1 -0
  17. package/dist/esm/spans/addSpanAnnotation.js +44 -0
  18. package/dist/esm/spans/addSpanAnnotation.js.map +1 -0
  19. package/dist/esm/spans/index.d.ts +3 -0
  20. package/dist/esm/spans/index.d.ts.map +1 -0
  21. package/dist/esm/spans/index.js +3 -0
  22. package/dist/esm/spans/index.js.map +1 -0
  23. package/dist/esm/spans/logSpanAnnotations.d.ts +51 -0
  24. package/dist/esm/spans/logSpanAnnotations.d.ts.map +1 -0
  25. package/dist/esm/spans/logSpanAnnotations.js +53 -0
  26. package/dist/esm/spans/logSpanAnnotations.js.map +1 -0
  27. package/dist/esm/spans/types.d.ts +43 -0
  28. package/dist/esm/spans/types.d.ts.map +1 -0
  29. package/dist/esm/spans/types.js +18 -0
  30. package/dist/esm/spans/types.js.map +1 -0
  31. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  32. package/dist/esm/types/annotations.d.ts +2 -1
  33. package/dist/esm/types/annotations.d.ts.map +1 -1
  34. package/dist/esm/types/experiments.d.ts +1 -7
  35. package/dist/esm/types/experiments.d.ts.map +1 -1
  36. package/dist/esm/utils/formatPromptMessages.d.ts +3 -1
  37. package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
  38. package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
  39. package/dist/src/__generated__/api/v1.d.ts +1809 -295
  40. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  41. package/dist/src/experiments/runExperiment.d.ts +48 -13
  42. package/dist/src/experiments/runExperiment.d.ts.map +1 -1
  43. package/dist/src/experiments/runExperiment.js +138 -36
  44. package/dist/src/experiments/runExperiment.js.map +1 -1
  45. package/dist/src/schemas/llm/constants.d.ts +1 -1
  46. package/dist/src/schemas/llm/converters.d.ts +4 -4
  47. package/dist/src/schemas/llm/openai/converters.d.ts +1 -1
  48. package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts +8 -8
  49. package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +5 -5
  50. package/dist/src/schemas/llm/phoenixPrompt/messageSchemas.d.ts +8 -8
  51. package/dist/src/schemas/llm/schemas.d.ts +4 -4
  52. package/dist/src/spans/addSpanAnnotation.d.ts +39 -0
  53. package/dist/src/spans/addSpanAnnotation.d.ts.map +1 -0
  54. package/dist/src/spans/addSpanAnnotation.js +59 -0
  55. package/dist/src/spans/addSpanAnnotation.js.map +1 -0
  56. package/dist/src/spans/index.d.ts +3 -0
  57. package/dist/src/spans/index.d.ts.map +1 -0
  58. package/dist/src/spans/index.js +19 -0
  59. package/dist/src/spans/index.js.map +1 -0
  60. package/dist/src/spans/logSpanAnnotations.d.ts +51 -0
  61. package/dist/src/spans/logSpanAnnotations.d.ts.map +1 -0
  62. package/dist/src/spans/logSpanAnnotations.js +68 -0
  63. package/dist/src/spans/logSpanAnnotations.js.map +1 -0
  64. package/dist/src/spans/types.d.ts +43 -0
  65. package/dist/src/spans/types.d.ts.map +1 -0
  66. package/dist/src/spans/types.js +22 -0
  67. package/dist/src/spans/types.js.map +1 -0
  68. package/dist/src/types/annotations.d.ts +2 -1
  69. package/dist/src/types/annotations.d.ts.map +1 -1
  70. package/dist/src/types/experiments.d.ts +1 -7
  71. package/dist/src/types/experiments.d.ts.map +1 -1
  72. package/dist/src/utils/formatPromptMessages.d.ts +3 -1
  73. package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
  74. package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
  75. package/dist/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +8 -2
  77. package/src/__generated__/api/v1.ts +1809 -295
  78. package/src/experiments/runExperiment.ts +211 -74
  79. package/src/spans/addSpanAnnotation.ts +59 -0
  80. package/src/spans/index.ts +2 -0
  81. package/src/spans/logSpanAnnotations.ts +71 -0
  82. package/src/spans/types.ts +60 -0
  83. package/src/types/annotations.ts +4 -1
  84. package/src/types/experiments.ts +1 -7
@@ -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,58 @@ 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
+ };
285
+ "/v1/experiments/{experiment_id}/runs": {
286
+ parameters: {
287
+ query?: never;
288
+ header?: never;
289
+ path?: never;
290
+ cookie?: never;
291
+ };
292
+ /** List runs for an experiment */
293
+ get: operations["listExperimentRuns"];
294
+ put?: never;
295
+ /** Create run for an experiment */
296
+ post: operations["createExperimentRun"];
297
+ delete?: never;
298
+ options?: never;
299
+ head?: never;
300
+ patch?: never;
301
+ trace?: never;
302
+ };
303
+ "/v1/experiment_evaluations": {
304
+ parameters: {
305
+ query?: never;
306
+ header?: never;
307
+ path?: never;
308
+ cookie?: never;
309
+ };
310
+ get?: never;
311
+ put?: never;
312
+ /** Create or update evaluation for an experiment run */
313
+ post: operations["upsertExperimentEvaluation"];
314
+ delete?: never;
315
+ options?: never;
316
+ head?: never;
317
+ patch?: never;
318
+ trace?: never;
319
+ };
195
320
  "/v1/span_annotations": {
196
321
  parameters: {
197
322
  query?: never;
@@ -201,7 +326,7 @@ export interface paths {
201
326
  };
202
327
  get?: never;
203
328
  put?: never;
204
- /** Create or update span annotations */
329
+ /** Create span annotations */
205
330
  post: operations["annotateSpans"];
206
331
  delete?: never;
207
332
  options?: never;
@@ -234,10 +359,16 @@ export interface paths {
234
359
  path?: never;
235
360
  cookie?: never;
236
361
  };
237
- /** Get all prompts */
362
+ /**
363
+ * List all prompts
364
+ * @description Retrieve a paginated list of all prompts in the system. A prompt can have multiple versions.
365
+ */
238
366
  get: operations["getPrompts"];
239
367
  put?: never;
240
- /** Create a prompt version */
368
+ /**
369
+ * Create a new prompt
370
+ * @description Create a new prompt and its initial version. A prompt can have multiple versions.
371
+ */
241
372
  post: operations["postPromptVersion"];
242
373
  delete?: never;
243
374
  options?: never;
@@ -252,7 +383,10 @@ export interface paths {
252
383
  path?: never;
253
384
  cookie?: never;
254
385
  };
255
- /** List all prompt versions for a given prompt */
386
+ /**
387
+ * List prompt versions
388
+ * @description Retrieve all versions of a specific prompt with pagination support. Each prompt can have multiple versions with different configurations.
389
+ */
256
390
  get: operations["listPromptVersions"];
257
391
  put?: never;
258
392
  post?: never;
@@ -269,7 +403,10 @@ export interface paths {
269
403
  path?: never;
270
404
  cookie?: never;
271
405
  };
272
- /** Get prompt by prompt version ID */
406
+ /**
407
+ * Get prompt version by ID
408
+ * @description Retrieve a specific prompt version using its unique identifier. A prompt version contains the actual template and configuration.
409
+ */
273
410
  get: operations["getPromptVersionByPromptVersionId"];
274
411
  put?: never;
275
412
  post?: never;
@@ -286,7 +423,10 @@ export interface paths {
286
423
  path?: never;
287
424
  cookie?: never;
288
425
  };
289
- /** Get prompt by tag name */
426
+ /**
427
+ * Get prompt version by tag
428
+ * @description Retrieve a specific prompt version using its tag name. Tags are used to identify specific versions of a prompt.
429
+ */
290
430
  get: operations["getPromptVersionByTagName"];
291
431
  put?: never;
292
432
  post?: never;
@@ -303,7 +443,10 @@ export interface paths {
303
443
  path?: never;
304
444
  cookie?: never;
305
445
  };
306
- /** Get the latest prompt version */
446
+ /**
447
+ * Get latest prompt version
448
+ * @description Retrieve the most recent version of a specific prompt.
449
+ */
307
450
  get: operations["getPromptVersionLatest"];
308
451
  put?: never;
309
452
  post?: never;
@@ -313,6 +456,82 @@ export interface paths {
313
456
  patch?: never;
314
457
  trace?: never;
315
458
  };
459
+ "/v1/prompt_versions/{prompt_version_id}/tags": {
460
+ parameters: {
461
+ query?: never;
462
+ header?: never;
463
+ path?: never;
464
+ cookie?: never;
465
+ };
466
+ /**
467
+ * List prompt version tags
468
+ * @description Retrieve all tags associated with a specific prompt version. Tags are used to identify and categorize different versions of a prompt.
469
+ */
470
+ get: operations["getPromptVersionTags"];
471
+ put?: never;
472
+ /**
473
+ * Add tag to prompt version
474
+ * @description Add a new tag to a specific prompt version. Tags help identify and categorize different versions of a prompt.
475
+ */
476
+ post: operations["createPromptVersionTag"];
477
+ delete?: never;
478
+ options?: never;
479
+ head?: never;
480
+ patch?: never;
481
+ trace?: never;
482
+ };
483
+ "/v1/projects": {
484
+ parameters: {
485
+ query?: never;
486
+ header?: never;
487
+ path?: never;
488
+ cookie?: never;
489
+ };
490
+ /**
491
+ * List all projects
492
+ * @description Retrieve a paginated list of all projects in the system.
493
+ */
494
+ get: operations["getProjects"];
495
+ put?: never;
496
+ /**
497
+ * Create a new project
498
+ * @description Create a new project with the specified configuration.
499
+ */
500
+ post: operations["createProject"];
501
+ delete?: never;
502
+ options?: never;
503
+ head?: never;
504
+ patch?: never;
505
+ trace?: never;
506
+ };
507
+ "/v1/projects/{project_identifier}": {
508
+ parameters: {
509
+ query?: never;
510
+ header?: never;
511
+ path?: never;
512
+ cookie?: never;
513
+ };
514
+ /**
515
+ * Get project by ID or name
516
+ * @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.
517
+ */
518
+ get: operations["getProject"];
519
+ /**
520
+ * Update a project by ID or name
521
+ * @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.
522
+ */
523
+ put: operations["updateProject"];
524
+ post?: never;
525
+ /**
526
+ * Delete a project by ID or name
527
+ * @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.
528
+ */
529
+ delete: operations["deleteProject"];
530
+ options?: never;
531
+ head?: never;
532
+ patch?: never;
533
+ trace?: never;
534
+ };
316
535
  }
317
536
  export type webhooks = Record<string, never>;
318
537
  export interface components {
@@ -320,13 +539,95 @@ export interface components {
320
539
  /** AnnotateSpansRequestBody */
321
540
  AnnotateSpansRequestBody: {
322
541
  /** Data */
323
- data: components["schemas"]["SpanAnnotation"][];
542
+ data: components["schemas"]["SpanAnnotationData"][];
324
543
  };
325
544
  /** AnnotateSpansResponseBody */
326
545
  AnnotateSpansResponseBody: {
327
546
  /** Data */
328
547
  data: components["schemas"]["InsertedSpanAnnotation"][];
329
548
  };
549
+ /** CategoricalAnnotationConfig */
550
+ CategoricalAnnotationConfig: {
551
+ /** Name */
552
+ name: string;
553
+ /**
554
+ * @description discriminator enum property added by openapi-typescript
555
+ * @enum {string}
556
+ */
557
+ type: "CATEGORICAL";
558
+ /** Description */
559
+ description?: string | null;
560
+ optimization_direction: components["schemas"]["OptimizationDirection"];
561
+ /** Values */
562
+ values: components["schemas"]["CategoricalAnnotationValue"][];
563
+ /** Id */
564
+ id: string;
565
+ };
566
+ /** CategoricalAnnotationConfigData */
567
+ CategoricalAnnotationConfigData: {
568
+ /** Name */
569
+ name: string;
570
+ /**
571
+ * @description discriminator enum property added by openapi-typescript
572
+ * @enum {string}
573
+ */
574
+ type: "CATEGORICAL";
575
+ /** Description */
576
+ description?: string | null;
577
+ optimization_direction: components["schemas"]["OptimizationDirection"];
578
+ /** Values */
579
+ values: components["schemas"]["CategoricalAnnotationValue"][];
580
+ };
581
+ /** CategoricalAnnotationValue */
582
+ CategoricalAnnotationValue: {
583
+ /** Label */
584
+ label: string;
585
+ /** Score */
586
+ score?: number | null;
587
+ };
588
+ /** ContinuousAnnotationConfig */
589
+ ContinuousAnnotationConfig: {
590
+ /** Name */
591
+ name: string;
592
+ /**
593
+ * @description discriminator enum property added by openapi-typescript
594
+ * @enum {string}
595
+ */
596
+ type: "CONTINUOUS";
597
+ /** Description */
598
+ description?: string | null;
599
+ optimization_direction: components["schemas"]["OptimizationDirection"];
600
+ /** Lower Bound */
601
+ lower_bound?: number | null;
602
+ /** Upper Bound */
603
+ upper_bound?: number | null;
604
+ /** Id */
605
+ id: string;
606
+ };
607
+ /** ContinuousAnnotationConfigData */
608
+ ContinuousAnnotationConfigData: {
609
+ /** Name */
610
+ name: string;
611
+ /**
612
+ * @description discriminator enum property added by openapi-typescript
613
+ * @enum {string}
614
+ */
615
+ type: "CONTINUOUS";
616
+ /** Description */
617
+ description?: string | null;
618
+ optimization_direction: components["schemas"]["OptimizationDirection"];
619
+ /** Lower Bound */
620
+ lower_bound?: number | null;
621
+ /** Upper Bound */
622
+ upper_bound?: number | null;
623
+ };
624
+ /** CreateAnnotationConfigData */
625
+ CreateAnnotationConfigData: components["schemas"]["CategoricalAnnotationConfigData"] | components["schemas"]["ContinuousAnnotationConfigData"] | components["schemas"]["FreeformAnnotationConfigData"];
626
+ /** CreateAnnotationConfigResponseBody */
627
+ CreateAnnotationConfigResponseBody: {
628
+ /** Data */
629
+ data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
630
+ };
330
631
  /**
331
632
  * CreateExperimentRequestBody
332
633
  * @description Details of the experiment to be created
@@ -346,7 +647,9 @@ export interface components {
346
647
  * Metadata
347
648
  * @description Metadata for the experiment
348
649
  */
349
- metadata?: Record<string, unknown> | null;
650
+ metadata?: {
651
+ [key: string]: unknown;
652
+ } | null;
350
653
  /**
351
654
  * Version Id
352
655
  * @description ID of the dataset version over which the experiment will be run (if omitted, the latest version will be used)
@@ -357,12 +660,75 @@ export interface components {
357
660
  * @description Number of times the experiment should be repeated for each example
358
661
  * @default 1
359
662
  */
360
- repetitions: number;
663
+ repetitions?: number;
361
664
  };
362
665
  /** CreateExperimentResponseBody */
363
666
  CreateExperimentResponseBody: {
364
667
  data: components["schemas"]["Experiment"];
365
668
  };
669
+ /** CreateExperimentRunRequestBody */
670
+ CreateExperimentRunRequestBody: {
671
+ /**
672
+ * Dataset Example Id
673
+ * @description The ID of the dataset example used in the experiment run
674
+ */
675
+ dataset_example_id: string;
676
+ /**
677
+ * Output
678
+ * @description The output of the experiment task
679
+ */
680
+ output: unknown;
681
+ /**
682
+ * Repetition Number
683
+ * @description The repetition number of the experiment run
684
+ */
685
+ repetition_number: number;
686
+ /**
687
+ * Start Time
688
+ * Format: date-time
689
+ * @description The start time of the experiment run
690
+ */
691
+ start_time: string;
692
+ /**
693
+ * End Time
694
+ * Format: date-time
695
+ * @description The end time of the experiment run
696
+ */
697
+ end_time: string;
698
+ /**
699
+ * Trace Id
700
+ * @description The ID of the corresponding trace (if one exists)
701
+ */
702
+ trace_id?: string | null;
703
+ /**
704
+ * Error
705
+ * @description Optional error message if the experiment run encountered an error
706
+ */
707
+ error?: string | null;
708
+ };
709
+ /** CreateExperimentRunResponseBody */
710
+ CreateExperimentRunResponseBody: {
711
+ data: components["schemas"]["CreateExperimentRunResponseBodyData"];
712
+ };
713
+ /** CreateExperimentRunResponseBodyData */
714
+ CreateExperimentRunResponseBodyData: {
715
+ /**
716
+ * Id
717
+ * @description The ID of the newly created experiment run
718
+ */
719
+ id: string;
720
+ };
721
+ /** CreateProjectRequestBody */
722
+ CreateProjectRequestBody: {
723
+ /** Name */
724
+ name: string;
725
+ /** Description */
726
+ description?: string | null;
727
+ };
728
+ /** CreateProjectResponseBody */
729
+ CreateProjectResponseBody: {
730
+ data: components["schemas"]["Project"];
731
+ };
366
732
  /** CreatePromptRequestBody */
367
733
  CreatePromptRequestBody: {
368
734
  prompt: components["schemas"]["PromptData"];
@@ -381,7 +747,9 @@ export interface components {
381
747
  /** Description */
382
748
  description: string | null;
383
749
  /** Metadata */
384
- metadata: Record<string, unknown>;
750
+ metadata: {
751
+ [key: string]: unknown;
752
+ };
385
753
  /**
386
754
  * Created At
387
755
  * Format: date-time
@@ -398,11 +766,17 @@ export interface components {
398
766
  /** Id */
399
767
  id: string;
400
768
  /** Input */
401
- input: Record<string, unknown>;
769
+ input: {
770
+ [key: string]: unknown;
771
+ };
402
772
  /** Output */
403
- output: Record<string, unknown>;
773
+ output: {
774
+ [key: string]: unknown;
775
+ };
404
776
  /** Metadata */
405
- metadata: Record<string, unknown>;
777
+ metadata: {
778
+ [key: string]: unknown;
779
+ };
406
780
  /**
407
781
  * Updated At
408
782
  * Format: date-time
@@ -416,7 +790,9 @@ export interface components {
416
790
  /** Description */
417
791
  description: string | null;
418
792
  /** Metadata */
419
- metadata: Record<string, unknown>;
793
+ metadata: {
794
+ [key: string]: unknown;
795
+ };
420
796
  /**
421
797
  * Created At
422
798
  * Format: date-time
@@ -432,7 +808,9 @@ export interface components {
432
808
  /** Description */
433
809
  description: string | null;
434
810
  /** Metadata */
435
- metadata: Record<string, unknown>;
811
+ metadata: {
812
+ [key: string]: unknown;
813
+ };
436
814
  /**
437
815
  * Created At
438
816
  * Format: date-time
@@ -446,6 +824,11 @@ export interface components {
446
824
  /** Example Count */
447
825
  example_count: number;
448
826
  };
827
+ /** DeleteAnnotationConfigResponseBody */
828
+ DeleteAnnotationConfigResponseBody: {
829
+ /** Data */
830
+ data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
831
+ };
449
832
  /** Experiment */
450
833
  Experiment: {
451
834
  /**
@@ -472,7 +855,9 @@ export interface components {
472
855
  * Metadata
473
856
  * @description Metadata of the experiment
474
857
  */
475
- metadata: Record<string, unknown>;
858
+ metadata: {
859
+ [key: string]: unknown;
860
+ };
476
861
  /**
477
862
  * Project Name
478
863
  * @description The name of the project associated with the experiment
@@ -491,27 +876,155 @@ export interface components {
491
876
  */
492
877
  updated_at: string;
493
878
  };
494
- /** GetDatasetResponseBody */
495
- GetDatasetResponseBody: {
496
- data: components["schemas"]["DatasetWithExampleCount"];
497
- };
498
- /** GetExperimentResponseBody */
499
- GetExperimentResponseBody: {
500
- data: components["schemas"]["Experiment"];
501
- };
502
- /** GetPromptResponseBody */
503
- GetPromptResponseBody: {
504
- data: components["schemas"]["PromptVersion"];
505
- };
506
- /** GetPromptVersionsResponseBody */
879
+ /** ExperimentEvaluationResult */
880
+ ExperimentEvaluationResult: {
881
+ /**
882
+ * Label
883
+ * @description The label assigned by the evaluation
884
+ */
885
+ label?: string | null;
886
+ /**
887
+ * Score
888
+ * @description The score assigned by the evaluation
889
+ */
890
+ score?: number | null;
891
+ /**
892
+ * Explanation
893
+ * @description Explanation of the evaluation result
894
+ */
895
+ explanation?: string | null;
896
+ };
897
+ /** ExperimentRunResponse */
898
+ ExperimentRunResponse: {
899
+ /**
900
+ * Dataset Example Id
901
+ * @description The ID of the dataset example used in the experiment run
902
+ */
903
+ dataset_example_id: string;
904
+ /**
905
+ * Output
906
+ * @description The output of the experiment task
907
+ */
908
+ output: unknown;
909
+ /**
910
+ * Repetition Number
911
+ * @description The repetition number of the experiment run
912
+ */
913
+ repetition_number: number;
914
+ /**
915
+ * Start Time
916
+ * Format: date-time
917
+ * @description The start time of the experiment run
918
+ */
919
+ start_time: string;
920
+ /**
921
+ * End Time
922
+ * Format: date-time
923
+ * @description The end time of the experiment run
924
+ */
925
+ end_time: string;
926
+ /**
927
+ * Trace Id
928
+ * @description The ID of the corresponding trace (if one exists)
929
+ */
930
+ trace_id?: string | null;
931
+ /**
932
+ * Error
933
+ * @description Optional error message if the experiment run encountered an error
934
+ */
935
+ error?: string | null;
936
+ /**
937
+ * Id
938
+ * @description The ID of the experiment run
939
+ */
940
+ id: string;
941
+ /**
942
+ * Experiment Id
943
+ * @description The ID of the experiment
944
+ */
945
+ experiment_id: string;
946
+ };
947
+ /** FreeformAnnotationConfig */
948
+ FreeformAnnotationConfig: {
949
+ /** Name */
950
+ name: string;
951
+ /**
952
+ * @description discriminator enum property added by openapi-typescript
953
+ * @enum {string}
954
+ */
955
+ type: "FREEFORM";
956
+ /** Description */
957
+ description?: string | null;
958
+ /** Id */
959
+ id: string;
960
+ };
961
+ /** FreeformAnnotationConfigData */
962
+ FreeformAnnotationConfigData: {
963
+ /** Name */
964
+ name: string;
965
+ /**
966
+ * @description discriminator enum property added by openapi-typescript
967
+ * @enum {string}
968
+ */
969
+ type: "FREEFORM";
970
+ /** Description */
971
+ description?: string | null;
972
+ };
973
+ /** GetAnnotationConfigResponseBody */
974
+ GetAnnotationConfigResponseBody: {
975
+ /** Data */
976
+ data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
977
+ };
978
+ /** GetAnnotationConfigsResponseBody */
979
+ GetAnnotationConfigsResponseBody: {
980
+ /** Data */
981
+ data: (components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"])[];
982
+ /** Next Cursor */
983
+ next_cursor: string | null;
984
+ };
985
+ /** GetDatasetResponseBody */
986
+ GetDatasetResponseBody: {
987
+ data: components["schemas"]["DatasetWithExampleCount"];
988
+ };
989
+ /** GetExperimentResponseBody */
990
+ GetExperimentResponseBody: {
991
+ data: components["schemas"]["Experiment"];
992
+ };
993
+ /** GetProjectResponseBody */
994
+ GetProjectResponseBody: {
995
+ data: components["schemas"]["Project"];
996
+ };
997
+ /** GetProjectsResponseBody */
998
+ GetProjectsResponseBody: {
999
+ /** Data */
1000
+ data: components["schemas"]["Project"][];
1001
+ /** Next Cursor */
1002
+ next_cursor: string | null;
1003
+ };
1004
+ /** GetPromptResponseBody */
1005
+ GetPromptResponseBody: {
1006
+ data: components["schemas"]["PromptVersion"];
1007
+ };
1008
+ /** GetPromptVersionTagsResponseBody */
1009
+ GetPromptVersionTagsResponseBody: {
1010
+ /** Data */
1011
+ data: components["schemas"]["PromptVersionTag"][];
1012
+ /** Next Cursor */
1013
+ next_cursor: string | null;
1014
+ };
1015
+ /** GetPromptVersionsResponseBody */
507
1016
  GetPromptVersionsResponseBody: {
508
1017
  /** Data */
509
1018
  data: components["schemas"]["PromptVersion"][];
1019
+ /** Next Cursor */
1020
+ next_cursor: string | null;
510
1021
  };
511
1022
  /** GetPromptsResponseBody */
512
1023
  GetPromptsResponseBody: {
513
1024
  /** Data */
514
1025
  data: components["schemas"]["Prompt"][];
1026
+ /** Next Cursor */
1027
+ next_cursor: string | null;
515
1028
  };
516
1029
  /** HTTPValidationError */
517
1030
  HTTPValidationError: {
@@ -555,6 +1068,11 @@ export interface components {
555
1068
  /** Next Cursor */
556
1069
  next_cursor: string | null;
557
1070
  };
1071
+ /** ListExperimentRunsResponseBody */
1072
+ ListExperimentRunsResponseBody: {
1073
+ /** Data */
1074
+ data: components["schemas"]["ExperimentRunResponse"][];
1075
+ };
558
1076
  /** ListExperimentsResponseBody */
559
1077
  ListExperimentsResponseBody: {
560
1078
  /** Data */
@@ -565,6 +1083,20 @@ export interface components {
565
1083
  * @enum {string}
566
1084
  */
567
1085
  ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE";
1086
+ /**
1087
+ * OptimizationDirection
1088
+ * @enum {string}
1089
+ */
1090
+ OptimizationDirection: "MINIMIZE" | "MAXIMIZE" | "NONE";
1091
+ /** Project */
1092
+ Project: {
1093
+ /** Name */
1094
+ name: string;
1095
+ /** Description */
1096
+ description?: string | null;
1097
+ /** Id */
1098
+ id: string;
1099
+ };
568
1100
  /** Prompt */
569
1101
  Prompt: {
570
1102
  name: components["schemas"]["Identifier"];
@@ -747,7 +1279,9 @@ export interface components {
747
1279
  /** Description */
748
1280
  description?: string;
749
1281
  /** Schema */
750
- schema?: Record<string, unknown>;
1282
+ schema?: {
1283
+ [key: string]: unknown;
1284
+ };
751
1285
  /** Strict */
752
1286
  strict?: boolean;
753
1287
  };
@@ -821,7 +1355,9 @@ export interface components {
821
1355
  /** Description */
822
1356
  description?: string;
823
1357
  /** Parameters */
824
- parameters?: Record<string, unknown>;
1358
+ parameters?: {
1359
+ [key: string]: unknown;
1360
+ };
825
1361
  /** Strict */
826
1362
  strict?: boolean;
827
1363
  };
@@ -875,6 +1411,20 @@ export interface components {
875
1411
  /** Response Format */
876
1412
  response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
877
1413
  };
1414
+ /** PromptVersionTag */
1415
+ PromptVersionTag: {
1416
+ name: components["schemas"]["Identifier"];
1417
+ /** Description */
1418
+ description?: string | null;
1419
+ /** Id */
1420
+ id: string;
1421
+ };
1422
+ /** PromptVersionTagData */
1423
+ PromptVersionTagData: {
1424
+ name: components["schemas"]["Identifier"];
1425
+ /** Description */
1426
+ description?: string | null;
1427
+ };
878
1428
  /** SpanAnnotation */
879
1429
  SpanAnnotation: {
880
1430
  /**
@@ -892,14 +1442,75 @@ export interface components {
892
1442
  * @description The kind of annotator used for the annotation
893
1443
  * @enum {string}
894
1444
  */
895
- annotator_kind: "LLM" | "HUMAN";
1445
+ annotator_kind: "LLM" | "CODE" | "HUMAN";
1446
+ /** @description The result of the annotation */
1447
+ result?: components["schemas"]["SpanAnnotationResult"] | null;
1448
+ /**
1449
+ * Metadata
1450
+ * @description Metadata for the annotation
1451
+ */
1452
+ metadata?: {
1453
+ [key: string]: unknown;
1454
+ } | null;
1455
+ /**
1456
+ * Identifier
1457
+ * @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
1458
+ * @default
1459
+ */
1460
+ identifier?: string;
1461
+ /** Id */
1462
+ id: string;
1463
+ /**
1464
+ * Created At
1465
+ * Format: date-time
1466
+ */
1467
+ created_at: string;
1468
+ /**
1469
+ * Updated At
1470
+ * Format: date-time
1471
+ */
1472
+ updated_at: string;
1473
+ /**
1474
+ * Source
1475
+ * @enum {string}
1476
+ */
1477
+ source: "API" | "APP";
1478
+ /** User Id */
1479
+ user_id: string | null;
1480
+ };
1481
+ /** SpanAnnotationData */
1482
+ SpanAnnotationData: {
1483
+ /**
1484
+ * Span Id
1485
+ * @description OpenTelemetry Span ID (hex format w/o 0x prefix)
1486
+ */
1487
+ span_id: string;
1488
+ /**
1489
+ * Name
1490
+ * @description The name of the annotation
1491
+ */
1492
+ name: string;
1493
+ /**
1494
+ * Annotator Kind
1495
+ * @description The kind of annotator used for the annotation
1496
+ * @enum {string}
1497
+ */
1498
+ annotator_kind: "LLM" | "CODE" | "HUMAN";
896
1499
  /** @description The result of the annotation */
897
1500
  result?: components["schemas"]["SpanAnnotationResult"] | null;
898
1501
  /**
899
1502
  * Metadata
900
1503
  * @description Metadata for the annotation
901
1504
  */
902
- metadata?: Record<string, unknown> | null;
1505
+ metadata?: {
1506
+ [key: string]: unknown;
1507
+ } | null;
1508
+ /**
1509
+ * Identifier
1510
+ * @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
1511
+ * @default
1512
+ */
1513
+ identifier?: string;
903
1514
  };
904
1515
  /** SpanAnnotationResult */
905
1516
  SpanAnnotationResult: {
@@ -919,6 +1530,13 @@ export interface components {
919
1530
  */
920
1531
  explanation?: string | null;
921
1532
  };
1533
+ /** SpanAnnotationsResponseBody */
1534
+ SpanAnnotationsResponseBody: {
1535
+ /** Data */
1536
+ data: components["schemas"]["SpanAnnotation"][];
1537
+ /** Next Cursor */
1538
+ next_cursor: string | null;
1539
+ };
922
1540
  /** TextContentPart */
923
1541
  TextContentPart: {
924
1542
  /**
@@ -963,7 +1581,23 @@ export interface components {
963
1581
  /** Tool Call Id */
964
1582
  tool_call_id: string;
965
1583
  /** Tool Result */
966
- tool_result: boolean | number | string | Record<string, unknown> | unknown[] | null;
1584
+ tool_result: boolean | number | string | {
1585
+ [key: string]: unknown;
1586
+ } | unknown[] | null;
1587
+ };
1588
+ /** UpdateAnnotationConfigResponseBody */
1589
+ UpdateAnnotationConfigResponseBody: {
1590
+ /** Data */
1591
+ data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
1592
+ };
1593
+ /** UpdateProjectRequestBody */
1594
+ UpdateProjectRequestBody: {
1595
+ /** Description */
1596
+ description?: string | null;
1597
+ };
1598
+ /** UpdateProjectResponseBody */
1599
+ UpdateProjectResponseBody: {
1600
+ data: components["schemas"]["Project"];
967
1601
  };
968
1602
  /** UploadDatasetData */
969
1603
  UploadDatasetData: {
@@ -974,6 +1608,68 @@ export interface components {
974
1608
  UploadDatasetResponseBody: {
975
1609
  data: components["schemas"]["UploadDatasetData"];
976
1610
  };
1611
+ /** UpsertExperimentEvaluationRequestBody */
1612
+ UpsertExperimentEvaluationRequestBody: {
1613
+ /**
1614
+ * Experiment Run Id
1615
+ * @description The ID of the experiment run being evaluated
1616
+ */
1617
+ experiment_run_id: string;
1618
+ /**
1619
+ * Name
1620
+ * @description The name of the evaluation
1621
+ */
1622
+ name: string;
1623
+ /**
1624
+ * Annotator Kind
1625
+ * @description The kind of annotator used for the evaluation
1626
+ * @enum {string}
1627
+ */
1628
+ annotator_kind: "LLM" | "CODE" | "HUMAN";
1629
+ /**
1630
+ * Start Time
1631
+ * Format: date-time
1632
+ * @description The start time of the evaluation in ISO format
1633
+ */
1634
+ start_time: string;
1635
+ /**
1636
+ * End Time
1637
+ * Format: date-time
1638
+ * @description The end time of the evaluation in ISO format
1639
+ */
1640
+ end_time: string;
1641
+ /** @description The result of the evaluation */
1642
+ result: components["schemas"]["ExperimentEvaluationResult"];
1643
+ /**
1644
+ * Error
1645
+ * @description Optional error message if the evaluation encountered an error
1646
+ */
1647
+ error?: string | null;
1648
+ /**
1649
+ * Metadata
1650
+ * @description Metadata for the evaluation
1651
+ */
1652
+ metadata?: {
1653
+ [key: string]: unknown;
1654
+ } | null;
1655
+ /**
1656
+ * Trace Id
1657
+ * @description Optional trace ID for tracking
1658
+ */
1659
+ trace_id?: string | null;
1660
+ };
1661
+ /** UpsertExperimentEvaluationResponseBody */
1662
+ UpsertExperimentEvaluationResponseBody: {
1663
+ data: components["schemas"]["UpsertExperimentEvaluationResponseBodyData"];
1664
+ };
1665
+ /** UpsertExperimentEvaluationResponseBodyData */
1666
+ UpsertExperimentEvaluationResponseBodyData: {
1667
+ /**
1668
+ * Id
1669
+ * @description The ID of the upserted experiment evaluation
1670
+ */
1671
+ id: string;
1672
+ };
977
1673
  /** ValidationError */
978
1674
  ValidationError: {
979
1675
  /** Location */
@@ -992,14 +1688,12 @@ export interface components {
992
1688
  }
993
1689
  export type $defs = Record<string, never>;
994
1690
  export interface operations {
995
- listDatasets: {
1691
+ list_annotation_configs_v1_annotation_configs_get: {
996
1692
  parameters: {
997
1693
  query?: {
998
- /** @description Cursor for pagination */
1694
+ /** @description Cursor for pagination (base64-encoded annotation config ID) */
999
1695
  cursor?: string | null;
1000
- /** @description An optional dataset name to filter by */
1001
- name?: string | null;
1002
- /** @description The max number of datasets to return at a time. */
1696
+ /** @description Maximum number of configs to return */
1003
1697
  limit?: number;
1004
1698
  };
1005
1699
  header?: never;
@@ -1008,13 +1702,13 @@ export interface operations {
1008
1702
  };
1009
1703
  requestBody?: never;
1010
1704
  responses: {
1011
- /** @description Successful Response */
1705
+ /** @description A list of annotation configurations with pagination information */
1012
1706
  200: {
1013
1707
  headers: {
1014
1708
  [name: string]: unknown;
1015
1709
  };
1016
1710
  content: {
1017
- "application/json": components["schemas"]["ListDatasetsResponseBody"];
1711
+ "application/json": components["schemas"]["GetAnnotationConfigsResponseBody"];
1018
1712
  };
1019
1713
  };
1020
1714
  /** @description Forbidden */
@@ -1026,28 +1720,29 @@ export interface operations {
1026
1720
  "text/plain": string;
1027
1721
  };
1028
1722
  };
1029
- /** @description Unprocessable Entity */
1723
+ /** @description Validation Error */
1030
1724
  422: {
1031
1725
  headers: {
1032
1726
  [name: string]: unknown;
1033
1727
  };
1034
1728
  content: {
1035
- "text/plain": string;
1729
+ "application/json": components["schemas"]["HTTPValidationError"];
1036
1730
  };
1037
1731
  };
1038
1732
  };
1039
1733
  };
1040
- getDataset: {
1734
+ create_annotation_config_v1_annotation_configs_post: {
1041
1735
  parameters: {
1042
1736
  query?: never;
1043
1737
  header?: never;
1044
- path: {
1045
- /** @description The ID of the dataset */
1046
- id: string;
1047
- };
1738
+ path?: never;
1048
1739
  cookie?: never;
1049
1740
  };
1050
- requestBody?: never;
1741
+ requestBody: {
1742
+ content: {
1743
+ "application/json": components["schemas"]["CreateAnnotationConfigData"];
1744
+ };
1745
+ };
1051
1746
  responses: {
1052
1747
  /** @description Successful Response */
1053
1748
  200: {
@@ -1055,7 +1750,7 @@ export interface operations {
1055
1750
  [name: string]: unknown;
1056
1751
  };
1057
1752
  content: {
1058
- "application/json": components["schemas"]["GetDatasetResponseBody"];
1753
+ "application/json": components["schemas"]["CreateAnnotationConfigResponseBody"];
1059
1754
  };
1060
1755
  };
1061
1756
  /** @description Forbidden */
@@ -1067,15 +1762,6 @@ export interface operations {
1067
1762
  "text/plain": string;
1068
1763
  };
1069
1764
  };
1070
- /** @description Not Found */
1071
- 404: {
1072
- headers: {
1073
- [name: string]: unknown;
1074
- };
1075
- content: {
1076
- "text/plain": string;
1077
- };
1078
- };
1079
1765
  /** @description Validation Error */
1080
1766
  422: {
1081
1767
  headers: {
@@ -1087,36 +1773,29 @@ export interface operations {
1087
1773
  };
1088
1774
  };
1089
1775
  };
1090
- deleteDatasetById: {
1776
+ get_annotation_config_by_name_or_id_v1_annotation_configs__config_identifier__get: {
1091
1777
  parameters: {
1092
1778
  query?: never;
1093
1779
  header?: never;
1094
1780
  path: {
1095
- /** @description The ID of the dataset to delete. */
1096
- id: string;
1781
+ /** @description ID or name of the annotation configuration */
1782
+ config_identifier: string;
1097
1783
  };
1098
1784
  cookie?: never;
1099
1785
  };
1100
1786
  requestBody?: never;
1101
1787
  responses: {
1102
1788
  /** @description Successful Response */
1103
- 204: {
1104
- headers: {
1105
- [name: string]: unknown;
1106
- };
1107
- content?: never;
1108
- };
1109
- /** @description Forbidden */
1110
- 403: {
1789
+ 200: {
1111
1790
  headers: {
1112
1791
  [name: string]: unknown;
1113
1792
  };
1114
1793
  content: {
1115
- "text/plain": string;
1794
+ "application/json": components["schemas"]["GetAnnotationConfigResponseBody"];
1116
1795
  };
1117
1796
  };
1118
- /** @description Dataset not found */
1119
- 404: {
1797
+ /** @description Forbidden */
1798
+ 403: {
1120
1799
  headers: {
1121
1800
  [name: string]: unknown;
1122
1801
  };
@@ -1124,33 +1803,32 @@ export interface operations {
1124
1803
  "text/plain": string;
1125
1804
  };
1126
1805
  };
1127
- /** @description Invalid dataset ID */
1806
+ /** @description Validation Error */
1128
1807
  422: {
1129
1808
  headers: {
1130
1809
  [name: string]: unknown;
1131
1810
  };
1132
1811
  content: {
1133
- "text/plain": string;
1812
+ "application/json": components["schemas"]["HTTPValidationError"];
1134
1813
  };
1135
1814
  };
1136
1815
  };
1137
1816
  };
1138
- listDatasetVersionsByDatasetId: {
1817
+ update_annotation_config_v1_annotation_configs__config_id__put: {
1139
1818
  parameters: {
1140
- query?: {
1141
- /** @description Cursor for pagination */
1142
- cursor?: string | null;
1143
- /** @description The max number of dataset versions to return at a time */
1144
- limit?: number;
1145
- };
1819
+ query?: never;
1146
1820
  header?: never;
1147
1821
  path: {
1148
- /** @description The ID of the dataset */
1149
- id: string;
1822
+ /** @description ID of the annotation configuration */
1823
+ config_id: string;
1150
1824
  };
1151
1825
  cookie?: never;
1152
1826
  };
1153
- requestBody?: never;
1827
+ requestBody: {
1828
+ content: {
1829
+ "application/json": components["schemas"]["CreateAnnotationConfigData"];
1830
+ };
1831
+ };
1154
1832
  responses: {
1155
1833
  /** @description Successful Response */
1156
1834
  200: {
@@ -1158,7 +1836,7 @@ export interface operations {
1158
1836
  [name: string]: unknown;
1159
1837
  };
1160
1838
  content: {
1161
- "application/json": components["schemas"]["ListDatasetVersionsResponseBody"];
1839
+ "application/json": components["schemas"]["UpdateAnnotationConfigResponseBody"];
1162
1840
  };
1163
1841
  };
1164
1842
  /** @description Forbidden */
@@ -1170,51 +1848,76 @@ export interface operations {
1170
1848
  "text/plain": string;
1171
1849
  };
1172
1850
  };
1173
- /** @description Unprocessable Entity */
1851
+ /** @description Validation Error */
1174
1852
  422: {
1175
1853
  headers: {
1176
1854
  [name: string]: unknown;
1177
1855
  };
1178
1856
  content: {
1179
- "text/plain": string;
1857
+ "application/json": components["schemas"]["HTTPValidationError"];
1180
1858
  };
1181
1859
  };
1182
1860
  };
1183
1861
  };
1184
- uploadDataset: {
1862
+ delete_annotation_config_v1_annotation_configs__config_id__delete: {
1185
1863
  parameters: {
1186
- query?: {
1187
- /** @description If true, fulfill request synchronously and return JSON containing dataset_id. */
1188
- sync?: boolean;
1189
- };
1864
+ query?: never;
1190
1865
  header?: never;
1191
- path?: never;
1866
+ path: {
1867
+ /** @description ID of the annotation configuration */
1868
+ config_id: string;
1869
+ };
1192
1870
  cookie?: never;
1193
1871
  };
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>[];
1872
+ requestBody?: never;
1873
+ responses: {
1874
+ /** @description Successful Response */
1875
+ 200: {
1876
+ headers: {
1877
+ [name: string]: unknown;
1204
1878
  };
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;
1879
+ content: {
1880
+ "application/json": components["schemas"]["DeleteAnnotationConfigResponseBody"];
1881
+ };
1882
+ };
1883
+ /** @description Forbidden */
1884
+ 403: {
1885
+ headers: {
1886
+ [name: string]: unknown;
1887
+ };
1888
+ content: {
1889
+ "text/plain": string;
1890
+ };
1891
+ };
1892
+ /** @description Validation Error */
1893
+ 422: {
1894
+ headers: {
1895
+ [name: string]: unknown;
1896
+ };
1897
+ content: {
1898
+ "application/json": components["schemas"]["HTTPValidationError"];
1215
1899
  };
1216
1900
  };
1217
1901
  };
1902
+ };
1903
+ listSpanAnnotationsBySpanIds: {
1904
+ parameters: {
1905
+ query: {
1906
+ /** @description One or more span id to fetch annotations for */
1907
+ span_ids: string[];
1908
+ /** @description A cursor for pagination */
1909
+ cursor?: string | null;
1910
+ /** @description The maximum number of annotations to return in a single request */
1911
+ limit?: number;
1912
+ };
1913
+ header?: never;
1914
+ path: {
1915
+ /** @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. */
1916
+ project_identifier: string;
1917
+ };
1918
+ cookie?: never;
1919
+ };
1920
+ requestBody?: never;
1218
1921
  responses: {
1219
1922
  /** @description Successful Response */
1220
1923
  200: {
@@ -1222,7 +1925,7 @@ export interface operations {
1222
1925
  [name: string]: unknown;
1223
1926
  };
1224
1927
  content: {
1225
- "application/json": components["schemas"]["UploadDatasetResponseBody"] | null;
1928
+ "application/json": components["schemas"]["SpanAnnotationsResponseBody"];
1226
1929
  };
1227
1930
  };
1228
1931
  /** @description Forbidden */
@@ -1234,8 +1937,8 @@ export interface operations {
1234
1937
  "text/plain": string;
1235
1938
  };
1236
1939
  };
1237
- /** @description Dataset of the same name already exists */
1238
- 409: {
1940
+ /** @description Project or spans not found */
1941
+ 404: {
1239
1942
  headers: {
1240
1943
  [name: string]: unknown;
1241
1944
  };
@@ -1243,7 +1946,7 @@ export interface operations {
1243
1946
  "text/plain": string;
1244
1947
  };
1245
1948
  };
1246
- /** @description Invalid request body */
1949
+ /** @description Invalid parameters */
1247
1950
  422: {
1248
1951
  headers: {
1249
1952
  [name: string]: unknown;
@@ -1254,12 +1957,54 @@ export interface operations {
1254
1957
  };
1255
1958
  };
1256
1959
  };
1257
- getDatasetExamples: {
1960
+ listDatasets: {
1258
1961
  parameters: {
1259
1962
  query?: {
1260
- /** @description The ID of the dataset version (if omitted, returns data from the latest version) */
1261
- version_id?: string | null;
1963
+ /** @description Cursor for pagination */
1964
+ cursor?: string | null;
1965
+ /** @description An optional dataset name to filter by */
1966
+ name?: string | null;
1967
+ /** @description The max number of datasets to return at a time. */
1968
+ limit?: number;
1969
+ };
1970
+ header?: never;
1971
+ path?: never;
1972
+ cookie?: never;
1973
+ };
1974
+ requestBody?: never;
1975
+ responses: {
1976
+ /** @description Successful Response */
1977
+ 200: {
1978
+ headers: {
1979
+ [name: string]: unknown;
1980
+ };
1981
+ content: {
1982
+ "application/json": components["schemas"]["ListDatasetsResponseBody"];
1983
+ };
1984
+ };
1985
+ /** @description Forbidden */
1986
+ 403: {
1987
+ headers: {
1988
+ [name: string]: unknown;
1989
+ };
1990
+ content: {
1991
+ "text/plain": string;
1992
+ };
1993
+ };
1994
+ /** @description Unprocessable Entity */
1995
+ 422: {
1996
+ headers: {
1997
+ [name: string]: unknown;
1998
+ };
1999
+ content: {
2000
+ "text/plain": string;
2001
+ };
1262
2002
  };
2003
+ };
2004
+ };
2005
+ getDataset: {
2006
+ parameters: {
2007
+ query?: never;
1263
2008
  header?: never;
1264
2009
  path: {
1265
2010
  /** @description The ID of the dataset */
@@ -1275,7 +2020,7 @@ export interface operations {
1275
2020
  [name: string]: unknown;
1276
2021
  };
1277
2022
  content: {
1278
- "application/json": components["schemas"]["ListDatasetExamplesResponseBody"];
2023
+ "application/json": components["schemas"]["GetDatasetResponseBody"];
1279
2024
  };
1280
2025
  };
1281
2026
  /** @description Forbidden */
@@ -1307,11 +2052,61 @@ export interface operations {
1307
2052
  };
1308
2053
  };
1309
2054
  };
1310
- getDatasetCsv: {
2055
+ deleteDatasetById: {
2056
+ parameters: {
2057
+ query?: never;
2058
+ header?: never;
2059
+ path: {
2060
+ /** @description The ID of the dataset to delete. */
2061
+ id: string;
2062
+ };
2063
+ cookie?: never;
2064
+ };
2065
+ requestBody?: never;
2066
+ responses: {
2067
+ /** @description Successful Response */
2068
+ 204: {
2069
+ headers: {
2070
+ [name: string]: unknown;
2071
+ };
2072
+ content?: never;
2073
+ };
2074
+ /** @description Forbidden */
2075
+ 403: {
2076
+ headers: {
2077
+ [name: string]: unknown;
2078
+ };
2079
+ content: {
2080
+ "text/plain": string;
2081
+ };
2082
+ };
2083
+ /** @description Dataset not found */
2084
+ 404: {
2085
+ headers: {
2086
+ [name: string]: unknown;
2087
+ };
2088
+ content: {
2089
+ "text/plain": string;
2090
+ };
2091
+ };
2092
+ /** @description Invalid dataset ID */
2093
+ 422: {
2094
+ headers: {
2095
+ [name: string]: unknown;
2096
+ };
2097
+ content: {
2098
+ "text/plain": string;
2099
+ };
2100
+ };
2101
+ };
2102
+ };
2103
+ listDatasetVersionsByDatasetId: {
1311
2104
  parameters: {
1312
2105
  query?: {
1313
- /** @description The ID of the dataset version (if omitted, returns data from the latest version) */
1314
- version_id?: string | null;
2106
+ /** @description Cursor for pagination */
2107
+ cursor?: string | null;
2108
+ /** @description The max number of dataset versions to return at a time */
2109
+ limit?: number;
1315
2110
  };
1316
2111
  header?: never;
1317
2112
  path: {
@@ -1328,7 +2123,7 @@ export interface operations {
1328
2123
  [name: string]: unknown;
1329
2124
  };
1330
2125
  content: {
1331
- "text/csv": string;
2126
+ "application/json": components["schemas"]["ListDatasetVersionsResponseBody"];
1332
2127
  };
1333
2128
  };
1334
2129
  /** @description Forbidden */
@@ -1351,23 +2146,779 @@ export interface operations {
1351
2146
  };
1352
2147
  };
1353
2148
  };
1354
- getDatasetJSONLOpenAIFineTuning: {
2149
+ uploadDataset: {
1355
2150
  parameters: {
1356
2151
  query?: {
1357
- /** @description The ID of the dataset version (if omitted, returns data from the latest version) */
1358
- version_id?: string | null;
2152
+ /** @description If true, fulfill request synchronously and return JSON containing dataset_id. */
2153
+ sync?: boolean;
1359
2154
  };
1360
2155
  header?: never;
1361
- path: {
1362
- /** @description The ID of the dataset */
1363
- id: string;
2156
+ path?: never;
2157
+ cookie?: never;
2158
+ };
2159
+ requestBody?: {
2160
+ content: {
2161
+ "application/json": {
2162
+ /** @enum {string} */
2163
+ action?: "create" | "append";
2164
+ name: string;
2165
+ description?: string;
2166
+ inputs: Record<string, unknown>[];
2167
+ outputs?: Record<string, unknown>[];
2168
+ metadata?: Record<string, unknown>[];
2169
+ };
2170
+ "multipart/form-data": {
2171
+ /** @enum {string} */
2172
+ action?: "create" | "append";
2173
+ name: string;
2174
+ description?: string;
2175
+ "input_keys[]": string[];
2176
+ "output_keys[]": string[];
2177
+ "metadata_keys[]"?: string[];
2178
+ /** Format: binary */
2179
+ file: string;
2180
+ };
2181
+ };
2182
+ };
2183
+ responses: {
2184
+ /** @description Successful Response */
2185
+ 200: {
2186
+ headers: {
2187
+ [name: string]: unknown;
2188
+ };
2189
+ content: {
2190
+ "application/json": components["schemas"]["UploadDatasetResponseBody"] | null;
2191
+ };
2192
+ };
2193
+ /** @description Forbidden */
2194
+ 403: {
2195
+ headers: {
2196
+ [name: string]: unknown;
2197
+ };
2198
+ content: {
2199
+ "text/plain": string;
2200
+ };
2201
+ };
2202
+ /** @description Dataset of the same name already exists */
2203
+ 409: {
2204
+ headers: {
2205
+ [name: string]: unknown;
2206
+ };
2207
+ content: {
2208
+ "text/plain": string;
2209
+ };
2210
+ };
2211
+ /** @description Invalid request body */
2212
+ 422: {
2213
+ headers: {
2214
+ [name: string]: unknown;
2215
+ };
2216
+ content: {
2217
+ "text/plain": string;
2218
+ };
2219
+ };
2220
+ };
2221
+ };
2222
+ getDatasetExamples: {
2223
+ parameters: {
2224
+ query?: {
2225
+ /** @description The ID of the dataset version (if omitted, returns data from the latest version) */
2226
+ version_id?: string | null;
2227
+ };
2228
+ header?: never;
2229
+ path: {
2230
+ /** @description The ID of the dataset */
2231
+ id: string;
2232
+ };
2233
+ cookie?: never;
2234
+ };
2235
+ requestBody?: never;
2236
+ responses: {
2237
+ /** @description Successful Response */
2238
+ 200: {
2239
+ headers: {
2240
+ [name: string]: unknown;
2241
+ };
2242
+ content: {
2243
+ "application/json": components["schemas"]["ListDatasetExamplesResponseBody"];
2244
+ };
2245
+ };
2246
+ /** @description Forbidden */
2247
+ 403: {
2248
+ headers: {
2249
+ [name: string]: unknown;
2250
+ };
2251
+ content: {
2252
+ "text/plain": string;
2253
+ };
2254
+ };
2255
+ /** @description Not Found */
2256
+ 404: {
2257
+ headers: {
2258
+ [name: string]: unknown;
2259
+ };
2260
+ content: {
2261
+ "text/plain": string;
2262
+ };
2263
+ };
2264
+ /** @description Validation Error */
2265
+ 422: {
2266
+ headers: {
2267
+ [name: string]: unknown;
2268
+ };
2269
+ content: {
2270
+ "application/json": components["schemas"]["HTTPValidationError"];
2271
+ };
2272
+ };
2273
+ };
2274
+ };
2275
+ getDatasetCsv: {
2276
+ parameters: {
2277
+ query?: {
2278
+ /** @description The ID of the dataset version (if omitted, returns data from the latest version) */
2279
+ version_id?: string | null;
2280
+ };
2281
+ header?: never;
2282
+ path: {
2283
+ /** @description The ID of the dataset */
2284
+ id: string;
2285
+ };
2286
+ cookie?: never;
2287
+ };
2288
+ requestBody?: never;
2289
+ responses: {
2290
+ /** @description Successful Response */
2291
+ 200: {
2292
+ headers: {
2293
+ [name: string]: unknown;
2294
+ };
2295
+ content: {
2296
+ "text/csv": string;
2297
+ };
2298
+ };
2299
+ /** @description Forbidden */
2300
+ 403: {
2301
+ headers: {
2302
+ [name: string]: unknown;
2303
+ };
2304
+ content: {
2305
+ "text/plain": string;
2306
+ };
2307
+ };
2308
+ /** @description Unprocessable Entity */
2309
+ 422: {
2310
+ headers: {
2311
+ [name: string]: unknown;
2312
+ };
2313
+ content: {
2314
+ "text/plain": string;
2315
+ };
2316
+ };
2317
+ };
2318
+ };
2319
+ getDatasetJSONLOpenAIFineTuning: {
2320
+ parameters: {
2321
+ query?: {
2322
+ /** @description The ID of the dataset version (if omitted, returns data from the latest version) */
2323
+ version_id?: string | null;
2324
+ };
2325
+ header?: never;
2326
+ path: {
2327
+ /** @description The ID of the dataset */
2328
+ id: string;
2329
+ };
2330
+ cookie?: never;
2331
+ };
2332
+ requestBody?: never;
2333
+ responses: {
2334
+ /** @description Successful Response */
2335
+ 200: {
2336
+ headers: {
2337
+ [name: string]: unknown;
2338
+ };
2339
+ content: {
2340
+ "text/plain": string;
2341
+ };
2342
+ };
2343
+ /** @description Forbidden */
2344
+ 403: {
2345
+ headers: {
2346
+ [name: string]: unknown;
2347
+ };
2348
+ content: {
2349
+ "text/plain": string;
2350
+ };
2351
+ };
2352
+ /** @description Invalid dataset or version ID */
2353
+ 422: {
2354
+ headers: {
2355
+ [name: string]: unknown;
2356
+ };
2357
+ content: {
2358
+ "text/plain": string;
2359
+ };
2360
+ };
2361
+ };
2362
+ };
2363
+ getDatasetJSONLOpenAIEvals: {
2364
+ parameters: {
2365
+ query?: {
2366
+ /** @description The ID of the dataset version (if omitted, returns data from the latest version) */
2367
+ version_id?: string | null;
2368
+ };
2369
+ header?: never;
2370
+ path: {
2371
+ /** @description The ID of the dataset */
2372
+ id: string;
2373
+ };
2374
+ cookie?: never;
2375
+ };
2376
+ requestBody?: never;
2377
+ responses: {
2378
+ /** @description Successful Response */
2379
+ 200: {
2380
+ headers: {
2381
+ [name: string]: unknown;
2382
+ };
2383
+ content: {
2384
+ "text/plain": string;
2385
+ };
2386
+ };
2387
+ /** @description Forbidden */
2388
+ 403: {
2389
+ headers: {
2390
+ [name: string]: unknown;
2391
+ };
2392
+ content: {
2393
+ "text/plain": string;
2394
+ };
2395
+ };
2396
+ /** @description Invalid dataset or version ID */
2397
+ 422: {
2398
+ headers: {
2399
+ [name: string]: unknown;
2400
+ };
2401
+ content: {
2402
+ "text/plain": string;
2403
+ };
2404
+ };
2405
+ };
2406
+ };
2407
+ listExperiments: {
2408
+ parameters: {
2409
+ query?: never;
2410
+ header?: never;
2411
+ path: {
2412
+ dataset_id: string;
2413
+ };
2414
+ cookie?: never;
2415
+ };
2416
+ requestBody?: never;
2417
+ responses: {
2418
+ /** @description Experiments retrieved successfully */
2419
+ 200: {
2420
+ headers: {
2421
+ [name: string]: unknown;
2422
+ };
2423
+ content: {
2424
+ "application/json": components["schemas"]["ListExperimentsResponseBody"];
2425
+ };
2426
+ };
2427
+ /** @description Forbidden */
2428
+ 403: {
2429
+ headers: {
2430
+ [name: string]: unknown;
2431
+ };
2432
+ content: {
2433
+ "text/plain": string;
2434
+ };
2435
+ };
2436
+ /** @description Validation Error */
2437
+ 422: {
2438
+ headers: {
2439
+ [name: string]: unknown;
2440
+ };
2441
+ content: {
2442
+ "application/json": components["schemas"]["HTTPValidationError"];
2443
+ };
2444
+ };
2445
+ };
2446
+ };
2447
+ createExperiment: {
2448
+ parameters: {
2449
+ query?: never;
2450
+ header?: never;
2451
+ path: {
2452
+ dataset_id: string;
2453
+ };
2454
+ cookie?: never;
2455
+ };
2456
+ requestBody: {
2457
+ content: {
2458
+ "application/json": components["schemas"]["CreateExperimentRequestBody"];
2459
+ };
2460
+ };
2461
+ responses: {
2462
+ /** @description Experiment retrieved successfully */
2463
+ 200: {
2464
+ headers: {
2465
+ [name: string]: unknown;
2466
+ };
2467
+ content: {
2468
+ "application/json": components["schemas"]["CreateExperimentResponseBody"];
2469
+ };
2470
+ };
2471
+ /** @description Forbidden */
2472
+ 403: {
2473
+ headers: {
2474
+ [name: string]: unknown;
2475
+ };
2476
+ content: {
2477
+ "text/plain": string;
2478
+ };
2479
+ };
2480
+ /** @description Dataset or DatasetVersion not found */
2481
+ 404: {
2482
+ headers: {
2483
+ [name: string]: unknown;
2484
+ };
2485
+ content: {
2486
+ "text/plain": string;
2487
+ };
2488
+ };
2489
+ /** @description Validation Error */
2490
+ 422: {
2491
+ headers: {
2492
+ [name: string]: unknown;
2493
+ };
2494
+ content: {
2495
+ "application/json": components["schemas"]["HTTPValidationError"];
2496
+ };
2497
+ };
2498
+ };
2499
+ };
2500
+ getExperiment: {
2501
+ parameters: {
2502
+ query?: never;
2503
+ header?: never;
2504
+ path: {
2505
+ experiment_id: string;
2506
+ };
2507
+ cookie?: never;
2508
+ };
2509
+ requestBody?: never;
2510
+ responses: {
2511
+ /** @description Experiment retrieved successfully */
2512
+ 200: {
2513
+ headers: {
2514
+ [name: string]: unknown;
2515
+ };
2516
+ content: {
2517
+ "application/json": components["schemas"]["GetExperimentResponseBody"];
2518
+ };
2519
+ };
2520
+ /** @description Forbidden */
2521
+ 403: {
2522
+ headers: {
2523
+ [name: string]: unknown;
2524
+ };
2525
+ content: {
2526
+ "text/plain": string;
2527
+ };
2528
+ };
2529
+ /** @description Experiment not found */
2530
+ 404: {
2531
+ headers: {
2532
+ [name: string]: unknown;
2533
+ };
2534
+ content: {
2535
+ "text/plain": string;
2536
+ };
2537
+ };
2538
+ /** @description Validation Error */
2539
+ 422: {
2540
+ headers: {
2541
+ [name: string]: unknown;
2542
+ };
2543
+ content: {
2544
+ "application/json": components["schemas"]["HTTPValidationError"];
2545
+ };
2546
+ };
2547
+ };
2548
+ };
2549
+ getExperimentJSON: {
2550
+ parameters: {
2551
+ query?: never;
2552
+ header?: never;
2553
+ path: {
2554
+ experiment_id: string;
2555
+ };
2556
+ cookie?: never;
2557
+ };
2558
+ requestBody?: never;
2559
+ responses: {
2560
+ /** @description Successful Response */
2561
+ 200: {
2562
+ headers: {
2563
+ [name: string]: unknown;
2564
+ };
2565
+ content: {
2566
+ "text/plain": string;
2567
+ };
2568
+ };
2569
+ /** @description Forbidden */
2570
+ 403: {
2571
+ headers: {
2572
+ [name: string]: unknown;
2573
+ };
2574
+ content: {
2575
+ "text/plain": string;
2576
+ };
2577
+ };
2578
+ /** @description Experiment not found */
2579
+ 404: {
2580
+ headers: {
2581
+ [name: string]: unknown;
2582
+ };
2583
+ content: {
2584
+ "text/plain": string;
2585
+ };
2586
+ };
2587
+ /** @description Validation Error */
2588
+ 422: {
2589
+ headers: {
2590
+ [name: string]: unknown;
2591
+ };
2592
+ content: {
2593
+ "application/json": components["schemas"]["HTTPValidationError"];
2594
+ };
2595
+ };
2596
+ };
2597
+ };
2598
+ getExperimentCSV: {
2599
+ parameters: {
2600
+ query?: never;
2601
+ header?: never;
2602
+ path: {
2603
+ experiment_id: string;
2604
+ };
2605
+ cookie?: never;
2606
+ };
2607
+ requestBody?: never;
2608
+ responses: {
2609
+ /** @description Successful Response */
2610
+ 200: {
2611
+ headers: {
2612
+ [name: string]: unknown;
2613
+ };
2614
+ content: {
2615
+ "application/json": unknown;
2616
+ "text/csv": string;
2617
+ };
2618
+ };
2619
+ /** @description Forbidden */
2620
+ 403: {
2621
+ headers: {
2622
+ [name: string]: unknown;
2623
+ };
2624
+ content: {
2625
+ "text/plain": string;
2626
+ };
2627
+ };
2628
+ /** @description Validation Error */
2629
+ 422: {
2630
+ headers: {
2631
+ [name: string]: unknown;
2632
+ };
2633
+ content: {
2634
+ "application/json": components["schemas"]["HTTPValidationError"];
2635
+ };
2636
+ };
2637
+ };
2638
+ };
2639
+ listExperimentRuns: {
2640
+ parameters: {
2641
+ query?: never;
2642
+ header?: never;
2643
+ path: {
2644
+ experiment_id: string;
2645
+ };
2646
+ cookie?: never;
2647
+ };
2648
+ requestBody?: never;
2649
+ responses: {
2650
+ /** @description Experiment runs retrieved successfully */
2651
+ 200: {
2652
+ headers: {
2653
+ [name: string]: unknown;
2654
+ };
2655
+ content: {
2656
+ "application/json": components["schemas"]["ListExperimentRunsResponseBody"];
2657
+ };
2658
+ };
2659
+ /** @description Forbidden */
2660
+ 403: {
2661
+ headers: {
2662
+ [name: string]: unknown;
2663
+ };
2664
+ content: {
2665
+ "text/plain": string;
2666
+ };
2667
+ };
2668
+ /** @description Experiment not found */
2669
+ 404: {
2670
+ headers: {
2671
+ [name: string]: unknown;
2672
+ };
2673
+ content: {
2674
+ "text/plain": string;
2675
+ };
2676
+ };
2677
+ /** @description Validation Error */
2678
+ 422: {
2679
+ headers: {
2680
+ [name: string]: unknown;
2681
+ };
2682
+ content: {
2683
+ "application/json": components["schemas"]["HTTPValidationError"];
2684
+ };
2685
+ };
2686
+ };
2687
+ };
2688
+ createExperimentRun: {
2689
+ parameters: {
2690
+ query?: never;
2691
+ header?: never;
2692
+ path: {
2693
+ experiment_id: string;
2694
+ };
2695
+ cookie?: never;
2696
+ };
2697
+ requestBody: {
2698
+ content: {
2699
+ "application/json": components["schemas"]["CreateExperimentRunRequestBody"];
2700
+ };
2701
+ };
2702
+ responses: {
2703
+ /** @description Experiment run created successfully */
2704
+ 200: {
2705
+ headers: {
2706
+ [name: string]: unknown;
2707
+ };
2708
+ content: {
2709
+ "application/json": components["schemas"]["CreateExperimentRunResponseBody"];
2710
+ };
2711
+ };
2712
+ /** @description Forbidden */
2713
+ 403: {
2714
+ headers: {
2715
+ [name: string]: unknown;
2716
+ };
2717
+ content: {
2718
+ "text/plain": string;
2719
+ };
2720
+ };
2721
+ /** @description Experiment or dataset example not found */
2722
+ 404: {
2723
+ headers: {
2724
+ [name: string]: unknown;
2725
+ };
2726
+ content: {
2727
+ "text/plain": string;
2728
+ };
2729
+ };
2730
+ /** @description Validation Error */
2731
+ 422: {
2732
+ headers: {
2733
+ [name: string]: unknown;
2734
+ };
2735
+ content: {
2736
+ "application/json": components["schemas"]["HTTPValidationError"];
2737
+ };
2738
+ };
2739
+ };
2740
+ };
2741
+ upsertExperimentEvaluation: {
2742
+ parameters: {
2743
+ query?: never;
2744
+ header?: never;
2745
+ path?: never;
2746
+ cookie?: never;
2747
+ };
2748
+ requestBody: {
2749
+ content: {
2750
+ "application/json": components["schemas"]["UpsertExperimentEvaluationRequestBody"];
2751
+ };
2752
+ };
2753
+ responses: {
2754
+ /** @description Successful Response */
2755
+ 200: {
2756
+ headers: {
2757
+ [name: string]: unknown;
2758
+ };
2759
+ content: {
2760
+ "application/json": components["schemas"]["UpsertExperimentEvaluationResponseBody"];
2761
+ };
2762
+ };
2763
+ /** @description Forbidden */
2764
+ 403: {
2765
+ headers: {
2766
+ [name: string]: unknown;
2767
+ };
2768
+ content: {
2769
+ "text/plain": string;
2770
+ };
2771
+ };
2772
+ /** @description Experiment run not found */
2773
+ 404: {
2774
+ headers: {
2775
+ [name: string]: unknown;
2776
+ };
2777
+ content: {
2778
+ "text/plain": string;
2779
+ };
2780
+ };
2781
+ /** @description Validation Error */
2782
+ 422: {
2783
+ headers: {
2784
+ [name: string]: unknown;
2785
+ };
2786
+ content: {
2787
+ "application/json": components["schemas"]["HTTPValidationError"];
2788
+ };
2789
+ };
2790
+ };
2791
+ };
2792
+ annotateSpans: {
2793
+ parameters: {
2794
+ query?: {
2795
+ /** @description If true, fulfill request synchronously. */
2796
+ sync?: boolean;
2797
+ };
2798
+ header?: never;
2799
+ path?: never;
2800
+ cookie?: never;
2801
+ };
2802
+ requestBody: {
2803
+ content: {
2804
+ "application/json": components["schemas"]["AnnotateSpansRequestBody"];
2805
+ };
2806
+ };
2807
+ responses: {
2808
+ /** @description Span annotations inserted successfully */
2809
+ 200: {
2810
+ headers: {
2811
+ [name: string]: unknown;
2812
+ };
2813
+ content: {
2814
+ "application/json": components["schemas"]["AnnotateSpansResponseBody"];
2815
+ };
2816
+ };
2817
+ /** @description Forbidden */
2818
+ 403: {
2819
+ headers: {
2820
+ [name: string]: unknown;
2821
+ };
2822
+ content: {
2823
+ "text/plain": string;
2824
+ };
2825
+ };
2826
+ /** @description Span not found */
2827
+ 404: {
2828
+ headers: {
2829
+ [name: string]: unknown;
2830
+ };
2831
+ content: {
2832
+ "text/plain": string;
2833
+ };
2834
+ };
2835
+ /** @description Validation Error */
2836
+ 422: {
2837
+ headers: {
2838
+ [name: string]: unknown;
2839
+ };
2840
+ content: {
2841
+ "application/json": components["schemas"]["HTTPValidationError"];
2842
+ };
2843
+ };
2844
+ };
2845
+ };
2846
+ getEvaluations: {
2847
+ parameters: {
2848
+ query?: {
2849
+ /** @description The name of the project to get evaluations from (if omitted, evaluations will be drawn from the `default` project) */
2850
+ project_name?: string | null;
2851
+ };
2852
+ header?: never;
2853
+ path?: never;
2854
+ cookie?: never;
2855
+ };
2856
+ requestBody?: never;
2857
+ responses: {
2858
+ /** @description Successful Response */
2859
+ 200: {
2860
+ headers: {
2861
+ [name: string]: unknown;
2862
+ };
2863
+ content: {
2864
+ "application/json": unknown;
2865
+ };
2866
+ };
2867
+ /** @description Forbidden */
2868
+ 403: {
2869
+ headers: {
2870
+ [name: string]: unknown;
2871
+ };
2872
+ content: {
2873
+ "text/plain": string;
2874
+ };
2875
+ };
2876
+ /** @description Not Found */
2877
+ 404: {
2878
+ headers: {
2879
+ [name: string]: unknown;
2880
+ };
2881
+ content: {
2882
+ "text/plain": string;
2883
+ };
2884
+ };
2885
+ /** @description Validation Error */
2886
+ 422: {
2887
+ headers: {
2888
+ [name: string]: unknown;
2889
+ };
2890
+ content: {
2891
+ "application/json": components["schemas"]["HTTPValidationError"];
2892
+ };
2893
+ };
2894
+ };
2895
+ };
2896
+ addEvaluations: {
2897
+ parameters: {
2898
+ query?: never;
2899
+ header?: {
2900
+ "content-type"?: string | null;
2901
+ "content-encoding"?: string | null;
2902
+ };
2903
+ path?: never;
2904
+ cookie?: never;
2905
+ };
2906
+ requestBody: {
2907
+ content: {
2908
+ "application/x-protobuf": string;
2909
+ "application/x-pandas-arrow": string;
1364
2910
  };
1365
- cookie?: never;
1366
2911
  };
1367
- requestBody?: never;
1368
2912
  responses: {
1369
2913
  /** @description Successful Response */
1370
- 200: {
2914
+ 204: {
2915
+ headers: {
2916
+ [name: string]: unknown;
2917
+ };
2918
+ content?: never;
2919
+ };
2920
+ /** @description Forbidden */
2921
+ 403: {
1371
2922
  headers: {
1372
2923
  [name: string]: unknown;
1373
2924
  };
@@ -1375,8 +2926,8 @@ export interface operations {
1375
2926
  "text/plain": string;
1376
2927
  };
1377
2928
  };
1378
- /** @description Forbidden */
1379
- 403: {
2929
+ /** @description Unsupported content type, only gzipped protobuf and pandas-arrow are supported */
2930
+ 415: {
1380
2931
  headers: {
1381
2932
  [name: string]: unknown;
1382
2933
  };
@@ -1384,7 +2935,7 @@ export interface operations {
1384
2935
  "text/plain": string;
1385
2936
  };
1386
2937
  };
1387
- /** @description Invalid dataset or version ID */
2938
+ /** @description Unprocessable Entity */
1388
2939
  422: {
1389
2940
  headers: {
1390
2941
  [name: string]: unknown;
@@ -1395,28 +2946,27 @@ export interface operations {
1395
2946
  };
1396
2947
  };
1397
2948
  };
1398
- getDatasetJSONLOpenAIEvals: {
2949
+ getPrompts: {
1399
2950
  parameters: {
1400
2951
  query?: {
1401
- /** @description The ID of the dataset version (if omitted, returns data from the latest version) */
1402
- version_id?: string | null;
2952
+ /** @description Cursor for pagination (base64-encoded prompt ID) */
2953
+ cursor?: string | null;
2954
+ /** @description The max number of prompts to return at a time. */
2955
+ limit?: number;
1403
2956
  };
1404
2957
  header?: never;
1405
- path: {
1406
- /** @description The ID of the dataset */
1407
- id: string;
1408
- };
2958
+ path?: never;
1409
2959
  cookie?: never;
1410
2960
  };
1411
2961
  requestBody?: never;
1412
2962
  responses: {
1413
- /** @description Successful Response */
2963
+ /** @description A list of prompts with pagination information */
1414
2964
  200: {
1415
2965
  headers: {
1416
2966
  [name: string]: unknown;
1417
2967
  };
1418
2968
  content: {
1419
- "text/plain": string;
2969
+ "application/json": components["schemas"]["GetPromptsResponseBody"];
1420
2970
  };
1421
2971
  };
1422
2972
  /** @description Forbidden */
@@ -1428,7 +2978,7 @@ export interface operations {
1428
2978
  "text/plain": string;
1429
2979
  };
1430
2980
  };
1431
- /** @description Invalid dataset or version ID */
2981
+ /** @description Unprocessable Entity */
1432
2982
  422: {
1433
2983
  headers: {
1434
2984
  [name: string]: unknown;
@@ -1439,24 +2989,26 @@ export interface operations {
1439
2989
  };
1440
2990
  };
1441
2991
  };
1442
- listExperiments: {
2992
+ postPromptVersion: {
1443
2993
  parameters: {
1444
2994
  query?: never;
1445
2995
  header?: never;
1446
- path: {
1447
- dataset_id: string;
1448
- };
2996
+ path?: never;
1449
2997
  cookie?: never;
1450
2998
  };
1451
- requestBody?: never;
2999
+ requestBody: {
3000
+ content: {
3001
+ "application/json": components["schemas"]["CreatePromptRequestBody"];
3002
+ };
3003
+ };
1452
3004
  responses: {
1453
- /** @description Experiments retrieved successfully */
3005
+ /** @description The newly created prompt version */
1454
3006
  200: {
1455
3007
  headers: {
1456
3008
  [name: string]: unknown;
1457
3009
  };
1458
3010
  content: {
1459
- "application/json": components["schemas"]["ListExperimentsResponseBody"];
3011
+ "application/json": components["schemas"]["CreatePromptResponseBody"];
1460
3012
  };
1461
3013
  };
1462
3014
  /** @description Forbidden */
@@ -1468,39 +3020,41 @@ export interface operations {
1468
3020
  "text/plain": string;
1469
3021
  };
1470
3022
  };
1471
- /** @description Validation Error */
3023
+ /** @description Unprocessable Entity */
1472
3024
  422: {
1473
3025
  headers: {
1474
3026
  [name: string]: unknown;
1475
3027
  };
1476
3028
  content: {
1477
- "application/json": components["schemas"]["HTTPValidationError"];
3029
+ "text/plain": string;
1478
3030
  };
1479
3031
  };
1480
3032
  };
1481
3033
  };
1482
- createExperiment: {
3034
+ listPromptVersions: {
1483
3035
  parameters: {
1484
- query?: never;
3036
+ query?: {
3037
+ /** @description Cursor for pagination (base64-encoded promptVersion ID) */
3038
+ cursor?: string | null;
3039
+ /** @description The max number of prompt versions to return at a time. */
3040
+ limit?: number;
3041
+ };
1485
3042
  header?: never;
1486
3043
  path: {
1487
- dataset_id: string;
3044
+ /** @description The identifier of the prompt, i.e. name or ID. */
3045
+ prompt_identifier: string;
1488
3046
  };
1489
3047
  cookie?: never;
1490
3048
  };
1491
- requestBody: {
1492
- content: {
1493
- "application/json": components["schemas"]["CreateExperimentRequestBody"];
1494
- };
1495
- };
3049
+ requestBody?: never;
1496
3050
  responses: {
1497
- /** @description Experiment retrieved successfully */
3051
+ /** @description A list of prompt versions with pagination information */
1498
3052
  200: {
1499
3053
  headers: {
1500
3054
  [name: string]: unknown;
1501
3055
  };
1502
3056
  content: {
1503
- "application/json": components["schemas"]["CreateExperimentResponseBody"];
3057
+ "application/json": components["schemas"]["GetPromptVersionsResponseBody"];
1504
3058
  };
1505
3059
  };
1506
3060
  /** @description Forbidden */
@@ -1512,7 +3066,7 @@ export interface operations {
1512
3066
  "text/plain": string;
1513
3067
  };
1514
3068
  };
1515
- /** @description Dataset or DatasetVersion not found */
3069
+ /** @description Not Found */
1516
3070
  404: {
1517
3071
  headers: {
1518
3072
  [name: string]: unknown;
@@ -1521,35 +3075,36 @@ export interface operations {
1521
3075
  "text/plain": string;
1522
3076
  };
1523
3077
  };
1524
- /** @description Validation Error */
3078
+ /** @description Unprocessable Entity */
1525
3079
  422: {
1526
3080
  headers: {
1527
3081
  [name: string]: unknown;
1528
3082
  };
1529
3083
  content: {
1530
- "application/json": components["schemas"]["HTTPValidationError"];
3084
+ "text/plain": string;
1531
3085
  };
1532
3086
  };
1533
3087
  };
1534
3088
  };
1535
- getExperiment: {
3089
+ getPromptVersionByPromptVersionId: {
1536
3090
  parameters: {
1537
3091
  query?: never;
1538
3092
  header?: never;
1539
3093
  path: {
1540
- experiment_id: string;
3094
+ /** @description The ID of the prompt version. */
3095
+ prompt_version_id: string;
1541
3096
  };
1542
3097
  cookie?: never;
1543
3098
  };
1544
3099
  requestBody?: never;
1545
3100
  responses: {
1546
- /** @description Experiment retrieved successfully */
3101
+ /** @description The requested prompt version */
1547
3102
  200: {
1548
3103
  headers: {
1549
3104
  [name: string]: unknown;
1550
3105
  };
1551
3106
  content: {
1552
- "application/json": components["schemas"]["GetExperimentResponseBody"];
3107
+ "application/json": components["schemas"]["GetPromptResponseBody"];
1553
3108
  };
1554
3109
  };
1555
3110
  /** @description Forbidden */
@@ -1561,7 +3116,7 @@ export interface operations {
1561
3116
  "text/plain": string;
1562
3117
  };
1563
3118
  };
1564
- /** @description Experiment not found */
3119
+ /** @description Not Found */
1565
3120
  404: {
1566
3121
  headers: {
1567
3122
  [name: string]: unknown;
@@ -1570,35 +3125,38 @@ export interface operations {
1570
3125
  "text/plain": string;
1571
3126
  };
1572
3127
  };
1573
- /** @description Validation Error */
3128
+ /** @description Unprocessable Entity */
1574
3129
  422: {
1575
3130
  headers: {
1576
3131
  [name: string]: unknown;
1577
3132
  };
1578
3133
  content: {
1579
- "application/json": components["schemas"]["HTTPValidationError"];
3134
+ "text/plain": string;
1580
3135
  };
1581
3136
  };
1582
3137
  };
1583
3138
  };
1584
- getExperimentJSON: {
3139
+ getPromptVersionByTagName: {
1585
3140
  parameters: {
1586
3141
  query?: never;
1587
3142
  header?: never;
1588
3143
  path: {
1589
- experiment_id: string;
3144
+ /** @description The identifier of the prompt, i.e. name or ID. */
3145
+ prompt_identifier: string;
3146
+ /** @description The tag of the prompt version */
3147
+ tag_name: string;
1590
3148
  };
1591
3149
  cookie?: never;
1592
3150
  };
1593
3151
  requestBody?: never;
1594
3152
  responses: {
1595
- /** @description Successful Response */
3153
+ /** @description The prompt version with the specified tag */
1596
3154
  200: {
1597
3155
  headers: {
1598
3156
  [name: string]: unknown;
1599
3157
  };
1600
3158
  content: {
1601
- "text/plain": string;
3159
+ "application/json": components["schemas"]["GetPromptResponseBody"];
1602
3160
  };
1603
3161
  };
1604
3162
  /** @description Forbidden */
@@ -1610,7 +3168,7 @@ export interface operations {
1610
3168
  "text/plain": string;
1611
3169
  };
1612
3170
  };
1613
- /** @description Experiment not found */
3171
+ /** @description Not Found */
1614
3172
  404: {
1615
3173
  headers: {
1616
3174
  [name: string]: unknown;
@@ -1619,40 +3177,36 @@ export interface operations {
1619
3177
  "text/plain": string;
1620
3178
  };
1621
3179
  };
1622
- /** @description Validation Error */
3180
+ /** @description Unprocessable Entity */
1623
3181
  422: {
1624
3182
  headers: {
1625
3183
  [name: string]: unknown;
1626
3184
  };
1627
3185
  content: {
1628
- "application/json": components["schemas"]["HTTPValidationError"];
3186
+ "text/plain": string;
1629
3187
  };
1630
3188
  };
1631
3189
  };
1632
3190
  };
1633
- annotateSpans: {
3191
+ getPromptVersionLatest: {
1634
3192
  parameters: {
1635
- query?: {
1636
- /** @description If true, fulfill request synchronously. */
1637
- sync?: boolean;
1638
- };
3193
+ query?: never;
1639
3194
  header?: never;
1640
- path?: never;
1641
- cookie?: never;
1642
- };
1643
- requestBody: {
1644
- content: {
1645
- "application/json": components["schemas"]["AnnotateSpansRequestBody"];
3195
+ path: {
3196
+ /** @description The identifier of the prompt, i.e. name or ID. */
3197
+ prompt_identifier: string;
1646
3198
  };
3199
+ cookie?: never;
1647
3200
  };
3201
+ requestBody?: never;
1648
3202
  responses: {
1649
- /** @description Span annotations inserted successfully */
3203
+ /** @description The latest version of the specified prompt */
1650
3204
  200: {
1651
3205
  headers: {
1652
3206
  [name: string]: unknown;
1653
3207
  };
1654
3208
  content: {
1655
- "application/json": components["schemas"]["AnnotateSpansResponseBody"];
3209
+ "application/json": components["schemas"]["GetPromptResponseBody"];
1656
3210
  };
1657
3211
  };
1658
3212
  /** @description Forbidden */
@@ -1664,7 +3218,7 @@ export interface operations {
1664
3218
  "text/plain": string;
1665
3219
  };
1666
3220
  };
1667
- /** @description Span not found */
3221
+ /** @description Not Found */
1668
3222
  404: {
1669
3223
  headers: {
1670
3224
  [name: string]: unknown;
@@ -1673,36 +3227,41 @@ export interface operations {
1673
3227
  "text/plain": string;
1674
3228
  };
1675
3229
  };
1676
- /** @description Validation Error */
3230
+ /** @description Unprocessable Entity */
1677
3231
  422: {
1678
3232
  headers: {
1679
3233
  [name: string]: unknown;
1680
3234
  };
1681
3235
  content: {
1682
- "application/json": components["schemas"]["HTTPValidationError"];
3236
+ "text/plain": string;
1683
3237
  };
1684
3238
  };
1685
3239
  };
1686
3240
  };
1687
- getEvaluations: {
3241
+ getPromptVersionTags: {
1688
3242
  parameters: {
1689
3243
  query?: {
1690
- /** @description The name of the project to get evaluations from (if omitted, evaluations will be drawn from the `default` project) */
1691
- project_name?: string | null;
3244
+ /** @description Cursor for pagination (base64-encoded promptVersionTag ID) */
3245
+ cursor?: string | null;
3246
+ /** @description The max number of tags to return at a time. */
3247
+ limit?: number;
1692
3248
  };
1693
3249
  header?: never;
1694
- path?: never;
3250
+ path: {
3251
+ /** @description The ID of the prompt version. */
3252
+ prompt_version_id: string;
3253
+ };
1695
3254
  cookie?: never;
1696
3255
  };
1697
3256
  requestBody?: never;
1698
3257
  responses: {
1699
- /** @description Successful Response */
3258
+ /** @description A list of tags associated with the prompt version */
1700
3259
  200: {
1701
3260
  headers: {
1702
3261
  [name: string]: unknown;
1703
3262
  };
1704
3263
  content: {
1705
- "application/json": unknown;
3264
+ "application/json": components["schemas"]["GetPromptVersionTagsResponseBody"];
1706
3265
  };
1707
3266
  };
1708
3267
  /** @description Forbidden */
@@ -1723,35 +3282,34 @@ export interface operations {
1723
3282
  "text/plain": string;
1724
3283
  };
1725
3284
  };
1726
- /** @description Validation Error */
3285
+ /** @description Unprocessable Entity */
1727
3286
  422: {
1728
3287
  headers: {
1729
3288
  [name: string]: unknown;
1730
3289
  };
1731
3290
  content: {
1732
- "application/json": components["schemas"]["HTTPValidationError"];
3291
+ "text/plain": string;
1733
3292
  };
1734
3293
  };
1735
3294
  };
1736
3295
  };
1737
- addEvaluations: {
3296
+ createPromptVersionTag: {
1738
3297
  parameters: {
1739
3298
  query?: never;
1740
- header?: {
1741
- "content-type"?: string | null;
1742
- "content-encoding"?: string | null;
3299
+ header?: never;
3300
+ path: {
3301
+ /** @description The ID of the prompt version. */
3302
+ prompt_version_id: string;
1743
3303
  };
1744
- path?: never;
1745
3304
  cookie?: never;
1746
3305
  };
1747
3306
  requestBody: {
1748
3307
  content: {
1749
- "application/x-protobuf": string;
1750
- "application/x-pandas-arrow": string;
3308
+ "application/json": components["schemas"]["PromptVersionTagData"];
1751
3309
  };
1752
3310
  };
1753
3311
  responses: {
1754
- /** @description Successful Response */
3312
+ /** @description No content returned on successful tag creation */
1755
3313
  204: {
1756
3314
  headers: {
1757
3315
  [name: string]: unknown;
@@ -1767,8 +3325,8 @@ export interface operations {
1767
3325
  "text/plain": string;
1768
3326
  };
1769
3327
  };
1770
- /** @description Unsupported content type, only gzipped protobuf and pandas-arrow are supported */
1771
- 415: {
3328
+ /** @description Not Found */
3329
+ 404: {
1772
3330
  headers: {
1773
3331
  [name: string]: unknown;
1774
3332
  };
@@ -1787,13 +3345,15 @@ export interface operations {
1787
3345
  };
1788
3346
  };
1789
3347
  };
1790
- getPrompts: {
3348
+ getProjects: {
1791
3349
  parameters: {
1792
3350
  query?: {
1793
- /** @description Cursor for pagination (base64-encoded prompt ID) */
3351
+ /** @description Cursor for pagination (project ID) */
1794
3352
  cursor?: string | null;
1795
- /** @description The max number of prompts to return at a time. */
3353
+ /** @description The max number of projects to return at a time. */
1796
3354
  limit?: number;
3355
+ /** @description Include experiment projects in the response. Experiment projects are created from running experiments. */
3356
+ include_experiment_projects?: boolean;
1797
3357
  };
1798
3358
  header?: never;
1799
3359
  path?: never;
@@ -1801,13 +3361,13 @@ export interface operations {
1801
3361
  };
1802
3362
  requestBody?: never;
1803
3363
  responses: {
1804
- /** @description Successful Response */
3364
+ /** @description A list of projects with pagination information */
1805
3365
  200: {
1806
3366
  headers: {
1807
3367
  [name: string]: unknown;
1808
3368
  };
1809
3369
  content: {
1810
- "application/json": components["schemas"]["GetPromptsResponseBody"];
3370
+ "application/json": components["schemas"]["GetProjectsResponseBody"];
1811
3371
  };
1812
3372
  };
1813
3373
  /** @description Forbidden */
@@ -1830,7 +3390,7 @@ export interface operations {
1830
3390
  };
1831
3391
  };
1832
3392
  };
1833
- postPromptVersion: {
3393
+ createProject: {
1834
3394
  parameters: {
1835
3395
  query?: never;
1836
3396
  header?: never;
@@ -1839,63 +3399,17 @@ export interface operations {
1839
3399
  };
1840
3400
  requestBody: {
1841
3401
  content: {
1842
- "application/json": components["schemas"]["CreatePromptRequestBody"];
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
- };
3402
+ "application/json": components["schemas"]["CreateProjectRequestBody"];
1854
3403
  };
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
3404
  };
1890
- requestBody?: never;
1891
3405
  responses: {
1892
- /** @description Successful Response */
3406
+ /** @description The newly created project */
1893
3407
  200: {
1894
3408
  headers: {
1895
3409
  [name: string]: unknown;
1896
3410
  };
1897
3411
  content: {
1898
- "application/json": components["schemas"]["GetPromptVersionsResponseBody"];
3412
+ "application/json": components["schemas"]["CreateProjectResponseBody"];
1899
3413
  };
1900
3414
  };
1901
3415
  /** @description Forbidden */
@@ -1918,25 +3432,25 @@ export interface operations {
1918
3432
  };
1919
3433
  };
1920
3434
  };
1921
- getPromptVersionByPromptVersionId: {
3435
+ getProject: {
1922
3436
  parameters: {
1923
3437
  query?: never;
1924
3438
  header?: never;
1925
3439
  path: {
1926
- /** @description The ID of the prompt version. */
1927
- prompt_version_id: string;
3440
+ /** @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. */
3441
+ project_identifier: string;
1928
3442
  };
1929
3443
  cookie?: never;
1930
3444
  };
1931
3445
  requestBody?: never;
1932
3446
  responses: {
1933
- /** @description Successful Response */
3447
+ /** @description The requested project */
1934
3448
  200: {
1935
3449
  headers: {
1936
3450
  [name: string]: unknown;
1937
3451
  };
1938
3452
  content: {
1939
- "application/json": components["schemas"]["GetPromptResponseBody"];
3453
+ "application/json": components["schemas"]["GetProjectResponseBody"];
1940
3454
  };
1941
3455
  };
1942
3456
  /** @description Forbidden */
@@ -1968,27 +3482,29 @@ export interface operations {
1968
3482
  };
1969
3483
  };
1970
3484
  };
1971
- getPromptVersionByTagName: {
3485
+ updateProject: {
1972
3486
  parameters: {
1973
3487
  query?: never;
1974
3488
  header?: never;
1975
3489
  path: {
1976
- /** @description The identifier of the prompt, i.e. name or ID. */
1977
- prompt_identifier: string;
1978
- /** @description The tag of the prompt version */
1979
- tag_name: string;
3490
+ /** @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. */
3491
+ project_identifier: string;
1980
3492
  };
1981
3493
  cookie?: never;
1982
3494
  };
1983
- requestBody?: never;
3495
+ requestBody: {
3496
+ content: {
3497
+ "application/json": components["schemas"]["UpdateProjectRequestBody"];
3498
+ };
3499
+ };
1984
3500
  responses: {
1985
- /** @description Successful Response */
3501
+ /** @description The updated project */
1986
3502
  200: {
1987
3503
  headers: {
1988
3504
  [name: string]: unknown;
1989
3505
  };
1990
3506
  content: {
1991
- "application/json": components["schemas"]["GetPromptResponseBody"];
3507
+ "application/json": components["schemas"]["UpdateProjectResponseBody"];
1992
3508
  };
1993
3509
  };
1994
3510
  /** @description Forbidden */
@@ -2020,26 +3536,24 @@ export interface operations {
2020
3536
  };
2021
3537
  };
2022
3538
  };
2023
- getPromptVersionLatest: {
3539
+ deleteProject: {
2024
3540
  parameters: {
2025
3541
  query?: never;
2026
3542
  header?: never;
2027
3543
  path: {
2028
- /** @description The identifier of the prompt, i.e. name or ID. */
2029
- prompt_identifier: string;
3544
+ /** @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. */
3545
+ project_identifier: string;
2030
3546
  };
2031
3547
  cookie?: never;
2032
3548
  };
2033
3549
  requestBody?: never;
2034
3550
  responses: {
2035
- /** @description Successful Response */
2036
- 200: {
3551
+ /** @description No content returned on successful deletion */
3552
+ 204: {
2037
3553
  headers: {
2038
3554
  [name: string]: unknown;
2039
3555
  };
2040
- content: {
2041
- "application/json": components["schemas"]["GetPromptResponseBody"];
2042
- };
3556
+ content?: never;
2043
3557
  };
2044
3558
  /** @description Forbidden */
2045
3559
  403: {