promptfoo 0.115.3 → 0.115.4

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 (49) hide show
  1. package/dist/drizzle/0015_zippy_wallop.sql +29 -0
  2. package/dist/drizzle/meta/0015_snapshot.json +1003 -0
  3. package/dist/drizzle/meta/_journal.json +7 -0
  4. package/dist/package.json +1 -1
  5. package/dist/src/app/assets/{index-BXsrbFYA.js → index-DwIrymQd.js} +169 -169
  6. package/dist/src/app/assets/{source-map-support-CNXJ1-7r.js → source-map-support-UIopcc8W.js} +1 -1
  7. package/dist/src/app/assets/{sync-CYtWtmxM.js → sync-CqTZoCfS.js} +1 -1
  8. package/dist/src/app/index.html +1 -1
  9. package/dist/src/database/tables.d.ts +365 -0
  10. package/dist/src/database/tables.d.ts.map +1 -1
  11. package/dist/src/database/tables.js +48 -1
  12. package/dist/src/database/tables.js.map +1 -1
  13. package/dist/src/evaluator.d.ts.map +1 -1
  14. package/dist/src/evaluator.js +46 -4
  15. package/dist/src/evaluator.js.map +1 -1
  16. package/dist/src/redteam/commands/generate.d.ts.map +1 -1
  17. package/dist/src/redteam/commands/generate.js +0 -2
  18. package/dist/src/redteam/commands/generate.js.map +1 -1
  19. package/dist/src/server/routes/traces.d.ts +2 -0
  20. package/dist/src/server/routes/traces.d.ts.map +1 -0
  21. package/dist/src/server/routes/traces.js +45 -0
  22. package/dist/src/server/routes/traces.js.map +1 -0
  23. package/dist/src/server/server.d.ts.map +1 -1
  24. package/dist/src/server/server.js +2 -0
  25. package/dist/src/server/server.js.map +1 -1
  26. package/dist/src/tracing/evaluatorTracing.d.ts +39 -0
  27. package/dist/src/tracing/evaluatorTracing.d.ts.map +1 -0
  28. package/dist/src/tracing/evaluatorTracing.js +189 -0
  29. package/dist/src/tracing/evaluatorTracing.js.map +1 -0
  30. package/dist/src/tracing/otlpReceiver.d.ts +21 -0
  31. package/dist/src/tracing/otlpReceiver.d.ts.map +1 -0
  32. package/dist/src/tracing/otlpReceiver.js +278 -0
  33. package/dist/src/tracing/otlpReceiver.js.map +1 -0
  34. package/dist/src/tracing/store.d.ts +33 -0
  35. package/dist/src/tracing/store.d.ts.map +1 -0
  36. package/dist/src/tracing/store.js +170 -0
  37. package/dist/src/tracing/store.js.map +1 -0
  38. package/dist/src/types/index.d.ts +606 -0
  39. package/dist/src/types/index.d.ts.map +1 -1
  40. package/dist/src/types/index.js +77 -0
  41. package/dist/src/types/index.js.map +1 -1
  42. package/dist/src/types/providers.d.ts +4 -0
  43. package/dist/src/types/providers.d.ts.map +1 -1
  44. package/dist/src/types/providers.js.map +1 -1
  45. package/dist/src/util/config/load.d.ts.map +1 -1
  46. package/dist/src/util/config/load.js +3 -0
  47. package/dist/src/util/config/load.js.map +1 -1
  48. package/dist/tsconfig.tsbuildinfo +1 -1
  49. package/package.json +1 -1
