@sweny-ai/core 0.1.83 → 0.1.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schema.d.ts CHANGED
@@ -435,7 +435,9 @@ export declare const outputMatchZ: z.ZodEffects<z.ZodObject<{
435
435
  in?: unknown[] | undefined;
436
436
  matches?: string | undefined;
437
437
  }>;
438
- export declare const nodeVerifyZ: z.ZodEffects<z.ZodObject<{
438
+ export declare const evaluatorKindZ: z.ZodEnum<["value", "function", "judge"]>;
439
+ export declare const evalPolicyZ: z.ZodEnum<["all_pass", "any_pass", "weighted"]>;
440
+ export declare const evaluatorRuleZ: z.ZodEffects<z.ZodObject<{
439
441
  any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
440
442
  all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
441
443
  no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -511,6 +513,167 @@ export declare const nodeVerifyZ: z.ZodEffects<z.ZodObject<{
511
513
  matches?: string | undefined;
512
514
  }[] | undefined;
513
515
  }>;
516
+ /**
517
+ * A single evaluator. The `kind` field discriminates required-fields:
518
+ * `value` and `function` need `rule`; `judge` needs `rubric`.
519
+ *
520
+ * Strict object: unknown keys are rejected to match the public JSON Schema.
521
+ */
522
+ export declare const evaluatorZ: z.ZodEffects<z.ZodObject<{
523
+ name: z.ZodString;
524
+ kind: z.ZodEnum<["value", "function", "judge"]>;
525
+ rule: z.ZodOptional<z.ZodEffects<z.ZodObject<{
526
+ any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
527
+ all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
528
+ no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
529
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
530
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
531
+ path: z.ZodString;
532
+ equals: z.ZodOptional<z.ZodUnknown>;
533
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
534
+ matches: z.ZodOptional<z.ZodString>;
535
+ }, "strict", z.ZodTypeAny, {
536
+ path: string;
537
+ equals?: unknown;
538
+ in?: unknown[] | undefined;
539
+ matches?: string | undefined;
540
+ }, {
541
+ path: string;
542
+ equals?: unknown;
543
+ in?: unknown[] | undefined;
544
+ matches?: string | undefined;
545
+ }>, {
546
+ path: string;
547
+ equals?: unknown;
548
+ in?: unknown[] | undefined;
549
+ matches?: string | undefined;
550
+ }, {
551
+ path: string;
552
+ equals?: unknown;
553
+ in?: unknown[] | undefined;
554
+ matches?: string | undefined;
555
+ }>, "many">>;
556
+ }, "strict", z.ZodTypeAny, {
557
+ any_tool_called?: string[] | undefined;
558
+ all_tools_called?: string[] | undefined;
559
+ no_tool_called?: string[] | undefined;
560
+ output_required?: string[] | undefined;
561
+ output_matches?: {
562
+ path: string;
563
+ equals?: unknown;
564
+ in?: unknown[] | undefined;
565
+ matches?: string | undefined;
566
+ }[] | undefined;
567
+ }, {
568
+ any_tool_called?: string[] | undefined;
569
+ all_tools_called?: string[] | undefined;
570
+ no_tool_called?: string[] | undefined;
571
+ output_required?: string[] | undefined;
572
+ output_matches?: {
573
+ path: string;
574
+ equals?: unknown;
575
+ in?: unknown[] | undefined;
576
+ matches?: string | undefined;
577
+ }[] | undefined;
578
+ }>, {
579
+ any_tool_called?: string[] | undefined;
580
+ all_tools_called?: string[] | undefined;
581
+ no_tool_called?: string[] | undefined;
582
+ output_required?: string[] | undefined;
583
+ output_matches?: {
584
+ path: string;
585
+ equals?: unknown;
586
+ in?: unknown[] | undefined;
587
+ matches?: string | undefined;
588
+ }[] | undefined;
589
+ }, {
590
+ any_tool_called?: string[] | undefined;
591
+ all_tools_called?: string[] | undefined;
592
+ no_tool_called?: string[] | undefined;
593
+ output_required?: string[] | undefined;
594
+ output_matches?: {
595
+ path: string;
596
+ equals?: unknown;
597
+ in?: unknown[] | undefined;
598
+ matches?: string | undefined;
599
+ }[] | undefined;
600
+ }>>;
601
+ rubric: z.ZodOptional<z.ZodString>;
602
+ pass_when: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
603
+ model: z.ZodOptional<z.ZodString>;
604
+ }, "strict", z.ZodTypeAny, {
605
+ name: string;
606
+ kind: "function" | "value" | "judge";
607
+ rule?: {
608
+ any_tool_called?: string[] | undefined;
609
+ all_tools_called?: string[] | undefined;
610
+ no_tool_called?: string[] | undefined;
611
+ output_required?: string[] | undefined;
612
+ output_matches?: {
613
+ path: string;
614
+ equals?: unknown;
615
+ in?: unknown[] | undefined;
616
+ matches?: string | undefined;
617
+ }[] | undefined;
618
+ } | undefined;
619
+ rubric?: string | undefined;
620
+ pass_when?: string | undefined;
621
+ model?: string | undefined;
622
+ }, {
623
+ name: string;
624
+ kind: "function" | "value" | "judge";
625
+ rule?: {
626
+ any_tool_called?: string[] | undefined;
627
+ all_tools_called?: string[] | undefined;
628
+ no_tool_called?: string[] | undefined;
629
+ output_required?: string[] | undefined;
630
+ output_matches?: {
631
+ path: string;
632
+ equals?: unknown;
633
+ in?: unknown[] | undefined;
634
+ matches?: string | undefined;
635
+ }[] | undefined;
636
+ } | undefined;
637
+ rubric?: string | undefined;
638
+ pass_when?: string | undefined;
639
+ model?: string | undefined;
640
+ }>, {
641
+ name: string;
642
+ kind: "function" | "value" | "judge";
643
+ rule?: {
644
+ any_tool_called?: string[] | undefined;
645
+ all_tools_called?: string[] | undefined;
646
+ no_tool_called?: string[] | undefined;
647
+ output_required?: string[] | undefined;
648
+ output_matches?: {
649
+ path: string;
650
+ equals?: unknown;
651
+ in?: unknown[] | undefined;
652
+ matches?: string | undefined;
653
+ }[] | undefined;
654
+ } | undefined;
655
+ rubric?: string | undefined;
656
+ pass_when?: string | undefined;
657
+ model?: string | undefined;
658
+ }, {
659
+ name: string;
660
+ kind: "function" | "value" | "judge";
661
+ rule?: {
662
+ any_tool_called?: string[] | undefined;
663
+ all_tools_called?: string[] | undefined;
664
+ no_tool_called?: string[] | undefined;
665
+ output_required?: string[] | undefined;
666
+ output_matches?: {
667
+ path: string;
668
+ equals?: unknown;
669
+ in?: unknown[] | undefined;
670
+ matches?: string | undefined;
671
+ }[] | undefined;
672
+ } | undefined;
673
+ rubric?: string | undefined;
674
+ pass_when?: string | undefined;
675
+ model?: string | undefined;
676
+ }>;
514
677
  export declare const nodeRequiresZ: z.ZodEffects<z.ZodObject<{
515
678
  output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
516
679
  output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
@@ -766,82 +929,163 @@ export declare const nodeZ: z.ZodObject<{
766
929
  })[];