@@ -0,0 +1,1003 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "b5461429-a00f-43b7-9d03-cf178cb5dd84",
5
+ "prevId": "eaf9304d-bae8-487b-b2b9-2a330b6edd5f",
6
+ "tables": {
7
+ "configs": {
8
+ "name": "configs",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "created_at": {
18
+ "name": "created_at",
19
+ "type": "integer",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false,
23
+ "default": "CURRENT_TIMESTAMP"
24
+ },
25
+ "updated_at": {
26
+ "name": "updated_at",
27
+ "type": "integer",
28
+ "primaryKey": false,
29
+ "notNull": true,
30
+ "autoincrement": false,
31
+ "default": "CURRENT_TIMESTAMP"
32
+ },
33
+ "name": {
34
+ "name": "name",
35
+ "type": "text",
36
+ "primaryKey": false,
37
+ "notNull": true,
38
+ "autoincrement": false
39
+ },
40
+ "type": {
41
+ "name": "type",
42
+ "type": "text",
43
+ "primaryKey": false,
44
+ "notNull": true,
45
+ "autoincrement": false
46
+ },
47
+ "config": {
48
+ "name": "config",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "autoincrement": false
53
+ }
54
+ },
55
+ "indexes": {
56
+ "configs_created_at_idx": {
57
+ "name": "configs_created_at_idx",
58
+ "columns": [
59
+ "created_at"
60
+ ],
61
+ "isUnique": false
62
+ },
63
+ "configs_type_idx": {
64
+ "name": "configs_type_idx",
65
+ "columns": [
66
+ "type"
67
+ ],
68
+ "isUnique": false
69
+ }
70
+ },
71
+ "foreignKeys": {},
72
+ "compositePrimaryKeys": {},
73
+ "uniqueConstraints": {},
74
+ "checkConstraints": {}
75
+ },
76
+ "datasets": {
77
+ "name": "datasets",
78
+ "columns": {
79
+ "id": {
80
+ "name": "id",
81
+ "type": "text",
82
+ "primaryKey": true,
83
+ "notNull": true,
84
+ "autoincrement": false
85
+ },
86
+ "tests": {
87
+ "name": "tests",
88
+ "type": "text",
89
+ "primaryKey": false,
90
+ "notNull": false,
91
+ "autoincrement": false
92
+ },
93
+ "created_at": {
94
+ "name": "created_at",
95
+ "type": "integer",
96
+ "primaryKey": false,
97
+ "notNull": true,
98
+ "autoincrement": false,
99
+ "default": "CURRENT_TIMESTAMP"
100
+ }
101
+ },
102
+ "indexes": {
103
+ "datasets_created_at_idx": {
104
+ "name": "datasets_created_at_idx",
105
+ "columns": [
106
+ "created_at"
107
+ ],
108
+ "isUnique": false
109
+ }
110
+ },
111
+ "foreignKeys": {},
112
+ "compositePrimaryKeys": {},
113
+ "uniqueConstraints": {},
114
+ "checkConstraints": {}
115
+ },
116
+ "eval_results": {
117
+ "name": "eval_results",
118
+ "columns": {
119
+ "id": {
120
+ "name": "id",
121
+ "type": "text",
122
+ "primaryKey": true,
123
+ "notNull": true,
124
+ "autoincrement": false
125
+ },
126
+ "created_at": {
127
+ "name": "created_at",
128
+ "type": "integer",
129
+ "primaryKey": false,
130
+ "notNull": true,
131
+ "autoincrement": false,
132
+ "default": "CURRENT_TIMESTAMP"
133
+ },
134
+ "updated_at": {
135
+ "name": "updated_at",
136
+ "type": "integer",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "autoincrement": false,
140
+ "default": "CURRENT_TIMESTAMP"
141
+ },
142
+ "eval_id": {
143
+ "name": "eval_id",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": true,
147
+ "autoincrement": false
148
+ },
149
+ "prompt_idx": {
150
+ "name": "prompt_idx",
151
+ "type": "integer",
152
+ "primaryKey": false,
153
+ "notNull": true,
154
+ "autoincrement": false
155
+ },
156
+ "test_idx": {
157
+ "name": "test_idx",
158
+ "type": "integer",
159
+ "primaryKey": false,
160
+ "notNull": true,
161
+ "autoincrement": false
162
+ },
163
+ "test_case": {
164
+ "name": "test_case",
165
+ "type": "text",
166
+ "primaryKey": false,
167
+ "notNull": true,
168
+ "autoincrement": false
169
+ },
170
+ "prompt": {
171
+ "name": "prompt",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": true,
175
+ "autoincrement": false
176
+ },
177
+ "prompt_id": {
178
+ "name": "prompt_id",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": false,
182
+ "autoincrement": false
183
+ },
184
+ "provider": {
185
+ "name": "provider",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": true,
189
+ "autoincrement": false
190
+ },
191
+ "latency_ms": {
192
+ "name": "latency_ms",
193
+ "type": "integer",
194
+ "primaryKey": false,
195
+ "notNull": false,
196
+ "autoincrement": false
197
+ },
198
+ "cost": {
199
+ "name": "cost",
200
+ "type": "real",
201
+ "primaryKey": false,
202
+ "notNull": false,
203
+ "autoincrement": false
204
+ },
205
+ "response": {
206
+ "name": "response",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": false,
210
+ "autoincrement": false
211
+ },
212
+ "error": {
213
+ "name": "error",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": false,
217
+ "autoincrement": false
218
+ },
219
+ "failure_reason": {
220
+ "name": "failure_reason",
221
+ "type": "integer",
222
+ "primaryKey": false,
223
+ "notNull": true,
224
+ "autoincrement": false,
225
+ "default": 0
226
+ },
227
+ "success": {
228
+ "name": "success",
229
+ "type": "integer",
230
+ "primaryKey": false,
231
+ "notNull": true,
232
+ "autoincrement": false
233
+ },
234
+ "score": {
235
+ "name": "score",
236
+ "type": "real",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "autoincrement": false
240
+ },
241
+ "grading_result": {
242
+ "name": "grading_result",
243
+ "type": "text",
244
+ "primaryKey": false,
245
+ "notNull": false,
246
+ "autoincrement": false
247
+ },
248
+ "named_scores": {
249
+ "name": "named_scores",
250
+ "type": "text",
251
+ "primaryKey": false,
252
+ "notNull": false,
253
+ "autoincrement": false
254
+ },
255
+ "metadata": {
256
+ "name": "metadata",
257
+ "type": "text",
258
+ "primaryKey": false,
259
+ "notNull": false,
260
+ "autoincrement": false
261
+ }
262
+ },
263
+ "indexes": {
264
+ "eval_result_eval_id_idx": {
265
+ "name": "eval_result_eval_id_idx",
266
+ "columns": [
267
+ "eval_id"
268
+ ],
269
+ "isUnique": false
270
+ },
271
+ "eval_result_test_idx": {
272
+ "name": "eval_result_test_idx",
273
+ "columns": [
274
+ "test_idx"
275
+ ],
276
+ "isUnique": false
277
+ },
278
+ "eval_result_response_idx": {
279
+ "name": "eval_result_response_idx",
280
+ "columns": [
281
+ "response"
282
+ ],
283
+ "isUnique": false
284
+ },
285
+ "eval_result_grading_result_reason_idx": {
286
+ "name": "eval_result_grading_result_reason_idx",
287
+ "columns": [
288
+ "json_extract(\"grading_result\", '$.reason')"
289
+ ],
290
+ "isUnique": false
291
+ },
292
+ "eval_result_grading_result_comment_idx": {
293
+ "name": "eval_result_grading_result_comment_idx",
294
+ "columns": [
295
+ "json_extract(\"grading_result\", '$.comment')"
296
+ ],
297
+ "isUnique": false
298
+ },
299
+ "eval_result_test_case_vars_idx": {
300
+ "name": "eval_result_test_case_vars_idx",
301
+ "columns": [
302
+ "json_extract(\"test_case\", '$.vars')"
303
+ ],
304
+ "isUnique": false
305
+ },
306
+ "eval_result_test_case_metadata_idx": {
307
+ "name": "eval_result_test_case_metadata_idx",
308
+ "columns": [
309
+ "json_extract(\"metadata\", '$')"
310
+ ],
311
+ "isUnique": false
312
+ },
313
+ "eval_result_named_scores_idx": {
314
+ "name": "eval_result_named_scores_idx",
315
+ "columns": [
316
+ "json_extract(\"named_scores\", '$')"
317
+ ],
318
+ "isUnique": false
319
+ },
320
+ "eval_result_metadata_idx": {
321
+ "name": "eval_result_metadata_idx",
322
+ "columns": [
323
+ "json_extract(\"metadata\", '$')"
324
+ ],
325
+ "isUnique": false
326
+ }
327
+ },
328
+ "foreignKeys": {
329
+ "eval_results_eval_id_evals_id_fk": {
330
+ "name": "eval_results_eval_id_evals_id_fk",
331
+ "tableFrom": "eval_results",
332
+ "tableTo": "evals",
333
+ "columnsFrom": [
334
+ "eval_id"
335
+ ],
336
+ "columnsTo": [
337
+ "id"
338
+ ],
339
+ "onDelete": "no action",
340
+ "onUpdate": "no action"
341
+ },
342
+ "eval_results_prompt_id_prompts_id_fk": {
343
+ "name": "eval_results_prompt_id_prompts_id_fk",
344
+ "tableFrom": "eval_results",
345
+ "tableTo": "prompts",
346
+ "columnsFrom": [
347
+ "prompt_id"
348
+ ],
349
+ "columnsTo": [
350
+ "id"
351
+ ],
352
+ "onDelete": "no action",
353
+ "onUpdate": "no action"
354
+ }
355
+ },
356
+ "compositePrimaryKeys": {},
357
+ "uniqueConstraints": {},
358
+ "checkConstraints": {}
359
+ },
360
+ "evals": {
361
+ "name": "evals",
362
+ "columns": {
363
+ "id": {
364
+ "name": "id",
365
+ "type": "text",
366
+ "primaryKey": true,
367
+ "notNull": true,
368
+ "autoincrement": false
369
+ },
370
+ "created_at": {
371
+ "name": "created_at",
372
+ "type": "integer",
373
+ "primaryKey": false,
374
+ "notNull": true,
375
+ "autoincrement": false,
376
+ "default": "CURRENT_TIMESTAMP"
377
+ },
378
+ "author": {
379
+ "name": "author",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": false,
383
+ "autoincrement": false
384
+ },
385
+ "description": {
386
+ "name": "description",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": false,
390
+ "autoincrement": false
391
+ },
392
+ "results": {
393
+ "name": "results",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": true,
397
+ "autoincrement": false
398
+ },
399
+ "config": {
400
+ "name": "config",
401
+ "type": "text",
402
+ "primaryKey": false,
403
+ "notNull": true,
404
+ "autoincrement": false
405
+ },
406
+ "prompts": {
407
+ "name": "prompts",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": false,
411
+ "autoincrement": false
412
+ },
413
+ "vars": {
414
+ "name": "vars",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": false,
418
+ "autoincrement": false
419
+ }
420
+ },
421
+ "indexes": {
422
+ "evals_created_at_idx": {
423
+ "name": "evals_created_at_idx",
424
+ "columns": [
425
+ "created_at"
426
+ ],
427
+ "isUnique": false
428
+ },
429
+ "evals_author_idx": {
430
+ "name": "evals_author_idx",
431
+ "columns": [
432
+ "author"
433
+ ],
434
+ "isUnique": false
435
+ }
436
+ },
437
+ "foreignKeys": {},
438
+ "compositePrimaryKeys": {},
439
+ "uniqueConstraints": {},
440
+ "checkConstraints": {}
441
+ },
442
+ "evals_to_datasets": {
443
+ "name": "evals_to_datasets",
444
+ "columns": {
445
+ "eval_id": {
446
+ "name": "eval_id",
447
+ "type": "text",
448
+ "primaryKey": false,
449
+ "notNull": true,
450
+ "autoincrement": false
451
+ },
452
+ "dataset_id": {
453
+ "name": "dataset_id",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": true,
457
+ "autoincrement": false
458
+ }
459
+ },
460
+ "indexes": {
461
+ "evals_to_datasets_eval_id_idx": {
462
+ "name": "evals_to_datasets_eval_id_idx",
463
+ "columns": [
464
+ "eval_id"
465
+ ],
466
+ "isUnique": false
467
+ },
468
+ "evals_to_datasets_dataset_id_idx": {
469
+ "name": "evals_to_datasets_dataset_id_idx",
470
+ "columns": [
471
+ "dataset_id"
472
+ ],
473
+ "isUnique": false
474
+ }
475
+ },
476
+ "foreignKeys": {
477
+ "evals_to_datasets_eval_id_evals_id_fk": {
478
+ "name": "evals_to_datasets_eval_id_evals_id_fk",
479
+ "tableFrom": "evals_to_datasets",
480
+ "tableTo": "evals",
481
+ "columnsFrom": [
482
+ "eval_id"
483
+ ],
484
+ "columnsTo": [
485
+ "id"
486
+ ],
487
+ "onDelete": "no action",
488
+ "onUpdate": "no action"
489
+ },
490
+ "evals_to_datasets_dataset_id_datasets_id_fk": {
491
+ "name": "evals_to_datasets_dataset_id_datasets_id_fk",
492
+ "tableFrom": "evals_to_datasets",
493
+ "tableTo": "datasets",
494
+ "columnsFrom": [
495
+ "dataset_id"
496
+ ],
497
+ "columnsTo": [
498
+ "id"
499
+ ],
500
+ "onDelete": "no action",
501
+ "onUpdate": "no action"
502
+ }
503
+ },
504
+ "compositePrimaryKeys": {
505
+ "evals_to_datasets_eval_id_dataset_id_pk": {
506
+ "columns": [
507
+ "eval_id",
508
+ "dataset_id"
509
+ ],
510
+ "name": "evals_to_datasets_eval_id_dataset_id_pk"
511
+ }
512
+ },
513
+ "uniqueConstraints": {},
514
+ "checkConstraints": {}
515
+ },
516
+ "evals_to_prompts": {
517
+ "name": "evals_to_prompts",
518
+ "columns": {
519
+ "eval_id": {
520
+ "name": "eval_id",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": true,
524
+ "autoincrement": false
525
+ },
526
+ "prompt_id": {
527
+ "name": "prompt_id",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": true,
531
+ "autoincrement": false
532
+ }
533
+ },
534
+ "indexes": {
535
+ "evals_to_prompts_eval_id_idx": {
536
+ "name": "evals_to_prompts_eval_id_idx",
537
+ "columns": [
538
+ "eval_id"
539
+ ],
540
+ "isUnique": false
541
+ },
542
+ "evals_to_prompts_prompt_id_idx": {
543
+ "name": "evals_to_prompts_prompt_id_idx",
544
+ "columns": [
545
+ "prompt_id"
546
+ ],
547
+ "isUnique": false
548
+ }
549
+ },
550
+ "foreignKeys": {
551
+ "evals_to_prompts_eval_id_evals_id_fk": {
552
+ "name": "evals_to_prompts_eval_id_evals_id_fk",
553
+ "tableFrom": "evals_to_prompts",
554
+ "tableTo": "evals",
555
+ "columnsFrom": [
556
+ "eval_id"
557
+ ],
558
+ "columnsTo": [
559
+ "id"
560
+ ],
561
+ "onDelete": "cascade",
562
+ "onUpdate": "no action"
563
+ },
564
+ "evals_to_prompts_prompt_id_prompts_id_fk": {
565
+ "name": "evals_to_prompts_prompt_id_prompts_id_fk",
566
+ "tableFrom": "evals_to_prompts",
567
+ "tableTo": "prompts",
568
+ "columnsFrom": [
569
+ "prompt_id"
570
+ ],
571
+ "columnsTo": [
572
+ "id"
573
+ ],
574
+ "onDelete": "no action",
575
+ "onUpdate": "no action"
576
+ }
577
+ },
578
+ "compositePrimaryKeys": {
579
+ "evals_to_prompts_eval_id_prompt_id_pk": {
580
+ "columns": [
581
+ "eval_id",
582
+ "prompt_id"
583
+ ],
584
+ "name": "evals_to_prompts_eval_id_prompt_id_pk"
585
+ }
586
+ },
587
+ "uniqueConstraints": {},
588
+ "checkConstraints": {}
589
+ },
590
+ "evals_to_tags": {
591
+ "name": "evals_to_tags",
592
+ "columns": {
593
+ "eval_id": {
594
+ "name": "eval_id",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": true,
598
+ "autoincrement": false
599
+ },
600
+ "tag_id": {
601
+ "name": "tag_id",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": true,
605
+ "autoincrement": false
606
+ }
607
+ },
608
+ "indexes": {
609
+ "evals_to_tags_eval_id_idx": {
610
+ "name": "evals_to_tags_eval_id_idx",
611
+ "columns": [
612
+ "eval_id"
613
+ ],
614
+ "isUnique": false
615
+ },
616
+ "evals_to_tags_tag_id_idx": {
617
+ "name": "evals_to_tags_tag_id_idx",
618
+ "columns": [
619
+ "tag_id"
620
+ ],
621
+ "isUnique": false
622
+ }
623
+ },
624
+ "foreignKeys": {
625
+ "evals_to_tags_eval_id_evals_id_fk": {
626
+ "name": "evals_to_tags_eval_id_evals_id_fk",
627
+ "tableFrom": "evals_to_tags",
628
+ "tableTo": "evals",
629
+ "columnsFrom": [
630
+ "eval_id"
631
+ ],
632
+ "columnsTo": [
633
+ "id"
634
+ ],
635
+ "onDelete": "no action",
636
+ "onUpdate": "no action"
637
+ },
638
+ "evals_to_tags_tag_id_tags_id_fk": {
639
+ "name": "evals_to_tags_tag_id_tags_id_fk",
640
+ "tableFrom": "evals_to_tags",
641
+ "tableTo": "tags",
642
+ "columnsFrom": [
643
+ "tag_id"
644
+ ],
645
+ "columnsTo": [
646
+ "id"
647
+ ],
648
+ "onDelete": "no action",
649
+ "onUpdate": "no action"
650
+ }
651
+ },
652
+ "compositePrimaryKeys": {
653
+ "evals_to_tags_eval_id_tag_id_pk": {
654
+ "columns": [
655
+ "eval_id",
656
+ "tag_id"
657
+ ],
658
+ "name": "evals_to_tags_eval_id_tag_id_pk"
659
+ }
660
+ },
661
+ "uniqueConstraints": {},
662
+ "checkConstraints": {}
663
+ },
664
+ "prompts": {
665
+ "name": "prompts",
666
+ "columns": {
667
+ "id": {
668
+ "name": "id",
669
+ "type": "text",
670
+ "primaryKey": true,
671
+ "notNull": true,
672
+ "autoincrement": false
673
+ },
674
+ "created_at": {
675
+ "name": "created_at",
676
+ "type": "integer",
677
+ "primaryKey": false,
678
+ "notNull": true,
679
+ "autoincrement": false,
680
+ "default": "CURRENT_TIMESTAMP"
681
+ },
682
+ "prompt": {
683
+ "name": "prompt",
684
+ "type": "text",
685
+ "primaryKey": false,
686
+ "notNull": true,
687
+ "autoincrement": false
688
+ }
689
+ },
690
+ "indexes": {
691
+ "prompts_created_at_idx": {
692
+ "name": "prompts_created_at_idx",
693
+ "columns": [
694
+ "created_at"
695
+ ],
696
+ "isUnique": false
697
+ }
698
+ },
699
+ "foreignKeys": {},
700
+ "compositePrimaryKeys": {},
701
+ "uniqueConstraints": {},
702
+ "checkConstraints": {}
703
+ },
704
+ "spans": {
705
+ "name": "spans",
706
+ "columns": {
707
+ "id": {
708
+ "name": "id",
709
+ "type": "text",
710
+ "primaryKey": true,
711
+ "notNull": true,
712
+ "autoincrement": false
713
+ },
714
+ "trace_id": {
715
+ "name": "trace_id",
716
+ "type": "text",
717
+ "primaryKey": false,
718
+ "notNull": true,
719
+ "autoincrement": false
720
+ },
721
+ "span_id": {
722
+ "name": "span_id",
723
+ "type": "text",
724
+ "primaryKey": false,
725
+ "notNull": true,
726
+ "autoincrement": false
727
+ },
728
+ "parent_span_id": {
729
+ "name": "parent_span_id",
730
+ "type": "text",
731
+ "primaryKey": false,
732
+ "notNull": false,
733
+ "autoincrement": false
734
+ },
735
+ "name": {
736
+ "name": "name",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": true,
740
+ "autoincrement": false
741
+ },
742
+ "start_time": {
743
+ "name": "start_time",
744
+ "type": "integer",
745
+ "primaryKey": false,
746
+ "notNull": true,
747
+ "autoincrement": false
748
+ },
749
+ "end_time": {
750
+ "name": "end_time",
751
+ "type": "integer",
752
+ "primaryKey": false,
753
+ "notNull": false,
754
+ "autoincrement": false
755
+ },
756
+ "attributes": {
757
+ "name": "attributes",
758
+ "type": "text",
759
+ "primaryKey": false,
760
+ "notNull": false,
761
+ "autoincrement": false
762
+ },
763
+ "status_code": {
764
+ "name": "status_code",
765
+ "type": "integer",
766
+ "primaryKey": false,
767
+ "notNull": false,
768
+ "autoincrement": false
769
+ },
770
+ "status_message": {
771
+ "name": "status_message",
772
+ "type": "text",
773
+ "primaryKey": false,
774
+ "notNull": false,
775
+ "autoincrement": false
776
+ }
777
+ },
778
+ "indexes": {
779
+ "spans_trace_id_idx": {
780
+ "name": "spans_trace_id_idx",
781
+ "columns": [
782
+ "trace_id"
783
+ ],
784
+ "isUnique": false
785
+ },
786
+ "spans_span_id_idx": {
787
+ "name": "spans_span_id_idx",
788
+ "columns": [
789
+ "span_id"
790
+ ],
791
+ "isUnique": false
792
+ }
793
+ },
794
+ "foreignKeys": {
795
+ "spans_trace_id_traces_trace_id_fk": {
796
+ "name": "spans_trace_id_traces_trace_id_fk",
797
+ "tableFrom": "spans",
798
+ "tableTo": "traces",
799
+ "columnsFrom": [
800
+ "trace_id"
801
+ ],
802
+ "columnsTo": [
803
+ "trace_id"
804
+ ],
805
+ "onDelete": "no action",
806
+ "onUpdate": "no action"
807
+ }
808
+ },
809
+ "compositePrimaryKeys": {},
810
+ "uniqueConstraints": {},
811
+ "checkConstraints": {}
812
+ },
813
+ "tags": {
814
+ "name": "tags",
815
+ "columns": {
816
+ "id": {
817
+ "name": "id",
818
+ "type": "text",
819
+ "primaryKey": true,
820
+ "notNull": true,
821
+ "autoincrement": false
822
+ },
823
+ "name": {
824
+ "name": "name",
825
+ "type": "text",
826
+ "primaryKey": false,
827
+ "notNull": true,
828
+ "autoincrement": false
829
+ },
830
+ "value": {
831
+ "name": "value",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": true,
835
+ "autoincrement": false
836
+ }
837
+ },
838
+ "indexes": {
839
+ "tags_name_idx": {
840
+ "name": "tags_name_idx",
841
+ "columns": [
842
+ "name"
843
+ ],
844
+ "isUnique": false
845
+ },
846
+ "tags_name_value_unique": {
847
+ "name": "tags_name_value_unique",
848
+ "columns": [
849
+ "name",
850
+ "value"
851
+ ],
852
+ "isUnique": true
853
+ }
854
+ },
855
+ "foreignKeys": {},
856
+ "compositePrimaryKeys": {},
857
+ "uniqueConstraints": {},
858
+ "checkConstraints": {}
859
+ },
860
+ "traces": {
861
+ "name": "traces",
862
+ "columns": {
863
+ "id": {
864
+ "name": "id",
865
+ "type": "text",
866
+ "primaryKey": true,
867
+ "notNull": true,
868
+ "autoincrement": false
869
+ },
870
+ "trace_id": {
871
+ "name": "trace_id",
872
+ "type": "text",
873
+ "primaryKey": false,
874
+ "notNull": true,
875
+ "autoincrement": false
876
+ },
877
+ "evaluation_id": {
878
+ "name": "evaluation_id",
879
+ "type": "text",
880
+ "primaryKey": false,
881
+ "notNull": true,
882
+ "autoincrement": false
883
+ },
884
+ "test_case_id": {
885
+ "name": "test_case_id",
886
+ "type": "text",
887
+ "primaryKey": false,
888
+ "notNull": true,
889
+ "autoincrement": false
890
+ },
891
+ "created_at": {
892
+ "name": "created_at",
893
+ "type": "integer",
894
+ "primaryKey": false,
895
+ "notNull": true,
896
+ "autoincrement": false,
897
+ "default": "CURRENT_TIMESTAMP"
898
+ },
899
+ "metadata": {
900
+ "name": "metadata",
901
+ "type": "text",
902
+ "primaryKey": false,
903
+ "notNull": false,
904
+ "autoincrement": false
905
+ }
906
+ },
907
+ "indexes": {
908
+ "traces_trace_id_unique": {
909
+ "name": "traces_trace_id_unique",
910
+ "columns": [
911
+ "trace_id"
912
+ ],
913
+ "isUnique": true
914
+ },
915
+ "traces_evaluation_idx": {
916
+ "name": "traces_evaluation_idx",
917
+ "columns": [
918
+ "evaluation_id"
919
+ ],
920
+ "isUnique": false
921
+ },
922
+ "traces_trace_id_idx": {
923
+ "name": "traces_trace_id_idx",
924
+ "columns": [
925
+ "trace_id"
926
+ ],
927
+ "isUnique": false
928
+ }
929
+ },
930
+ "foreignKeys": {
931
+ "traces_evaluation_id_evals_id_fk": {
932
+ "name": "traces_evaluation_id_evals_id_fk",
933
+ "tableFrom": "traces",
934
+ "tableTo": "evals",
935
+ "columnsFrom": [
936
+ "evaluation_id"
937
+ ],
938
+ "columnsTo": [
939
+ "id"
940
+ ],
941
+ "onDelete": "no action",
942
+ "onUpdate": "no action"
943
+ }
944
+ },
945
+ "compositePrimaryKeys": {},
946
+ "uniqueConstraints": {},
947
+ "checkConstraints": {}
948
+ }
949
+ },
950
+ "views": {},
951
+ "enums": {},
952
+ "_meta": {
953
+ "schemas": {},
954
+ "tables": {},
955
+ "columns": {}
956
+ },
957
+ "internal": {
958
+ "indexes": {
959
+ "eval_result_grading_result_reason_idx": {
960
+ "columns": {
961
+ "json_extract(\"grading_result\", '$.reason')": {
962
+ "isExpression": true
963
+ }
964
+ }
965
+ },
966
+ "eval_result_grading_result_comment_idx": {
967
+ "columns": {
968
+ "json_extract(\"grading_result\", '$.comment')": {
969
+ "isExpression": true
970
+ }
971
+ }
972
+ },
973
+ "eval_result_test_case_vars_idx": {
974
+ "columns": {
975
+ "json_extract(\"test_case\", '$.vars')": {
976
+ "isExpression": true
977
+ }
978
+ }
979
+ },
980
+ "eval_result_test_case_metadata_idx": {
981
+ "columns": {
982
+ "json_extract(\"metadata\", '$')": {
983
+ "isExpression": true
984
+ }
985
+ }
986
+ },
987
+ "eval_result_named_scores_idx": {
988
+ "columns": {
989
+ "json_extract(\"named_scores\", '$')": {
990
+ "isExpression": true
991
+ }
992
+ }
993
+ },
994
+ "eval_result_metadata_idx": {
995
+ "columns": {
996
+ "json_extract(\"metadata\", '$')": {
997
+ "isExpression": true
998
+ }
999
+ }
1000
+ }
1001
+ }
1002
+ }
1003
+ }