767
930
  only?: boolean | undefined;
768
931
  }>]>>;
769
- verify: z.ZodOptional<z.ZodEffects<z.ZodObject<{
770
- any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
771
- all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
772
- no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
773
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
774
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
775
- path: z.ZodString;
776
- equals: z.ZodOptional<z.ZodUnknown>;
777
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
778
- matches: z.ZodOptional<z.ZodString>;
932
+ eval: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
933
+ name: z.ZodString;
934
+ kind: z.ZodEnum<["value", "function", "judge"]>;
935
+ rule: z.ZodOptional<z.ZodEffects<z.ZodObject<{
936
+ any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
937
+ all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
938
+ no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
939
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
940
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
941
+ path: z.ZodString;
942
+ equals: z.ZodOptional<z.ZodUnknown>;
943
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
944
+ matches: z.ZodOptional<z.ZodString>;
945
+ }, "strict", z.ZodTypeAny, {
946
+ path: string;
947
+ equals?: unknown;
948
+ in?: unknown[] | undefined;
949
+ matches?: string | undefined;
950
+ }, {
951
+ path: string;
952
+ equals?: unknown;
953
+ in?: unknown[] | undefined;
954
+ matches?: string | undefined;
955
+ }>, {
956
+ path: string;
957
+ equals?: unknown;
958
+ in?: unknown[] | undefined;
959
+ matches?: string | undefined;
960
+ }, {
961
+ path: string;
962
+ equals?: unknown;
963
+ in?: unknown[] | undefined;
964
+ matches?: string | undefined;
965
+ }>, "many">>;
779
966
  }, "strict", z.ZodTypeAny, {
780
- path: string;
781
- equals?: unknown;
782
- in?: unknown[] | undefined;
783
- matches?: string | undefined;
967
+ any_tool_called?: string[] | undefined;
968
+ all_tools_called?: string[] | undefined;
969
+ no_tool_called?: string[] | undefined;
970
+ output_required?: string[] | undefined;
971
+ output_matches?: {
972
+ path: string;
973
+ equals?: unknown;
974
+ in?: unknown[] | undefined;
975
+ matches?: string | undefined;
976
+ }[] | undefined;
784
977
  }, {
785
- path: string;
786
- equals?: unknown;
787
- in?: unknown[] | undefined;
788
- matches?: string | undefined;
978
+ any_tool_called?: string[] | undefined;
979
+ all_tools_called?: string[] | undefined;
980
+ no_tool_called?: string[] | undefined;
981
+ output_required?: string[] | undefined;
982
+ output_matches?: {
983
+ path: string;
984
+ equals?: unknown;
985
+ in?: unknown[] | undefined;
986
+ matches?: string | undefined;
987
+ }[] | undefined;
789
988
  }>, {
790
- path: string;
791
- equals?: unknown;
792
- in?: unknown[] | undefined;
793
- matches?: string | undefined;
989
+ any_tool_called?: string[] | undefined;
990
+ all_tools_called?: string[] | undefined;
991
+ no_tool_called?: string[] | undefined;
992
+ output_required?: string[] | undefined;
993
+ output_matches?: {
994
+ path: string;
995
+ equals?: unknown;
996
+ in?: unknown[] | undefined;
997
+ matches?: string | undefined;
998
+ }[] | undefined;
794
999
  }, {
795
- path: string;
796
- equals?: unknown;
797
- in?: unknown[] | undefined;
798
- matches?: string | undefined;
799
- }>, "many">>;
1000
+ any_tool_called?: string[] | undefined;
1001
+ all_tools_called?: string[] | undefined;
1002
+ no_tool_called?: string[] | undefined;
1003
+ output_required?: string[] | undefined;
1004
+ output_matches?: {
1005
+ path: string;
1006
+ equals?: unknown;
1007
+ in?: unknown[] | undefined;
1008
+ matches?: string | undefined;
1009
+ }[] | undefined;
1010
+ }>>;
1011
+ rubric: z.ZodOptional<z.ZodString>;
1012
+ pass_when: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1013
+ model: z.ZodOptional<z.ZodString>;
800
1014
  }, "strict", z.ZodTypeAny, {
801
- any_tool_called?: string[] | undefined;
802
- all_tools_called?: string[] | undefined;
803
- no_tool_called?: string[] | undefined;
804
- output_required?: string[] | undefined;
805
- output_matches?: {
806
- path: string;
807
- equals?: unknown;
808
- in?: unknown[] | undefined;
809
- matches?: string | undefined;
810
- }[] | undefined;
1015
+ name: string;
1016
+ kind: "function" | "value" | "judge";
1017
+ rule?: {
1018
+ any_tool_called?: string[] | undefined;
1019
+ all_tools_called?: string[] | undefined;
1020
+ no_tool_called?: string[] | undefined;
1021
+ output_required?: string[] | undefined;
1022
+ output_matches?: {
1023
+ path: string;
1024
+ equals?: unknown;
1025
+ in?: unknown[] | undefined;
1026
+ matches?: string | undefined;
1027
+ }[] | undefined;
1028
+ } | undefined;
1029
+ rubric?: string | undefined;
1030
+ pass_when?: string | undefined;
1031
+ model?: string | undefined;
811
1032
  }, {
812
- any_tool_called?: string[] | undefined;
813
- all_tools_called?: string[] | undefined;
814
- no_tool_called?: string[] | undefined;
815
- output_required?: string[] | undefined;
816
- output_matches?: {
817
- path: string;
818
- equals?: unknown;
819
- in?: unknown[] | undefined;
820
- matches?: string | undefined;
821
- }[] | undefined;
1033
+ name: string;
1034
+ kind: "function" | "value" | "judge";
1035
+ rule?: {
1036
+ any_tool_called?: string[] | undefined;
1037
+ all_tools_called?: string[] | undefined;
1038
+ no_tool_called?: string[] | undefined;
1039
+ output_required?: string[] | undefined;
1040
+ output_matches?: {
1041
+ path: string;
1042
+ equals?: unknown;
1043
+ in?: unknown[] | undefined;
1044
+ matches?: string | undefined;
1045
+ }[] | undefined;
1046
+ } | undefined;
1047
+ rubric?: string | undefined;
1048
+ pass_when?: string | undefined;
1049
+ model?: string | undefined;
822
1050
  }>, {
823
- any_tool_called?: string[] | undefined;
824
- all_tools_called?: string[] | undefined;
825
- no_tool_called?: string[] | undefined;
826
- output_required?: string[] | undefined;
827
- output_matches?: {
828
- path: string;
829
- equals?: unknown;
830
- in?: unknown[] | undefined;
831
- matches?: string | undefined;
832
- }[] | undefined;
1051
+ name: string;
1052
+ kind: "function" | "value" | "judge";
1053
+ rule?: {
1054
+ any_tool_called?: string[] | undefined;
1055
+ all_tools_called?: string[] | undefined;
1056
+ no_tool_called?: string[] | undefined;
1057
+ output_required?: string[] | undefined;
1058
+ output_matches?: {
1059
+ path: string;
1060
+ equals?: unknown;
1061
+ in?: unknown[] | undefined;
1062
+ matches?: string | undefined;
1063
+ }[] | undefined;
1064
+ } | undefined;
1065
+ rubric?: string | undefined;
1066
+ pass_when?: string | undefined;
1067
+ model?: string | undefined;
833
1068
  }, {
834
- any_tool_called?: string[] | undefined;
835
- all_tools_called?: string[] | undefined;
836
- no_tool_called?: string[] | undefined;
837
- output_required?: string[] | undefined;
838
- output_matches?: {
839
- path: string;
840
- equals?: unknown;
841
- in?: unknown[] | undefined;
842
- matches?: string | undefined;
843
- }[] | undefined;
844
- }>>;
1069
+ name: string;
1070
+ kind: "function" | "value" | "judge";
1071
+ rule?: {
1072
+ any_tool_called?: string[] | undefined;
1073
+ all_tools_called?: string[] | undefined;
1074
+ no_tool_called?: string[] | undefined;
1075
+ output_required?: string[] | undefined;
1076
+ output_matches?: {
1077
+ path: string;
1078
+ equals?: unknown;
1079
+ in?: unknown[] | undefined;
1080
+ matches?: string | undefined;
1081
+ }[] | undefined;
1082
+ } | undefined;
1083
+ rubric?: string | undefined;
1084
+ pass_when?: string | undefined;
1085
+ model?: string | undefined;
1086
+ }>, "many">>;
1087
+ eval_policy: z.ZodOptional<z.ZodEnum<["all_pass", "any_pass", "weighted"]>>;
1088
+ judge_model: z.ZodOptional<z.ZodString>;
845
1089
  requires: z.ZodOptional<z.ZodEffects<z.ZodObject<{
846
1090
  output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
847
1091
  output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
@@ -987,18 +1231,27 @@ export declare const nodeZ: z.ZodObject<{
987
1231
  })[];
988
1232
  only?: boolean | undefined;
989
1233
  } | undefined;
990
- verify?: {
991
- any_tool_called?: string[] | undefined;
992
- all_tools_called?: string[] | undefined;
993
- no_tool_called?: string[] | undefined;
994
- output_required?: string[] | undefined;
995
- output_matches?: {
996
- path: string;
997
- equals?: unknown;
998
- in?: unknown[] | undefined;
999
- matches?: string | undefined;
1000
- }[] | undefined;
1001
- } | undefined;
1234
+ eval?: {
1235
+ name: string;
1236
+ kind: "function" | "value" | "judge";
1237
+ rule?: {
1238
+ any_tool_called?: string[] | undefined;
1239
+ all_tools_called?: string[] | undefined;
1240
+ no_tool_called?: string[] | undefined;
1241
+ output_required?: string[] | undefined;
1242
+ output_matches?: {
1243
+ path: string;
1244
+ equals?: unknown;
1245
+ in?: unknown[] | undefined;
1246
+ matches?: string | undefined;
1247
+ }[] | undefined;
1248
+ } | undefined;
1249
+ rubric?: string | undefined;
1250
+ pass_when?: string | undefined;
1251
+ model?: string | undefined;
1252
+ }[] | undefined;
1253
+ eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
1254
+ judge_model?: string | undefined;
1002
1255
  requires?: {
1003
1256
  output_required?: string[] | undefined;
1004
1257
  output_matches?: {
@@ -1066,18 +1319,27 @@ export declare const nodeZ: z.ZodObject<{
1066
1319
  })[];
1067
1320
  only?: boolean | undefined;
1068
1321
  } | undefined;
1069
- verify?: {
1070
- any_tool_called?: string[] | undefined;
1071
- all_tools_called?: string[] | undefined;
1072
- no_tool_called?: string[] | undefined;
1073
- output_required?: string[] | undefined;
1074
- output_matches?: {
1075
- path: string;
1076
- equals?: unknown;
1077
- in?: unknown[] | undefined;
1078
- matches?: string | undefined;
1079
- }[] | undefined;
1080
- } | undefined;
1322
+ eval?: {
1323
+ name: string;
1324
+ kind: "function" | "value" | "judge";
1325
+ rule?: {
1326
+ any_tool_called?: string[] | undefined;
1327
+ all_tools_called?: string[] | undefined;
1328
+ no_tool_called?: string[] | undefined;
1329
+ output_required?: string[] | undefined;
1330
+ output_matches?: {
1331
+ path: string;
1332
+ equals?: unknown;
1333
+ in?: unknown[] | undefined;
1334
+ matches?: string | undefined;
1335
+ }[] | undefined;
1336
+ } | undefined;
1337
+ rubric?: string | undefined;
1338
+ pass_when?: string | undefined;
1339
+ model?: string | undefined;
1340
+ }[] | undefined;
1341
+ eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
1342
+ judge_model?: string | undefined;
1081
1343
  requires?: {
1082
1344
  output_required?: string[] | undefined;
1083
1345
  output_matches?: {
@@ -1276,82 +1538,163 @@ export declare const workflowZ: z.ZodObject<{
1276
1538
  })[];
1277
1539
  only?: boolean | undefined;
1278
1540
  }>]>>;
1279
- verify: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1280
- any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1281
- all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1282
- no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1283
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1284
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1285
- path: z.ZodString;
1286
- equals: z.ZodOptional<z.ZodUnknown>;
1287
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1288
- matches: z.ZodOptional<z.ZodString>;
1541
+ eval: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1542
+ name: z.ZodString;
1543
+ kind: z.ZodEnum<["value", "function", "judge"]>;
1544
+ rule: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1545
+ any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1546
+ all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1547
+ no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1548
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1549
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1550
+ path: z.ZodString;
1551
+ equals: z.ZodOptional<z.ZodUnknown>;
1552
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1553
+ matches: z.ZodOptional<z.ZodString>;
1554
+ }, "strict", z.ZodTypeAny, {
1555
+ path: string;
1556
+ equals?: unknown;
1557
+ in?: unknown[] | undefined;
1558
+ matches?: string | undefined;
1559
+ }, {
1560
+ path: string;
1561
+ equals?: unknown;
1562
+ in?: unknown[] | undefined;
1563
+ matches?: string | undefined;
1564
+ }>, {
1565
+ path: string;
1566
+ equals?: unknown;
1567
+ in?: unknown[] | undefined;
1568
+ matches?: string | undefined;
1569
+ }, {
1570
+ path: string;
1571
+ equals?: unknown;
1572
+ in?: unknown[] | undefined;
1573
+ matches?: string | undefined;
1574
+ }>, "many">>;
1289
1575
  }, "strict", z.ZodTypeAny, {
1290
- path: string;
1291
- equals?: unknown;
1292
- in?: unknown[] | undefined;
1293
- matches?: string | undefined;
1576
+ any_tool_called?: string[] | undefined;
1577
+ all_tools_called?: string[] | undefined;
1578
+ no_tool_called?: string[] | undefined;
1579
+ output_required?: string[] | undefined;
1580
+ output_matches?: {
1581
+ path: string;
1582
+ equals?: unknown;
1583
+ in?: unknown[] | undefined;
1584
+ matches?: string | undefined;
1585
+ }[] | undefined;
1294
1586
  }, {
1295
- path: string;
1296
- equals?: unknown;
1297
- in?: unknown[] | undefined;
1298
- matches?: string | undefined;
1587
+ any_tool_called?: string[] | undefined;
1588
+ all_tools_called?: string[] | undefined;
1589
+ no_tool_called?: string[] | undefined;
1590
+ output_required?: string[] | undefined;
1591
+ output_matches?: {
1592
+ path: string;
1593
+ equals?: unknown;
1594
+ in?: unknown[] | undefined;
1595
+ matches?: string | undefined;
1596
+ }[] | undefined;
1299
1597
  }>, {
1300
- path: string;
1301
- equals?: unknown;
1302
- in?: unknown[] | undefined;
1303
- matches?: string | undefined;
1598
+ any_tool_called?: string[] | undefined;
1599
+ all_tools_called?: string[] | undefined;
1600
+ no_tool_called?: string[] | undefined;
1601
+ output_required?: string[] | undefined;
1602
+ output_matches?: {
1603
+ path: string;
1604
+ equals?: unknown;
1605
+ in?: unknown[] | undefined;
1606
+ matches?: string | undefined;
1607
+ }[] | undefined;
1304
1608
  }, {
1305
- path: string;
1306
- equals?: unknown;
1307
- in?: unknown[] | undefined;
1308
- matches?: string | undefined;
1309
- }>, "many">>;
1609
+ any_tool_called?: string[] | undefined;
1610
+ all_tools_called?: string[] | undefined;
1611
+ no_tool_called?: string[] | undefined;
1612
+ output_required?: string[] | undefined;
1613
+ output_matches?: {
1614
+ path: string;
1615
+ equals?: unknown;
1616
+ in?: unknown[] | undefined;
1617
+ matches?: string | undefined;
1618
+ }[] | undefined;
1619
+ }>>;
1620
+ rubric: z.ZodOptional<z.ZodString>;
1621
+ pass_when: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1622
+ model: z.ZodOptional<z.ZodString>;
1310
1623
  }, "strict", z.ZodTypeAny, {
1311
- any_tool_called?: string[] | undefined;
1312
- all_tools_called?: string[] | undefined;
1313
- no_tool_called?: string[] | undefined;
1314
- output_required?: string[] | undefined;
1315
- output_matches?: {
1316
- path: string;
1317
- equals?: unknown;
1318
- in?: unknown[] | undefined;
1319
- matches?: string | undefined;
1320
- }[] | undefined;
1624
+ name: string;
1625
+ kind: "function" | "value" | "judge";
1626
+ rule?: {
1627
+ any_tool_called?: string[] | undefined;
1628
+ all_tools_called?: string[] | undefined;
1629
+ no_tool_called?: string[] | undefined;
1630
+ output_required?: string[] | undefined;
1631
+ output_matches?: {
1632
+ path: string;
1633
+ equals?: unknown;
1634
+ in?: unknown[] | undefined;
1635
+ matches?: string | undefined;
1636
+ }[] | undefined;
1637
+ } | undefined;
1638
+ rubric?: string | undefined;
1639
+ pass_when?: string | undefined;
1640
+ model?: string | undefined;
1321
1641
  }, {
1322
- any_tool_called?: string[] | undefined;
1323
- all_tools_called?: string[] | undefined;
1324
- no_tool_called?: string[] | undefined;
1325
- output_required?: string[] | undefined;
1326
- output_matches?: {
1327
- path: string;
1328
- equals?: unknown;
1329
- in?: unknown[] | undefined;
1330
- matches?: string | undefined;
1331
- }[] | undefined;
1642
+ name: string;
1643
+ kind: "function" | "value" | "judge";
1644
+ rule?: {
1645
+ any_tool_called?: string[] | undefined;
1646
+ all_tools_called?: string[] | undefined;
1647
+ no_tool_called?: string[] | undefined;
1648
+ output_required?: string[] | undefined;
1649
+ output_matches?: {
1650
+ path: string;
1651
+ equals?: unknown;
1652
+ in?: unknown[] | undefined;
1653
+ matches?: string | undefined;
1654
+ }[] | undefined;
1655
+ } | undefined;
1656
+ rubric?: string | undefined;
1657
+ pass_when?: string | undefined;
1658
+ model?: string | undefined;
1332
1659
  }>, {
1333
- any_tool_called?: string[] | undefined;
1334
- all_tools_called?: string[] | undefined;
1335
- no_tool_called?: string[] | undefined;
1336
- output_required?: string[] | undefined;
1337
- output_matches?: {
1338
- path: string;
1339
- equals?: unknown;
1340
- in?: unknown[] | undefined;
1341
- matches?: string | undefined;
1342
- }[] | undefined;
1660
+ name: string;
1661
+ kind: "function" | "value" | "judge";
1662
+ rule?: {
1663
+ any_tool_called?: string[] | undefined;
1664
+ all_tools_called?: string[] | undefined;
1665
+ no_tool_called?: string[] | undefined;
1666
+ output_required?: string[] | undefined;
1667
+ output_matches?: {
1668
+ path: string;
1669
+ equals?: unknown;
1670
+ in?: unknown[] | undefined;
1671
+ matches?: string | undefined;
1672
+ }[] | undefined;
1673
+ } | undefined;
1674
+ rubric?: string | undefined;
1675
+ pass_when?: string | undefined;
1676
+ model?: string | undefined;
1343
1677
  }, {
1344
- any_tool_called?: string[] | undefined;
1345
- all_tools_called?: string[] | undefined;
1346
- no_tool_called?: string[] | undefined;
1347
- output_required?: string[] | undefined;
1348
- output_matches?: {
1349
- path: string;
1350
- equals?: unknown;
1351
- in?: unknown[] | undefined;
1352
- matches?: string | undefined;
1353
- }[] | undefined;
1354
- }>>;
1678
+ name: string;
1679
+ kind: "function" | "value" | "judge";
1680
+ rule?: {
1681
+ any_tool_called?: string[] | undefined;
1682
+ all_tools_called?: string[] | undefined;
1683
+ no_tool_called?: string[] | undefined;
1684
+ output_required?: string[] | undefined;
1685
+ output_matches?: {
1686
+ path: string;
1687
+ equals?: unknown;
1688
+ in?: unknown[] | undefined;
1689
+ matches?: string | undefined;
1690
+ }[] | undefined;
1691
+ } | undefined;
1692
+ rubric?: string | undefined;
1693
+ pass_when?: string | undefined;
1694
+ model?: string | undefined;
1695
+ }>, "many">>;
1696
+ eval_policy: z.ZodOptional<z.ZodEnum<["all_pass", "any_pass", "weighted"]>>;
1697
+ judge_model: z.ZodOptional<z.ZodString>;
1355
1698
  requires: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1356
1699
  output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1357
1700
  output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
@@ -1497,18 +1840,27 @@ export declare const workflowZ: z.ZodObject<{
1497
1840
  })[];
1498
1841
  only?: boolean | undefined;
1499
1842
  } | undefined;
1500
- verify?: {
1501
- any_tool_called?: string[] | undefined;
1502
- all_tools_called?: string[] | undefined;
1503
- no_tool_called?: string[] | undefined;
1504
- output_required?: string[] | undefined;
1505
- output_matches?: {
1506
- path: string;
1507
- equals?: unknown;
1508
- in?: unknown[] | undefined;
1509
- matches?: string | undefined;
1510
- }[] | undefined;
1511
- } | undefined;
1843
+ eval?: {
1844
+ name: string;
1845
+ kind: "function" | "value" | "judge";
1846
+ rule?: {
1847
+ any_tool_called?: string[] | undefined;
1848
+ all_tools_called?: string[] | undefined;
1849
+ no_tool_called?: string[] | undefined;
1850
+ output_required?: string[] | undefined;
1851
+ output_matches?: {
1852
+ path: string;
1853
+ equals?: unknown;
1854
+ in?: unknown[] | undefined;
1855
+ matches?: string | undefined;
1856
+ }[] | undefined;
1857
+ } | undefined;
1858
+ rubric?: string | undefined;
1859
+ pass_when?: string | undefined;
1860
+ model?: string | undefined;
1861
+ }[] | undefined;
1862
+ eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
1863
+ judge_model?: string | undefined;
1512
1864
  requires?: {
1513
1865
  output_required?: string[] | undefined;
1514
1866
  output_matches?: {
@@ -1576,18 +1928,27 @@ export declare const workflowZ: z.ZodObject<{
1576
1928
  })[];
1577
1929
  only?: boolean | undefined;
1578
1930
  } | undefined;
1579
- verify?: {
1580
- any_tool_called?: string[] | undefined;
1581
- all_tools_called?: string[] | undefined;
1582
- no_tool_called?: string[] | undefined;
1583
- output_required?: string[] | undefined;
1584
- output_matches?: {
1585
- path: string;
1586
- equals?: unknown;
1587
- in?: unknown[] | undefined;
1588
- matches?: string | undefined;
1589
- }[] | undefined;
1590
- } | undefined;
1931
+ eval?: {
1932
+ name: string;
1933
+ kind: "function" | "value" | "judge";
1934
+ rule?: {
1935
+ any_tool_called?: string[] | undefined;
1936
+ all_tools_called?: string[] | undefined;
1937
+ no_tool_called?: string[] | undefined;
1938
+ output_required?: string[] | undefined;
1939
+ output_matches?: {
1940
+ path: string;
1941
+ equals?: unknown;
1942
+ in?: unknown[] | undefined;
1943
+ matches?: string | undefined;
1944
+ }[] | undefined;
1945
+ } | undefined;
1946
+ rubric?: string | undefined;
1947
+ pass_when?: string | undefined;
1948
+ model?: string | undefined;
1949
+ }[] | undefined;
1950
+ eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
1951
+ judge_model?: string | undefined;
1591
1952
  requires?: {
1592
1953
  output_required?: string[] | undefined;
1593
1954
  output_matches?: {
@@ -1757,6 +2118,8 @@ export declare const workflowZ: z.ZodObject<{
1757
2118
  url: string;
1758
2119
  type?: string | undefined;
1759
2120
  }>]>, "many">>;
2121
+ judge_model: z.ZodOptional<z.ZodString>;
2122
+ judge_budget: z.ZodOptional<z.ZodNumber>;
1760
2123
  }, "strip", z.ZodTypeAny, {
1761
2124
  id: string;
1762
2125
  name: string;
@@ -1823,18 +2186,27 @@ export declare const workflowZ: z.ZodObject<{
1823
2186
  })[];
1824
2187
  only?: boolean | undefined;
1825
2188
  } | undefined;
1826
- verify?: {
1827
- any_tool_called?: string[] | undefined;
1828
- all_tools_called?: string[] | undefined;
1829
- no_tool_called?: string[] | undefined;
1830
- output_required?: string[] | undefined;
1831
- output_matches?: {
1832
- path: string;
1833
- equals?: unknown;
1834
- in?: unknown[] | undefined;
1835
- matches?: string | undefined;
1836
- }[] | undefined;
1837
- } | undefined;
2189
+ eval?: {
2190
+ name: string;
2191
+ kind: "function" | "value" | "judge";
2192
+ rule?: {
2193
+ any_tool_called?: string[] | undefined;
2194
+ all_tools_called?: string[] | undefined;
2195
+ no_tool_called?: string[] | undefined;
2196
+ output_required?: string[] | undefined;
2197
+ output_matches?: {
2198
+ path: string;
2199
+ equals?: unknown;
2200
+ in?: unknown[] | undefined;
2201
+ matches?: string | undefined;
2202
+ }[] | undefined;
2203
+ } | undefined;
2204
+ rubric?: string | undefined;
2205
+ pass_when?: string | undefined;
2206
+ model?: string | undefined;
2207
+ }[] | undefined;
2208
+ eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
2209
+ judge_model?: string | undefined;
1838
2210
  requires?: {
1839
2211
  output_required?: string[] | undefined;
1840
2212
  output_matches?: {
@@ -1877,6 +2249,8 @@ export declare const workflowZ: z.ZodObject<{
1877
2249
  url: string;
1878
2250
  type?: string | undefined;
1879
2251
  })[] | undefined;
2252
+ judge_model?: string | undefined;
2253
+ judge_budget?: number | undefined;
1880
2254
  }, {
1881
2255
  id: string;
1882
2256
  name: string;
@@ -1929,18 +2303,27 @@ export declare const workflowZ: z.ZodObject<{
1929
2303
  })[];
1930
2304
  only?: boolean | undefined;
1931
2305
  } | undefined;
1932
- verify?: {
1933
- any_tool_called?: string[] | undefined;
1934
- all_tools_called?: string[] | undefined;
1935
- no_tool_called?: string[] | undefined;
1936
- output_required?: string[] | undefined;
1937
- output_matches?: {
1938
- path: string;
1939
- equals?: unknown;
1940
- in?: unknown[] | undefined;
1941
- matches?: string | undefined;
1942
- }[] | undefined;
1943
- } | undefined;
2306
+ eval?: {
2307
+ name: string;
2308
+ kind: "function" | "value" | "judge";
2309
+ rule?: {
2310
+ any_tool_called?: string[] | undefined;
2311
+ all_tools_called?: string[] | undefined;
2312
+ no_tool_called?: string[] | undefined;
2313
+ output_required?: string[] | undefined;
2314
+ output_matches?: {
2315
+ path: string;
2316
+ equals?: unknown;
2317
+ in?: unknown[] | undefined;
2318
+ matches?: string | undefined;
2319
+ }[] | undefined;
2320
+ } | undefined;
2321
+ rubric?: string | undefined;
2322
+ pass_when?: string | undefined;
2323
+ model?: string | undefined;
2324
+ }[] | undefined;
2325
+ eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
2326
+ judge_model?: string | undefined;
1944
2327
  requires?: {
1945
2328
  output_required?: string[] | undefined;
1946
2329
  output_matches?: {
@@ -1997,6 +2380,8 @@ export declare const workflowZ: z.ZodObject<{
1997
2380
  url: string;
1998
2381
  type?: string | undefined;
1999
2382
  })[] | undefined;
2383
+ judge_model?: string | undefined;
2384
+ judge_budget?: number | undefined;
2000
2385
  }>;
2001
2386
  /** Parse + validate a raw object as a Workflow. Throws on invalid input. */
2002
2387
  export declare function parseWorkflow(raw: unknown): {
@@ -2065,18 +2450,27 @@ export declare function parseWorkflow(raw: unknown): {
2065
2450
  })[];
2066
2451
  only?: boolean | undefined;
2067
2452
  } | undefined;
2068
- verify?: {
2069
- any_tool_called?: string[] | undefined;
2070
- all_tools_called?: string[] | undefined;
2071
- no_tool_called?: string[] | undefined;
2072
- output_required?: string[] | undefined;
2073
- output_matches?: {
2074
- path: string;
2075
- equals?: unknown;
2076
- in?: unknown[] | undefined;
2077
- matches?: string | undefined;
2078
- }[] | undefined;
2079
- } | undefined;
2453
+ eval?: {
2454
+ name: string;
2455
+ kind: "function" | "value" | "judge";
2456
+ rule?: {
2457
+ any_tool_called?: string[] | undefined;
2458
+ all_tools_called?: string[] | undefined;
2459
+ no_tool_called?: string[] | undefined;
2460
+ output_required?: string[] | undefined;
2461
+ output_matches?: {
2462
+ path: string;
2463
+ equals?: unknown;
2464
+ in?: unknown[] | undefined;
2465
+ matches?: string | undefined;
2466
+ }[] | undefined;
2467
+ } | undefined;
2468
+ rubric?: string | undefined;
2469
+ pass_when?: string | undefined;
2470
+ model?: string | undefined;
2471
+ }[] | undefined;
2472
+ eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
2473
+ judge_model?: string | undefined;
2080
2474
  requires?: {
2081
2475
  output_required?: string[] | undefined;
2082
2476
  output_matches?: {
@@ -2119,6 +2513,8 @@ export declare function parseWorkflow(raw: unknown): {
2119
2513
  url: string;
2120
2514
  type?: string | undefined;
2121
2515
  })[] | undefined;
2516
+ judge_model?: string | undefined;
2517
+ judge_budget?: number | undefined;
2122
2518
  };
2123
2519
  export interface WorkflowError {
2124
2520
  code: "MISSING_ENTRY" | "UNKNOWN_EDGE_SOURCE" | "UNKNOWN_EDGE_TARGET" | "UNREACHABLE_NODE" | "UNKNOWN_SKILL" | "SELF_LOOP" | "UNBOUNDED_CYCLE" | "INVALID_INLINE_SKILL";
@@ -2211,6 +2607,134 @@ export declare const workflowJsonSchema: {
2211
2607
  };
2212
2608
  }];
2213
2609
  };
2610
+ readonly OutputMatch: {
2611
+ readonly type: "object";
2612
+ readonly required: readonly ["path"];
2613
+ readonly additionalProperties: false;
2614
+ readonly properties: {
2615
+ readonly path: {
2616
+ readonly type: "string";
2617
+ readonly minLength: 1;
2618
+ };
2619
+ readonly equals: {};
2620
+ readonly in: {
2621
+ readonly type: "array";
2622
+ };
2623
+ readonly matches: {
2624
+ readonly type: "string";
2625
+ readonly minLength: 1;
2626
+ };
2627
+ };
2628
+ readonly oneOf: readonly [{
2629
+ readonly required: readonly ["equals"];
2630
+ }, {
2631
+ readonly required: readonly ["in"];
2632
+ }, {
2633
+ readonly required: readonly ["matches"];
2634
+ }];
2635
+ };
2636
+ readonly Evaluator: {
2637
+ readonly type: "object";
2638
+ readonly required: readonly ["name", "kind"];
2639
+ readonly additionalProperties: false;
2640
+ readonly properties: {
2641
+ readonly name: {
2642
+ readonly type: "string";
2643
+ readonly minLength: 1;
2644
+ readonly description: "Stable identifier for this evaluator. Used in EvalResult and retry preambles.";
2645
+ };
2646
+ readonly kind: {
2647
+ readonly type: "string";
2648
+ readonly enum: readonly ["value", "function", "judge"];
2649
+ };
2650
+ readonly rule: {
2651
+ readonly type: "object";
2652
+ readonly description: "Required for value and function kinds. Shape depends on kind.";
2653
+ readonly additionalProperties: false;
2654
+ readonly minProperties: 1;
2655
+ readonly properties: {
2656
+ readonly any_tool_called: {
2657
+ readonly type: "array";
2658
+ readonly items: {
2659
+ readonly type: "string";
2660
+ readonly minLength: 1;
2661
+ };
2662
+ readonly minItems: 1;
2663
+ };
2664
+ readonly all_tools_called: {
2665
+ readonly type: "array";
2666
+ readonly items: {
2667
+ readonly type: "string";
2668
+ readonly minLength: 1;
2669
+ };
2670
+ readonly minItems: 1;
2671
+ };
2672
+ readonly no_tool_called: {
2673
+ readonly type: "array";
2674
+ readonly items: {
2675
+ readonly type: "string";
2676
+ readonly minLength: 1;
2677
+ };
2678
+ readonly minItems: 1;
2679
+ };
2680
+ readonly output_required: {
2681
+ readonly type: "array";
2682
+ readonly items: {
2683
+ readonly type: "string";
2684
+ readonly minLength: 1;
2685
+ };
2686
+ readonly minItems: 1;
2687
+ };
2688
+ readonly output_matches: {
2689
+ readonly type: "array";
2690
+ readonly items: {
2691
+ readonly $ref: "#/$defs/OutputMatch";
2692
+ };
2693
+ readonly minItems: 1;
2694
+ };
2695
+ };
2696
+ };
2697
+ readonly rubric: {
2698
+ readonly type: "string";
2699
+ readonly minLength: 1;
2700
+ readonly description: "Required for judge kind. Natural-language criterion the judge model evaluates.";
2701
+ };
2702
+ readonly pass_when: {
2703
+ readonly type: "string";
2704
+ readonly minLength: 1;
2705
+ readonly default: "yes";
2706
+ readonly description: "judge only. Verdict token that indicates pass. Default 'yes'.";
2707
+ };
2708
+ readonly model: {
2709
+ readonly type: "string";
2710
+ readonly minLength: 1;
2711
+ readonly description: "judge only. Override the judge model for this evaluator.";
2712
+ };
2713
+ };
2714
+ readonly allOf: readonly [{
2715
+ readonly if: {
2716
+ readonly properties: {
2717
+ readonly kind: {
2718
+ readonly enum: readonly ["value", "function"];
2719
+ };
2720
+ };
2721
+ };
2722
+ readonly then: {
2723
+ readonly required: readonly ["rule"];
2724
+ };
2725
+ }, {
2726
+ readonly if: {
2727
+ readonly properties: {
2728
+ readonly kind: {
2729
+ readonly const: "judge";
2730
+ };
2731
+ };
2732
+ };
2733
+ readonly then: {
2734
+ readonly required: readonly ["rubric"];
2735
+ };
2736
+ }];
2737
+ };
2214
2738
  };
2215
2739
  readonly properties: {
2216
2740
  readonly id: {
@@ -2243,6 +2767,18 @@ export declare const workflowJsonSchema: {
2243
2767
  };
2244
2768
  readonly description: "Background knowledge prepended to every node's instruction.";
2245
2769
  };
2770
+ readonly judge_model: {
2771
+ readonly type: "string";
2772
+ readonly minLength: 1;
2773
+ readonly default: "claude-haiku-4-5";
2774
+ readonly description: "Default model for judge evaluators across the workflow. Overridable per-node and per-evaluator.";
2775
+ };
2776
+ readonly judge_budget: {
2777
+ readonly type: "integer";
2778
+ readonly minimum: 0;
2779
+ readonly default: 50;
2780
+ readonly description: "Soft cap on expected judge calls per workflow run. Executor warns at load time if exceeded; not a hard runtime cap in v1.";
2781
+ };
2246
2782
  readonly nodes: {
2247
2783
  readonly type: "object";
2248
2784
  readonly additionalProperties: {
@@ -2282,75 +2818,24 @@ export declare const workflowJsonSchema: {
2282
2818
  readonly $ref: "#/$defs/NodeSources";
2283
2819
  readonly description: "Per-node context. Additive by default; set { only: true } to block cascade.";
2284
2820
  };
2285
- readonly verify: {
2286
- readonly type: "object";
2287
- readonly description: "Machine-checked post-conditions evaluated after the LLM finishes.";
2288
- readonly additionalProperties: false;
2289
- readonly minProperties: 1;
2290
- readonly properties: {
2291
- readonly any_tool_called: {
2292
- readonly type: "array";
2293
- readonly items: {
2294
- readonly type: "string";
2295
- readonly minLength: 1;
2296
- };
2297
- readonly minItems: 1;
2298
- };
2299
- readonly all_tools_called: {
2300
- readonly type: "array";
2301
- readonly items: {
2302
- readonly type: "string";
2303
- readonly minLength: 1;
2304
- };
2305
- readonly minItems: 1;
2306
- };
2307
- readonly no_tool_called: {
2308
- readonly type: "array";
2309
- readonly items: {
2310
- readonly type: "string";
2311
- readonly minLength: 1;
2312
- };
2313
- readonly minItems: 1;
2314
- };
2315
- readonly output_required: {
2316
- readonly type: "array";
2317
- readonly items: {
2318
- readonly type: "string";
2319
- readonly minLength: 1;
2320
- };
2321
- readonly minItems: 1;
2322
- };
2323
- readonly output_matches: {
2324
- readonly type: "array";
2325
- readonly items: {
2326
- readonly type: "object";
2327
- readonly required: readonly ["path"];
2328
- readonly additionalProperties: false;
2329
- readonly properties: {
2330
- readonly path: {
2331
- readonly type: "string";
2332
- readonly minLength: 1;
2333
- };
2334
- readonly equals: {};
2335
- readonly in: {
2336
- readonly type: "array";
2337
- };
2338
- readonly matches: {
2339
- readonly type: "string";
2340
- readonly minLength: 1;
2341
- };
2342
- };
2343
- readonly oneOf: readonly [{
2344
- readonly required: readonly ["equals"];
2345
- }, {
2346
- readonly required: readonly ["in"];
2347
- }, {
2348
- readonly required: readonly ["matches"];
2349
- }];
2350
- };
2351
- readonly minItems: 1;
2352
- };
2821
+ readonly eval: {
2822
+ readonly type: "array";
2823
+ readonly description: "Named evaluators (value, function, judge) run after the LLM finishes the node.";
2824
+ readonly items: {
2825
+ readonly $ref: "#/$defs/Evaluator";
2353
2826
  };
2827
+ readonly minItems: 1;
2828
+ };
2829
+ readonly eval_policy: {
2830
+ readonly type: "string";
2831
+ readonly enum: readonly ["all_pass", "any_pass", "weighted"];
2832
+ readonly default: "all_pass";
2833
+ readonly description: "How evaluator results aggregate. v1 implements all_pass; the others are reserved.";
2834
+ };
2835
+ readonly judge_model: {
2836
+ readonly type: "string";
2837
+ readonly minLength: 1;
2838
+ readonly description: "Default model for judge evaluators on this node. Overrides workflow-level judge_model.";
2354
2839
  };
2355
2840
  readonly requires: {
2356
2841
  readonly type: "object";
@@ -2373,30 +2858,7 @@ export declare const workflowJsonSchema: {
2373
2858
  readonly output_matches: {
2374
2859
  readonly type: "array";
2375
2860
  readonly items: {
2376
- readonly type: "object";
2377
- readonly required: readonly ["path"];
2378
- readonly additionalProperties: false;
2379
- readonly properties: {
2380
- readonly path: {
2381
- readonly type: "string";
2382
- readonly minLength: 1;
2383
- };
2384
- readonly equals: {};
2385
- readonly in: {
2386
- readonly type: "array";
2387
- };
2388
- readonly matches: {
2389
- readonly type: "string";
2390
- readonly minLength: 1;
2391
- };
2392
- };
2393
- readonly oneOf: readonly [{
2394
- readonly required: readonly ["equals"];
2395
- }, {
2396
- readonly required: readonly ["in"];
2397
- }, {
2398
- readonly required: readonly ["matches"];
2399
- }];
2861
+ readonly $ref: "#/$defs/OutputMatch";
2400
2862
  };
2401
2863
  readonly minItems: 1;
2402
2864
  };
@@ -2408,7 +2870,7 @@ export declare const workflowJsonSchema: {
2408
2870
  };
2409
2871
  readonly retry: {
2410
2872
  readonly type: "object";
2411
- readonly description: "Node-local retry on verify failure.";
2873
+ readonly description: "Node-local retry on eval failure.";
2412
2874
  readonly required: readonly ["max"];
2413
2875
  readonly additionalProperties: false;
2414
2876
  readonly properties: {
@@ -2463,12 +2925,12 @@ export declare const workflowJsonSchema: {
2463
2925
  };
2464
2926
  readonly when: {
2465
2927
  readonly type: "string";
2466
- readonly description: "Natural language condition — Claude evaluates at runtime";
2928
+ readonly description: "Natural language condition. Claude evaluates at runtime.";
2467
2929
  };
2468
2930
  readonly max_iterations: {
2469
2931
  readonly type: "integer";
2470
2932
  readonly minimum: 1;
2471
- readonly description: "Max times this edge can be followed — enables controlled retry loops";
2933
+ readonly description: "Max times this edge can be followed. Enables controlled retry loops.";
2472
2934
  };
2473
2935
  };
2474
2936
  };