@gt-fe/eap-sdk 0.1.13 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +452 -376
- package/dist/lockfile/resolve-dependencies.d.ts +1 -0
- package/dist/lockfile/resolve-dependencies.d.ts.map +1 -1
- package/dist/lockfile/resolve-dependencies.js +3 -0
- package/dist/lockfile/resolve-dependencies.js.map +1 -1
- package/dist/materialization/copy-resource-directory.d.ts +1 -0
- package/dist/materialization/copy-resource-directory.d.ts.map +1 -1
- package/dist/materialization/copy-resource-directory.js +38 -1
- package/dist/materialization/copy-resource-directory.js.map +1 -1
- package/dist/materialization/index.d.ts +1 -1
- package/dist/materialization/index.d.ts.map +1 -1
- package/dist/materialization/index.js +1 -1
- package/dist/materialization/index.js.map +1 -1
- package/dist/materialization/load-agent-runtime.d.ts +19 -0
- package/dist/materialization/load-agent-runtime.d.ts.map +1 -0
- package/dist/materialization/load-agent-runtime.js +128 -0
- package/dist/materialization/load-agent-runtime.js.map +1 -0
- package/dist/materialization/prepare-agent-runtime.d.ts +6 -0
- package/dist/materialization/prepare-agent-runtime.d.ts.map +1 -1
- package/dist/materialization/prepare-agent-runtime.js +108 -46
- package/dist/materialization/prepare-agent-runtime.js.map +1 -1
- package/dist/materialization/types.d.ts +0 -2
- package/dist/materialization/types.d.ts.map +1 -1
- package/dist/packaging/package-agent-project.d.ts.map +1 -1
- package/dist/packaging/package-agent-project.js +2 -4
- package/dist/packaging/package-agent-project.js.map +1 -1
- package/dist/packaging/read-package.d.ts.map +1 -1
- package/dist/packaging/read-package.js +20 -1
- package/dist/packaging/read-package.js.map +1 -1
- package/dist/platform/client.d.ts.map +1 -1
- package/dist/platform/client.js +13 -2
- package/dist/platform/client.js.map +1 -1
- package/dist/platform/types.d.ts +2 -0
- package/dist/platform/types.d.ts.map +1 -1
- package/dist/project/agent-project.d.ts.map +1 -1
- package/dist/project/agent-project.js +10 -0
- package/dist/project/agent-project.js.map +1 -1
- package/dist/resources/configured-local-resources.d.ts +15 -0
- package/dist/resources/configured-local-resources.d.ts.map +1 -0
- package/dist/resources/configured-local-resources.js +75 -0
- package/dist/resources/configured-local-resources.js.map +1 -0
- package/dist/resources/install-agent-dependencies.d.ts.map +1 -1
- package/dist/resources/install-agent-dependencies.js +7 -2
- package/dist/resources/install-agent-dependencies.js.map +1 -1
- package/dist/schema/agent/manifest.d.ts +832 -197
- package/dist/schema/agent/manifest.d.ts.map +1 -1
- package/dist/schema/graph.d.ts +1295 -403
- package/dist/schema/graph.d.ts.map +1 -1
- package/dist/schema/graph.js +29 -16
- package/dist/schema/graph.js.map +1 -1
- package/dist/schema/lockfile.d.ts +30 -30
- package/dist/schema/project-config.d.ts +6 -0
- package/dist/schema/project-config.d.ts.map +1 -1
- package/dist/schema/project-config.js +4 -0
- package/dist/schema/project-config.js.map +1 -1
- package/dist/service/create-agent.d.ts +8 -0
- package/dist/service/create-agent.d.ts.map +1 -0
- package/dist/service/create-agent.js +338 -0
- package/dist/service/create-agent.js.map +1 -0
- package/dist/service/events.d.ts +14 -45
- package/dist/service/events.d.ts.map +1 -1
- package/dist/service/events.js +46 -1
- package/dist/service/events.js.map +1 -1
- package/dist/service/index.d.ts +5 -2
- package/dist/service/index.d.ts.map +1 -1
- package/dist/service/index.js +4 -1
- package/dist/service/index.js.map +1 -1
- package/dist/service/messages.d.ts +13 -0
- package/dist/service/messages.d.ts.map +1 -0
- package/dist/service/messages.js +24 -0
- package/dist/service/messages.js.map +1 -0
- package/dist/service/resources.d.ts +86 -0
- package/dist/service/resources.d.ts.map +1 -0
- package/dist/service/resources.js +26 -0
- package/dist/service/resources.js.map +1 -0
- package/dist/service/runtime-adapter.d.ts.map +1 -1
- package/dist/service/runtime-adapter.js +26 -2
- package/dist/service/runtime-adapter.js.map +1 -1
- package/dist/service/sessions.d.ts +33 -0
- package/dist/service/sessions.d.ts.map +1 -0
- package/dist/service/sessions.js +67 -0
- package/dist/service/sessions.js.map +1 -0
- package/dist/service/types.d.ts +121 -32
- package/dist/service/types.d.ts.map +1 -1
- package/dist/validation/validate-agent-project.d.ts.map +1 -1
- package/dist/validation/validate-agent-project.js +31 -17
- package/dist/validation/validate-agent-project.js.map +1 -1
- package/package.json +4 -4
- package/dist/materialization/sync-author-resources.d.ts +0 -21
- package/dist/materialization/sync-author-resources.d.ts.map +0 -1
- package/dist/materialization/sync-author-resources.js +0 -98
- package/dist/materialization/sync-author-resources.js.map +0 -1
- package/dist/service/create-agent-service.d.ts +0 -12
- package/dist/service/create-agent-service.d.ts.map +0 -1
- package/dist/service/create-agent-service.js +0 -283
- package/dist/service/create-agent-service.js.map +0 -1
- package/dist/service/http-server.d.ts +0 -4
- package/dist/service/http-server.d.ts.map +0 -1
- package/dist/service/http-server.js +0 -89
- package/dist/service/http-server.js.map +0 -1
package/dist/schema/graph.d.ts
CHANGED
|
@@ -582,19 +582,21 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
582
582
|
config: z.ZodObject<{
|
|
583
583
|
tool: z.ZodString;
|
|
584
584
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
585
|
-
}, "
|
|
586
|
-
tool:
|
|
587
|
-
arguments
|
|
588
|
-
}, {
|
|
589
|
-
tool:
|
|
590
|
-
arguments
|
|
591
|
-
}
|
|
585
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
586
|
+
tool: z.ZodString;
|
|
587
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
588
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
589
|
+
tool: z.ZodString;
|
|
590
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
591
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
592
592
|
}, "strict", z.ZodTypeAny, {
|
|
593
593
|
type: "tool";
|
|
594
594
|
id: string;
|
|
595
595
|
config: {
|
|
596
596
|
tool: string;
|
|
597
597
|
arguments?: Record<string, unknown> | undefined;
|
|
598
|
+
} & {
|
|
599
|
+
[k: string]: unknown;
|
|
598
600
|
};
|
|
599
601
|
description?: string | undefined;
|
|
600
602
|
label?: string | undefined;
|
|
@@ -620,6 +622,8 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
620
622
|
config: {
|
|
621
623
|
tool: string;
|
|
622
624
|
arguments?: Record<string, unknown> | undefined;
|
|
625
|
+
} & {
|
|
626
|
+
[k: string]: unknown;
|
|
623
627
|
};
|
|
624
628
|
description?: string | undefined;
|
|
625
629
|
label?: string | undefined;
|
|
@@ -704,17 +708,17 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
704
708
|
conditionFn: z.ZodOptional<z.ZodString>;
|
|
705
709
|
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
706
710
|
fallback: z.ZodOptional<z.ZodString>;
|
|
707
|
-
}, "
|
|
708
|
-
conditionExpr
|
|
709
|
-
conditionFn
|
|
710
|
-
branchValues
|
|
711
|
-
fallback
|
|
712
|
-
}, {
|
|
713
|
-
conditionExpr
|
|
714
|
-
conditionFn
|
|
715
|
-
branchValues
|
|
716
|
-
fallback
|
|
717
|
-
}
|
|
711
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
712
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
713
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
714
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
715
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
716
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
717
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
718
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
719
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
720
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
721
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
718
722
|
}, "strict", z.ZodTypeAny, {
|
|
719
723
|
type: "condition";
|
|
720
724
|
id: string;
|
|
@@ -723,6 +727,8 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
723
727
|
conditionFn?: string | undefined;
|
|
724
728
|
branchValues?: string[] | undefined;
|
|
725
729
|
fallback?: string | undefined;
|
|
730
|
+
} & {
|
|
731
|
+
[k: string]: unknown;
|
|
726
732
|
};
|
|
727
733
|
description?: string | undefined;
|
|
728
734
|
label?: string | undefined;
|
|
@@ -763,12 +769,12 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
763
769
|
question?: string | undefined;
|
|
764
770
|
timeout?: number | undefined;
|
|
765
771
|
} | undefined;
|
|
766
|
-
config?: {
|
|
767
|
-
conditionExpr
|
|
768
|
-
conditionFn
|
|
769
|
-
branchValues
|
|
770
|
-
fallback
|
|
771
|
-
} | undefined;
|
|
772
|
+
config?: z.objectInputType<{
|
|
773
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
774
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
775
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
776
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
777
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
772
778
|
}>, z.ZodObject<{
|
|
773
779
|
id: z.ZodString;
|
|
774
780
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -833,19 +839,21 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
833
839
|
config: z.ZodDefault<z.ZodObject<{
|
|
834
840
|
skillId: z.ZodOptional<z.ZodString>;
|
|
835
841
|
skillCode: z.ZodOptional<z.ZodString>;
|
|
836
|
-
}, "
|
|
837
|
-
skillId
|
|
838
|
-
skillCode
|
|
839
|
-
}, {
|
|
840
|
-
skillId
|
|
841
|
-
skillCode
|
|
842
|
-
}
|
|
842
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
843
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
844
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
845
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
846
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
847
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
848
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
843
849
|
}, "strict", z.ZodTypeAny, {
|
|
844
850
|
type: "subgraph";
|
|
845
851
|
id: string;
|
|
846
852
|
config: {
|
|
847
853
|
skillId?: string | undefined;
|
|
848
854
|
skillCode?: string | undefined;
|
|
855
|
+
} & {
|
|
856
|
+
[k: string]: unknown;
|
|
849
857
|
};
|
|
850
858
|
description?: string | undefined;
|
|
851
859
|
label?: string | undefined;
|
|
@@ -887,10 +895,10 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
887
895
|
question?: string | undefined;
|
|
888
896
|
timeout?: number | undefined;
|
|
889
897
|
} | undefined;
|
|
890
|
-
config?: {
|
|
891
|
-
skillId
|
|
892
|
-
skillCode
|
|
893
|
-
} | undefined;
|
|
898
|
+
config?: z.objectInputType<{
|
|
899
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
900
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
901
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
894
902
|
subgraphId?: string | undefined;
|
|
895
903
|
}>, z.ZodObject<{
|
|
896
904
|
id: z.ZodString;
|
|
@@ -955,19 +963,21 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
955
963
|
config: z.ZodDefault<z.ZodObject<{
|
|
956
964
|
question: z.ZodOptional<z.ZodString>;
|
|
957
965
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
958
|
-
}, "
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
}, {
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
}
|
|
966
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
967
|
+
question: z.ZodOptional<z.ZodString>;
|
|
968
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
969
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
970
|
+
question: z.ZodOptional<z.ZodString>;
|
|
971
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
972
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
965
973
|
}, "strict", z.ZodTypeAny, {
|
|
966
974
|
type: "human";
|
|
967
975
|
id: string;
|
|
968
976
|
config: {
|
|
969
977
|
options?: string[] | undefined;
|
|
970
978
|
question?: string | undefined;
|
|
979
|
+
} & {
|
|
980
|
+
[k: string]: unknown;
|
|
971
981
|
};
|
|
972
982
|
description?: string | undefined;
|
|
973
983
|
label?: string | undefined;
|
|
@@ -1008,10 +1018,10 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1008
1018
|
question?: string | undefined;
|
|
1009
1019
|
timeout?: number | undefined;
|
|
1010
1020
|
} | undefined;
|
|
1011
|
-
config?: {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
} | undefined;
|
|
1021
|
+
config?: z.objectInputType<{
|
|
1022
|
+
question: z.ZodOptional<z.ZodString>;
|
|
1023
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1024
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1015
1025
|
}>, z.ZodObject<{
|
|
1016
1026
|
id: z.ZodString;
|
|
1017
1027
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1071,42 +1081,33 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1071
1081
|
timeout?: number | undefined;
|
|
1072
1082
|
}>>;
|
|
1073
1083
|
} & {
|
|
1074
|
-
type: z.ZodLiteral<"
|
|
1075
|
-
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1084
|
+
type: z.ZodLiteral<"code">;
|
|
1076
1085
|
config: z.ZodDefault<z.ZodObject<{
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
fn?: string | undefined;
|
|
1093
|
-
}[] | undefined;
|
|
1094
|
-
}, {
|
|
1095
|
-
branches?: string[] | undefined;
|
|
1096
|
-
tasks?: {
|
|
1097
|
-
id: string;
|
|
1098
|
-
fn?: string | undefined;
|
|
1099
|
-
}[] | undefined;
|
|
1100
|
-
}>>;
|
|
1086
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
1088
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1089
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
1090
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1091
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1094
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
1095
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1096
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1097
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
1098
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1099
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
1100
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1101
1101
|
}, "strict", z.ZodTypeAny, {
|
|
1102
|
-
type: "
|
|
1102
|
+
type: "code";
|
|
1103
1103
|
id: string;
|
|
1104
1104
|
config: {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1105
|
+
code?: string | undefined;
|
|
1106
|
+
handler?: string | undefined;
|
|
1107
|
+
timeoutMs?: number | undefined;
|
|
1108
|
+
bindSkill?: boolean | undefined;
|
|
1109
|
+
} & {
|
|
1110
|
+
[k: string]: unknown;
|
|
1110
1111
|
};
|
|
1111
1112
|
description?: string | undefined;
|
|
1112
1113
|
label?: string | undefined;
|
|
@@ -1126,9 +1127,8 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1126
1127
|
question?: string | undefined;
|
|
1127
1128
|
timeout?: number | undefined;
|
|
1128
1129
|
} | undefined;
|
|
1129
|
-
branches?: string[] | undefined;
|
|
1130
1130
|
}, {
|
|
1131
|
-
type: "
|
|
1131
|
+
type: "code";
|
|
1132
1132
|
id: string;
|
|
1133
1133
|
description?: string | undefined;
|
|
1134
1134
|
label?: string | undefined;
|
|
@@ -1148,14 +1148,12 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1148
1148
|
question?: string | undefined;
|
|
1149
1149
|
timeout?: number | undefined;
|
|
1150
1150
|
} | undefined;
|
|
1151
|
-
config?: {
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
} | undefined;
|
|
1158
|
-
branches?: string[] | undefined;
|
|
1151
|
+
config?: z.objectInputType<{
|
|
1152
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1153
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
1154
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1155
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
1156
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1159
1157
|
}>, z.ZodObject<{
|
|
1160
1158
|
id: z.ZodString;
|
|
1161
1159
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1215,88 +1213,13 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1215
1213
|
timeout?: number | undefined;
|
|
1216
1214
|
}>>;
|
|
1217
1215
|
} & {
|
|
1218
|
-
type: z.ZodLiteral<"
|
|
1216
|
+
type: z.ZodLiteral<"rag">;
|
|
1219
1217
|
config: z.ZodDefault<z.ZodObject<{
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
code: z.ZodOptional<z.ZodString>;
|
|
1226
|
-
handler: z.ZodOptional<z.ZodString>;
|
|
1227
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1228
|
-
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
1229
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1230
|
-
code: z.ZodOptional<z.ZodString>;
|
|
1231
|
-
handler: z.ZodOptional<z.ZodString>;
|
|
1232
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1233
|
-
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
1234
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
1235
|
-
}, "strict", z.ZodTypeAny, {
|
|
1236
|
-
type: "code";
|
|
1237
|
-
id: string;
|
|
1238
|
-
config: {
|
|
1239
|
-
code?: string | undefined;
|
|
1240
|
-
handler?: string | undefined;
|
|
1241
|
-
timeoutMs?: number | undefined;
|
|
1242
|
-
bindSkill?: boolean | undefined;
|
|
1243
|
-
} & {
|
|
1244
|
-
[k: string]: unknown;
|
|
1245
|
-
};
|
|
1246
|
-
description?: string | undefined;
|
|
1247
|
-
label?: string | undefined;
|
|
1248
|
-
retry?: {
|
|
1249
|
-
maxRetries: number;
|
|
1250
|
-
backoff?: {
|
|
1251
|
-
type: "exponential" | "linear" | "fixed";
|
|
1252
|
-
baseDelay: number;
|
|
1253
|
-
maxDelay: number;
|
|
1254
|
-
jitter?: number | undefined;
|
|
1255
|
-
} | undefined;
|
|
1256
|
-
} | undefined;
|
|
1257
|
-
interrupt?: {
|
|
1258
|
-
options?: string[] | undefined;
|
|
1259
|
-
before?: boolean | undefined;
|
|
1260
|
-
after?: boolean | undefined;
|
|
1261
|
-
question?: string | undefined;
|
|
1262
|
-
timeout?: number | undefined;
|
|
1263
|
-
} | undefined;
|
|
1264
|
-
}, {
|
|
1265
|
-
type: "code";
|
|
1266
|
-
id: string;
|
|
1267
|
-
description?: string | undefined;
|
|
1268
|
-
label?: string | undefined;
|
|
1269
|
-
retry?: {
|
|
1270
|
-
maxRetries: number;
|
|
1271
|
-
backoff?: {
|
|
1272
|
-
type: "exponential" | "linear" | "fixed";
|
|
1273
|
-
baseDelay: number;
|
|
1274
|
-
maxDelay: number;
|
|
1275
|
-
jitter?: number | undefined;
|
|
1276
|
-
} | undefined;
|
|
1277
|
-
} | undefined;
|
|
1278
|
-
interrupt?: {
|
|
1279
|
-
options?: string[] | undefined;
|
|
1280
|
-
before?: boolean | undefined;
|
|
1281
|
-
after?: boolean | undefined;
|
|
1282
|
-
question?: string | undefined;
|
|
1283
|
-
timeout?: number | undefined;
|
|
1284
|
-
} | undefined;
|
|
1285
|
-
config?: z.objectInputType<{
|
|
1286
|
-
code: z.ZodOptional<z.ZodString>;
|
|
1287
|
-
handler: z.ZodOptional<z.ZodString>;
|
|
1288
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1289
|
-
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
1290
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1291
|
-
}>]>;
|
|
1292
|
-
export declare const GraphSchema: z.ZodObject<{
|
|
1293
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1294
|
-
version: z.ZodOptional<z.ZodString>;
|
|
1295
|
-
state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1296
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1297
|
-
id: z.ZodString;
|
|
1298
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1299
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1218
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
1220
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1221
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1222
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1300
1223
|
retry: z.ZodOptional<z.ZodObject<{
|
|
1301
1224
|
maxRetries: z.ZodNumber;
|
|
1302
1225
|
backoff: z.ZodOptional<z.ZodObject<{
|
|
@@ -1332,37 +1255,497 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
1332
1255
|
jitter?: number | undefined;
|
|
1333
1256
|
} | undefined;
|
|
1334
1257
|
}>>;
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1258
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
1259
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1260
|
+
type: z.ZodString;
|
|
1261
|
+
id: z.ZodString;
|
|
1262
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1265
|
+
type: z.ZodString;
|
|
1266
|
+
id: z.ZodString;
|
|
1267
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1270
|
+
type: z.ZodString;
|
|
1271
|
+
id: z.ZodString;
|
|
1272
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1274
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1275
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1276
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1277
|
+
type: z.ZodString;
|
|
1278
|
+
id: z.ZodString;
|
|
1279
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1280
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1281
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1282
|
+
type: z.ZodString;
|
|
1283
|
+
id: z.ZodString;
|
|
1284
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1286
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1287
|
+
type: z.ZodString;
|
|
1288
|
+
id: z.ZodString;
|
|
1289
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1291
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1292
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1293
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1294
|
+
type: z.ZodString;
|
|
1295
|
+
id: z.ZodString;
|
|
1296
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1298
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1299
|
+
type: z.ZodString;
|
|
1300
|
+
id: z.ZodString;
|
|
1301
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1302
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1303
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1304
|
+
type: z.ZodString;
|
|
1305
|
+
id: z.ZodString;
|
|
1306
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1307
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1308
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1309
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1310
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1311
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1312
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1313
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
1314
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1315
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1316
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1317
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1318
|
+
maxRetries: z.ZodNumber;
|
|
1319
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1320
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1321
|
+
baseDelay: z.ZodNumber;
|
|
1322
|
+
maxDelay: z.ZodNumber;
|
|
1323
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1324
|
+
}, "strict", z.ZodTypeAny, {
|
|
1325
|
+
type: "exponential" | "linear" | "fixed";
|
|
1326
|
+
baseDelay: number;
|
|
1327
|
+
maxDelay: number;
|
|
1328
|
+
jitter?: number | undefined;
|
|
1329
|
+
}, {
|
|
1330
|
+
type: "exponential" | "linear" | "fixed";
|
|
1331
|
+
baseDelay: number;
|
|
1332
|
+
maxDelay: number;
|
|
1333
|
+
jitter?: number | undefined;
|
|
1334
|
+
}>>;
|
|
1335
|
+
}, "strict", z.ZodTypeAny, {
|
|
1336
|
+
maxRetries: number;
|
|
1337
|
+
backoff?: {
|
|
1338
|
+
type: "exponential" | "linear" | "fixed";
|
|
1339
|
+
baseDelay: number;
|
|
1340
|
+
maxDelay: number;
|
|
1341
|
+
jitter?: number | undefined;
|
|
1342
|
+
} | undefined;
|
|
1343
|
+
}, {
|
|
1344
|
+
maxRetries: number;
|
|
1345
|
+
backoff?: {
|
|
1346
|
+
type: "exponential" | "linear" | "fixed";
|
|
1347
|
+
baseDelay: number;
|
|
1348
|
+
maxDelay: number;
|
|
1349
|
+
jitter?: number | undefined;
|
|
1350
|
+
} | undefined;
|
|
1351
|
+
}>>;
|
|
1352
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
1353
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1354
|
+
type: z.ZodString;
|
|
1355
|
+
id: z.ZodString;
|
|
1356
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1359
|
+
type: z.ZodString;
|
|
1360
|
+
id: z.ZodString;
|
|
1361
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1362
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1364
|
+
type: z.ZodString;
|
|
1365
|
+
id: z.ZodString;
|
|
1366
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1367
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1368
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1369
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1370
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1371
|
+
type: z.ZodString;
|
|
1372
|
+
id: z.ZodString;
|
|
1373
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1374
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1375
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1376
|
+
type: z.ZodString;
|
|
1377
|
+
id: z.ZodString;
|
|
1378
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1379
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1380
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1381
|
+
type: z.ZodString;
|
|
1382
|
+
id: z.ZodString;
|
|
1383
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1384
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1386
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1387
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1388
|
+
type: z.ZodString;
|
|
1389
|
+
id: z.ZodString;
|
|
1390
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1391
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1392
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1393
|
+
type: z.ZodString;
|
|
1394
|
+
id: z.ZodString;
|
|
1395
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1396
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1397
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1398
|
+
type: z.ZodString;
|
|
1399
|
+
id: z.ZodString;
|
|
1400
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1401
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1402
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1403
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1404
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1405
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1406
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1407
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
1408
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1409
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1410
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1411
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1412
|
+
maxRetries: z.ZodNumber;
|
|
1413
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1414
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1415
|
+
baseDelay: z.ZodNumber;
|
|
1416
|
+
maxDelay: z.ZodNumber;
|
|
1417
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1418
|
+
}, "strict", z.ZodTypeAny, {
|
|
1419
|
+
type: "exponential" | "linear" | "fixed";
|
|
1420
|
+
baseDelay: number;
|
|
1421
|
+
maxDelay: number;
|
|
1422
|
+
jitter?: number | undefined;
|
|
1423
|
+
}, {
|
|
1424
|
+
type: "exponential" | "linear" | "fixed";
|
|
1425
|
+
baseDelay: number;
|
|
1426
|
+
maxDelay: number;
|
|
1427
|
+
jitter?: number | undefined;
|
|
1428
|
+
}>>;
|
|
1429
|
+
}, "strict", z.ZodTypeAny, {
|
|
1430
|
+
maxRetries: number;
|
|
1431
|
+
backoff?: {
|
|
1432
|
+
type: "exponential" | "linear" | "fixed";
|
|
1433
|
+
baseDelay: number;
|
|
1434
|
+
maxDelay: number;
|
|
1435
|
+
jitter?: number | undefined;
|
|
1436
|
+
} | undefined;
|
|
1437
|
+
}, {
|
|
1438
|
+
maxRetries: number;
|
|
1439
|
+
backoff?: {
|
|
1440
|
+
type: "exponential" | "linear" | "fixed";
|
|
1441
|
+
baseDelay: number;
|
|
1442
|
+
maxDelay: number;
|
|
1443
|
+
jitter?: number | undefined;
|
|
1444
|
+
} | undefined;
|
|
1445
|
+
}>>;
|
|
1446
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
1447
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1448
|
+
type: z.ZodString;
|
|
1449
|
+
id: z.ZodString;
|
|
1450
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1451
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1453
|
+
type: z.ZodString;
|
|
1454
|
+
id: z.ZodString;
|
|
1455
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1458
|
+
type: z.ZodString;
|
|
1459
|
+
id: z.ZodString;
|
|
1460
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1461
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1462
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1463
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1464
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1465
|
+
type: z.ZodString;
|
|
1466
|
+
id: z.ZodString;
|
|
1467
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1468
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1469
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1470
|
+
type: z.ZodString;
|
|
1471
|
+
id: z.ZodString;
|
|
1472
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1473
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1474
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1475
|
+
type: z.ZodString;
|
|
1476
|
+
id: z.ZodString;
|
|
1477
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1479
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1480
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1481
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1482
|
+
type: z.ZodString;
|
|
1483
|
+
id: z.ZodString;
|
|
1484
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1485
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1486
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1487
|
+
type: z.ZodString;
|
|
1488
|
+
id: z.ZodString;
|
|
1489
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1491
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1492
|
+
type: z.ZodString;
|
|
1493
|
+
id: z.ZodString;
|
|
1494
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1495
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1496
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1497
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1498
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1499
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1500
|
+
}, "strict", z.ZodTypeAny, {
|
|
1501
|
+
type: "rag";
|
|
1502
|
+
id: string;
|
|
1503
|
+
config: {
|
|
1504
|
+
retry?: {
|
|
1505
|
+
maxRetries: number;
|
|
1506
|
+
backoff?: {
|
|
1507
|
+
type: "exponential" | "linear" | "fixed";
|
|
1508
|
+
baseDelay: number;
|
|
1509
|
+
maxDelay: number;
|
|
1510
|
+
jitter?: number | undefined;
|
|
1511
|
+
} | undefined;
|
|
1512
|
+
} | undefined;
|
|
1513
|
+
model?: string | undefined;
|
|
1514
|
+
totalK?: number | undefined;
|
|
1515
|
+
maxIterations?: number | undefined;
|
|
1516
|
+
quota?: Record<string, number> | undefined;
|
|
1517
|
+
nearDupThreshold?: number | undefined;
|
|
1518
|
+
retrievalSources?: z.objectOutputType<{
|
|
1519
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1520
|
+
type: z.ZodString;
|
|
1521
|
+
id: z.ZodString;
|
|
1522
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1523
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1524
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1525
|
+
type: z.ZodString;
|
|
1526
|
+
id: z.ZodString;
|
|
1527
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1528
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1529
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1530
|
+
type: z.ZodString;
|
|
1531
|
+
id: z.ZodString;
|
|
1532
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1533
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1534
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1535
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1536
|
+
toolSources?: Record<string, string> | undefined;
|
|
1537
|
+
} & {
|
|
1538
|
+
[k: string]: unknown;
|
|
1539
|
+
};
|
|
1540
|
+
description?: string | undefined;
|
|
1541
|
+
label?: string | undefined;
|
|
1542
|
+
retry?: {
|
|
1543
|
+
maxRetries: number;
|
|
1544
|
+
backoff?: {
|
|
1545
|
+
type: "exponential" | "linear" | "fixed";
|
|
1546
|
+
baseDelay: number;
|
|
1547
|
+
maxDelay: number;
|
|
1548
|
+
jitter?: number | undefined;
|
|
1549
|
+
} | undefined;
|
|
1550
|
+
} | undefined;
|
|
1551
|
+
interrupt?: {
|
|
1552
|
+
options?: string[] | undefined;
|
|
1553
|
+
before?: boolean | undefined;
|
|
1554
|
+
after?: boolean | undefined;
|
|
1555
|
+
question?: string | undefined;
|
|
1556
|
+
timeout?: number | undefined;
|
|
1557
|
+
} | undefined;
|
|
1558
|
+
}, {
|
|
1559
|
+
type: "rag";
|
|
1560
|
+
id: string;
|
|
1561
|
+
description?: string | undefined;
|
|
1562
|
+
label?: string | undefined;
|
|
1563
|
+
retry?: {
|
|
1564
|
+
maxRetries: number;
|
|
1565
|
+
backoff?: {
|
|
1566
|
+
type: "exponential" | "linear" | "fixed";
|
|
1567
|
+
baseDelay: number;
|
|
1568
|
+
maxDelay: number;
|
|
1569
|
+
jitter?: number | undefined;
|
|
1570
|
+
} | undefined;
|
|
1571
|
+
} | undefined;
|
|
1572
|
+
interrupt?: {
|
|
1573
|
+
options?: string[] | undefined;
|
|
1574
|
+
before?: boolean | undefined;
|
|
1575
|
+
after?: boolean | undefined;
|
|
1576
|
+
question?: string | undefined;
|
|
1577
|
+
timeout?: number | undefined;
|
|
1578
|
+
} | undefined;
|
|
1579
|
+
config?: z.objectInputType<{
|
|
1580
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
1582
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1583
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1584
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1585
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1586
|
+
maxRetries: z.ZodNumber;
|
|
1587
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1588
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1589
|
+
baseDelay: z.ZodNumber;
|
|
1590
|
+
maxDelay: z.ZodNumber;
|
|
1591
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1592
|
+
}, "strict", z.ZodTypeAny, {
|
|
1593
|
+
type: "exponential" | "linear" | "fixed";
|
|
1594
|
+
baseDelay: number;
|
|
1595
|
+
maxDelay: number;
|
|
1596
|
+
jitter?: number | undefined;
|
|
1597
|
+
}, {
|
|
1598
|
+
type: "exponential" | "linear" | "fixed";
|
|
1599
|
+
baseDelay: number;
|
|
1600
|
+
maxDelay: number;
|
|
1601
|
+
jitter?: number | undefined;
|
|
1602
|
+
}>>;
|
|
1603
|
+
}, "strict", z.ZodTypeAny, {
|
|
1604
|
+
maxRetries: number;
|
|
1605
|
+
backoff?: {
|
|
1606
|
+
type: "exponential" | "linear" | "fixed";
|
|
1607
|
+
baseDelay: number;
|
|
1608
|
+
maxDelay: number;
|
|
1609
|
+
jitter?: number | undefined;
|
|
1610
|
+
} | undefined;
|
|
1611
|
+
}, {
|
|
1612
|
+
maxRetries: number;
|
|
1613
|
+
backoff?: {
|
|
1614
|
+
type: "exponential" | "linear" | "fixed";
|
|
1615
|
+
baseDelay: number;
|
|
1616
|
+
maxDelay: number;
|
|
1617
|
+
jitter?: number | undefined;
|
|
1618
|
+
} | undefined;
|
|
1619
|
+
}>>;
|
|
1620
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
1621
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1622
|
+
type: z.ZodString;
|
|
1623
|
+
id: z.ZodString;
|
|
1624
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1625
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1626
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1627
|
+
type: z.ZodString;
|
|
1628
|
+
id: z.ZodString;
|
|
1629
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1630
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1631
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1632
|
+
type: z.ZodString;
|
|
1633
|
+
id: z.ZodString;
|
|
1634
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1635
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1636
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1637
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1638
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1639
|
+
type: z.ZodString;
|
|
1640
|
+
id: z.ZodString;
|
|
1641
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1642
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1644
|
+
type: z.ZodString;
|
|
1645
|
+
id: z.ZodString;
|
|
1646
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1647
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1649
|
+
type: z.ZodString;
|
|
1650
|
+
id: z.ZodString;
|
|
1651
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1653
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1654
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1655
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1656
|
+
type: z.ZodString;
|
|
1657
|
+
id: z.ZodString;
|
|
1658
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1660
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1661
|
+
type: z.ZodString;
|
|
1662
|
+
id: z.ZodString;
|
|
1663
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1665
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1666
|
+
type: z.ZodString;
|
|
1667
|
+
id: z.ZodString;
|
|
1668
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1669
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1671
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1672
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1673
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1674
|
+
}>]>;
|
|
1675
|
+
export declare const GraphSchema: z.ZodObject<{
|
|
1676
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1677
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1679
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1680
|
+
id: z.ZodString;
|
|
1681
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1684
|
+
maxRetries: z.ZodNumber;
|
|
1685
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1686
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1687
|
+
baseDelay: z.ZodNumber;
|
|
1688
|
+
maxDelay: z.ZodNumber;
|
|
1689
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1690
|
+
}, "strict", z.ZodTypeAny, {
|
|
1691
|
+
type: "exponential" | "linear" | "fixed";
|
|
1692
|
+
baseDelay: number;
|
|
1693
|
+
maxDelay: number;
|
|
1694
|
+
jitter?: number | undefined;
|
|
1695
|
+
}, {
|
|
1696
|
+
type: "exponential" | "linear" | "fixed";
|
|
1697
|
+
baseDelay: number;
|
|
1698
|
+
maxDelay: number;
|
|
1699
|
+
jitter?: number | undefined;
|
|
1700
|
+
}>>;
|
|
1701
|
+
}, "strict", z.ZodTypeAny, {
|
|
1702
|
+
maxRetries: number;
|
|
1703
|
+
backoff?: {
|
|
1704
|
+
type: "exponential" | "linear" | "fixed";
|
|
1705
|
+
baseDelay: number;
|
|
1706
|
+
maxDelay: number;
|
|
1707
|
+
jitter?: number | undefined;
|
|
1708
|
+
} | undefined;
|
|
1709
|
+
}, {
|
|
1710
|
+
maxRetries: number;
|
|
1711
|
+
backoff?: {
|
|
1712
|
+
type: "exponential" | "linear" | "fixed";
|
|
1713
|
+
baseDelay: number;
|
|
1714
|
+
maxDelay: number;
|
|
1715
|
+
jitter?: number | undefined;
|
|
1716
|
+
} | undefined;
|
|
1717
|
+
}>>;
|
|
1718
|
+
interrupt: z.ZodOptional<z.ZodObject<{
|
|
1719
|
+
before: z.ZodOptional<z.ZodBoolean>;
|
|
1720
|
+
after: z.ZodOptional<z.ZodBoolean>;
|
|
1721
|
+
question: z.ZodOptional<z.ZodString>;
|
|
1722
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1723
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1724
|
+
}, "strict", z.ZodTypeAny, {
|
|
1725
|
+
options?: string[] | undefined;
|
|
1726
|
+
before?: boolean | undefined;
|
|
1727
|
+
after?: boolean | undefined;
|
|
1728
|
+
question?: string | undefined;
|
|
1729
|
+
timeout?: number | undefined;
|
|
1730
|
+
}, {
|
|
1731
|
+
options?: string[] | undefined;
|
|
1732
|
+
before?: boolean | undefined;
|
|
1733
|
+
after?: boolean | undefined;
|
|
1734
|
+
question?: string | undefined;
|
|
1735
|
+
timeout?: number | undefined;
|
|
1736
|
+
}>>;
|
|
1737
|
+
} & {
|
|
1738
|
+
type: z.ZodLiteral<"llm">;
|
|
1739
|
+
config: z.ZodDefault<z.ZodObject<{
|
|
1740
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1741
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
1742
|
+
systemPromptFile: z.ZodOptional<z.ZodString>;
|
|
1743
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1744
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1745
|
+
outputKey: z.ZodOptional<z.ZodString>;
|
|
1746
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1747
|
+
maxRetries: z.ZodNumber;
|
|
1748
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1366
1749
|
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1367
1750
|
baseDelay: z.ZodNumber;
|
|
1368
1751
|
maxDelay: z.ZodNumber;
|
|
@@ -1876,19 +2259,21 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
1876
2259
|
config: z.ZodObject<{
|
|
1877
2260
|
tool: z.ZodString;
|
|
1878
2261
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1879
|
-
}, "
|
|
1880
|
-
tool:
|
|
1881
|
-
arguments
|
|
1882
|
-
}, {
|
|
1883
|
-
tool:
|
|
1884
|
-
arguments
|
|
1885
|
-
}
|
|
2262
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2263
|
+
tool: z.ZodString;
|
|
2264
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2265
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2266
|
+
tool: z.ZodString;
|
|
2267
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2268
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1886
2269
|
}, "strict", z.ZodTypeAny, {
|
|
1887
2270
|
type: "tool";
|
|
1888
2271
|
id: string;
|
|
1889
2272
|
config: {
|
|
1890
2273
|
tool: string;
|
|
1891
2274
|
arguments?: Record<string, unknown> | undefined;
|
|
2275
|
+
} & {
|
|
2276
|
+
[k: string]: unknown;
|
|
1892
2277
|
};
|
|
1893
2278
|
description?: string | undefined;
|
|
1894
2279
|
label?: string | undefined;
|
|
@@ -1914,6 +2299,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
1914
2299
|
config: {
|
|
1915
2300
|
tool: string;
|
|
1916
2301
|
arguments?: Record<string, unknown> | undefined;
|
|
2302
|
+
} & {
|
|
2303
|
+
[k: string]: unknown;
|
|
1917
2304
|
};
|
|
1918
2305
|
description?: string | undefined;
|
|
1919
2306
|
label?: string | undefined;
|
|
@@ -1998,17 +2385,17 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
1998
2385
|
conditionFn: z.ZodOptional<z.ZodString>;
|
|
1999
2386
|
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2000
2387
|
fallback: z.ZodOptional<z.ZodString>;
|
|
2001
|
-
}, "
|
|
2002
|
-
conditionExpr
|
|
2003
|
-
conditionFn
|
|
2004
|
-
branchValues
|
|
2005
|
-
fallback
|
|
2006
|
-
}, {
|
|
2007
|
-
conditionExpr
|
|
2008
|
-
conditionFn
|
|
2009
|
-
branchValues
|
|
2010
|
-
fallback
|
|
2011
|
-
}
|
|
2388
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2389
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
2390
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
2391
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2392
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
2393
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2394
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
2395
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
2396
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2397
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
2398
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2012
2399
|
}, "strict", z.ZodTypeAny, {
|
|
2013
2400
|
type: "condition";
|
|
2014
2401
|
id: string;
|
|
@@ -2017,6 +2404,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2017
2404
|
conditionFn?: string | undefined;
|
|
2018
2405
|
branchValues?: string[] | undefined;
|
|
2019
2406
|
fallback?: string | undefined;
|
|
2407
|
+
} & {
|
|
2408
|
+
[k: string]: unknown;
|
|
2020
2409
|
};
|
|
2021
2410
|
description?: string | undefined;
|
|
2022
2411
|
label?: string | undefined;
|
|
@@ -2057,12 +2446,12 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2057
2446
|
question?: string | undefined;
|
|
2058
2447
|
timeout?: number | undefined;
|
|
2059
2448
|
} | undefined;
|
|
2060
|
-
config?: {
|
|
2061
|
-
conditionExpr
|
|
2062
|
-
conditionFn
|
|
2063
|
-
branchValues
|
|
2064
|
-
fallback
|
|
2065
|
-
} | undefined;
|
|
2449
|
+
config?: z.objectInputType<{
|
|
2450
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
2451
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
2452
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2453
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
2454
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2066
2455
|
}>, z.ZodObject<{
|
|
2067
2456
|
id: z.ZodString;
|
|
2068
2457
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -2127,19 +2516,21 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2127
2516
|
config: z.ZodDefault<z.ZodObject<{
|
|
2128
2517
|
skillId: z.ZodOptional<z.ZodString>;
|
|
2129
2518
|
skillCode: z.ZodOptional<z.ZodString>;
|
|
2130
|
-
}, "
|
|
2131
|
-
skillId
|
|
2132
|
-
skillCode
|
|
2133
|
-
}, {
|
|
2134
|
-
skillId
|
|
2135
|
-
skillCode
|
|
2136
|
-
}
|
|
2519
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2520
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
2521
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
2522
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2523
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
2524
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
2525
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2137
2526
|
}, "strict", z.ZodTypeAny, {
|
|
2138
2527
|
type: "subgraph";
|
|
2139
2528
|
id: string;
|
|
2140
2529
|
config: {
|
|
2141
2530
|
skillId?: string | undefined;
|
|
2142
2531
|
skillCode?: string | undefined;
|
|
2532
|
+
} & {
|
|
2533
|
+
[k: string]: unknown;
|
|
2143
2534
|
};
|
|
2144
2535
|
description?: string | undefined;
|
|
2145
2536
|
label?: string | undefined;
|
|
@@ -2181,10 +2572,10 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2181
2572
|
question?: string | undefined;
|
|
2182
2573
|
timeout?: number | undefined;
|
|
2183
2574
|
} | undefined;
|
|
2184
|
-
config?: {
|
|
2185
|
-
skillId
|
|
2186
|
-
skillCode
|
|
2187
|
-
} | undefined;
|
|
2575
|
+
config?: z.objectInputType<{
|
|
2576
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
2577
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
2578
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2188
2579
|
subgraphId?: string | undefined;
|
|
2189
2580
|
}>, z.ZodObject<{
|
|
2190
2581
|
id: z.ZodString;
|
|
@@ -2249,19 +2640,21 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2249
2640
|
config: z.ZodDefault<z.ZodObject<{
|
|
2250
2641
|
question: z.ZodOptional<z.ZodString>;
|
|
2251
2642
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2252
|
-
}, "
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
}, {
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
}
|
|
2643
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2644
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2645
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2646
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2647
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2648
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2649
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2259
2650
|
}, "strict", z.ZodTypeAny, {
|
|
2260
2651
|
type: "human";
|
|
2261
2652
|
id: string;
|
|
2262
2653
|
config: {
|
|
2263
2654
|
options?: string[] | undefined;
|
|
2264
2655
|
question?: string | undefined;
|
|
2656
|
+
} & {
|
|
2657
|
+
[k: string]: unknown;
|
|
2265
2658
|
};
|
|
2266
2659
|
description?: string | undefined;
|
|
2267
2660
|
label?: string | undefined;
|
|
@@ -2302,10 +2695,10 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2302
2695
|
question?: string | undefined;
|
|
2303
2696
|
timeout?: number | undefined;
|
|
2304
2697
|
} | undefined;
|
|
2305
|
-
config?: {
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
} | undefined;
|
|
2698
|
+
config?: z.objectInputType<{
|
|
2699
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2700
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2701
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2309
2702
|
}>, z.ZodObject<{
|
|
2310
2703
|
id: z.ZodString;
|
|
2311
2704
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -2365,42 +2758,33 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2365
2758
|
timeout?: number | undefined;
|
|
2366
2759
|
}>>;
|
|
2367
2760
|
} & {
|
|
2368
|
-
type: z.ZodLiteral<"
|
|
2369
|
-
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2761
|
+
type: z.ZodLiteral<"code">;
|
|
2370
2762
|
config: z.ZodDefault<z.ZodObject<{
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
fn?: string | undefined;
|
|
2387
|
-
}[] | undefined;
|
|
2388
|
-
}, {
|
|
2389
|
-
branches?: string[] | undefined;
|
|
2390
|
-
tasks?: {
|
|
2391
|
-
id: string;
|
|
2392
|
-
fn?: string | undefined;
|
|
2393
|
-
}[] | undefined;
|
|
2394
|
-
}>>;
|
|
2763
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2764
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
2765
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2766
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
2767
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2768
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2769
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
2770
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2771
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
2772
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2773
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2774
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
2775
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2776
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
2777
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2395
2778
|
}, "strict", z.ZodTypeAny, {
|
|
2396
|
-
type: "
|
|
2779
|
+
type: "code";
|
|
2397
2780
|
id: string;
|
|
2398
2781
|
config: {
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2782
|
+
code?: string | undefined;
|
|
2783
|
+
handler?: string | undefined;
|
|
2784
|
+
timeoutMs?: number | undefined;
|
|
2785
|
+
bindSkill?: boolean | undefined;
|
|
2786
|
+
} & {
|
|
2787
|
+
[k: string]: unknown;
|
|
2404
2788
|
};
|
|
2405
2789
|
description?: string | undefined;
|
|
2406
2790
|
label?: string | undefined;
|
|
@@ -2420,9 +2804,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2420
2804
|
question?: string | undefined;
|
|
2421
2805
|
timeout?: number | undefined;
|
|
2422
2806
|
} | undefined;
|
|
2423
|
-
branches?: string[] | undefined;
|
|
2424
2807
|
}, {
|
|
2425
|
-
type: "
|
|
2808
|
+
type: "code";
|
|
2426
2809
|
id: string;
|
|
2427
2810
|
description?: string | undefined;
|
|
2428
2811
|
label?: string | undefined;
|
|
@@ -2442,14 +2825,12 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2442
2825
|
question?: string | undefined;
|
|
2443
2826
|
timeout?: number | undefined;
|
|
2444
2827
|
} | undefined;
|
|
2445
|
-
config?: {
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
} | undefined;
|
|
2452
|
-
branches?: string[] | undefined;
|
|
2828
|
+
config?: z.objectInputType<{
|
|
2829
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2830
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
2831
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2832
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
2833
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2453
2834
|
}>, z.ZodObject<{
|
|
2454
2835
|
id: z.ZodString;
|
|
2455
2836
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -2462,78 +2843,374 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2462
2843
|
maxDelay: z.ZodNumber;
|
|
2463
2844
|
jitter: z.ZodOptional<z.ZodNumber>;
|
|
2464
2845
|
}, "strict", z.ZodTypeAny, {
|
|
2465
|
-
type: "exponential" | "linear" | "fixed";
|
|
2466
|
-
baseDelay: number;
|
|
2467
|
-
maxDelay: number;
|
|
2468
|
-
jitter?: number | undefined;
|
|
2846
|
+
type: "exponential" | "linear" | "fixed";
|
|
2847
|
+
baseDelay: number;
|
|
2848
|
+
maxDelay: number;
|
|
2849
|
+
jitter?: number | undefined;
|
|
2850
|
+
}, {
|
|
2851
|
+
type: "exponential" | "linear" | "fixed";
|
|
2852
|
+
baseDelay: number;
|
|
2853
|
+
maxDelay: number;
|
|
2854
|
+
jitter?: number | undefined;
|
|
2855
|
+
}>>;
|
|
2856
|
+
}, "strict", z.ZodTypeAny, {
|
|
2857
|
+
maxRetries: number;
|
|
2858
|
+
backoff?: {
|
|
2859
|
+
type: "exponential" | "linear" | "fixed";
|
|
2860
|
+
baseDelay: number;
|
|
2861
|
+
maxDelay: number;
|
|
2862
|
+
jitter?: number | undefined;
|
|
2863
|
+
} | undefined;
|
|
2864
|
+
}, {
|
|
2865
|
+
maxRetries: number;
|
|
2866
|
+
backoff?: {
|
|
2867
|
+
type: "exponential" | "linear" | "fixed";
|
|
2868
|
+
baseDelay: number;
|
|
2869
|
+
maxDelay: number;
|
|
2870
|
+
jitter?: number | undefined;
|
|
2871
|
+
} | undefined;
|
|
2872
|
+
}>>;
|
|
2873
|
+
interrupt: z.ZodOptional<z.ZodObject<{
|
|
2874
|
+
before: z.ZodOptional<z.ZodBoolean>;
|
|
2875
|
+
after: z.ZodOptional<z.ZodBoolean>;
|
|
2876
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2877
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2878
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2879
|
+
}, "strict", z.ZodTypeAny, {
|
|
2880
|
+
options?: string[] | undefined;
|
|
2881
|
+
before?: boolean | undefined;
|
|
2882
|
+
after?: boolean | undefined;
|
|
2883
|
+
question?: string | undefined;
|
|
2884
|
+
timeout?: number | undefined;
|
|
2885
|
+
}, {
|
|
2886
|
+
options?: string[] | undefined;
|
|
2887
|
+
before?: boolean | undefined;
|
|
2888
|
+
after?: boolean | undefined;
|
|
2889
|
+
question?: string | undefined;
|
|
2890
|
+
timeout?: number | undefined;
|
|
2891
|
+
}>>;
|
|
2892
|
+
} & {
|
|
2893
|
+
type: z.ZodLiteral<"rag">;
|
|
2894
|
+
config: z.ZodDefault<z.ZodObject<{
|
|
2895
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2896
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
2897
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
2898
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2899
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
2900
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
2901
|
+
maxRetries: z.ZodNumber;
|
|
2902
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
2903
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
2904
|
+
baseDelay: z.ZodNumber;
|
|
2905
|
+
maxDelay: z.ZodNumber;
|
|
2906
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
2907
|
+
}, "strict", z.ZodTypeAny, {
|
|
2908
|
+
type: "exponential" | "linear" | "fixed";
|
|
2909
|
+
baseDelay: number;
|
|
2910
|
+
maxDelay: number;
|
|
2911
|
+
jitter?: number | undefined;
|
|
2912
|
+
}, {
|
|
2913
|
+
type: "exponential" | "linear" | "fixed";
|
|
2914
|
+
baseDelay: number;
|
|
2915
|
+
maxDelay: number;
|
|
2916
|
+
jitter?: number | undefined;
|
|
2917
|
+
}>>;
|
|
2918
|
+
}, "strict", z.ZodTypeAny, {
|
|
2919
|
+
maxRetries: number;
|
|
2920
|
+
backoff?: {
|
|
2921
|
+
type: "exponential" | "linear" | "fixed";
|
|
2922
|
+
baseDelay: number;
|
|
2923
|
+
maxDelay: number;
|
|
2924
|
+
jitter?: number | undefined;
|
|
2925
|
+
} | undefined;
|
|
2926
|
+
}, {
|
|
2927
|
+
maxRetries: number;
|
|
2928
|
+
backoff?: {
|
|
2929
|
+
type: "exponential" | "linear" | "fixed";
|
|
2930
|
+
baseDelay: number;
|
|
2931
|
+
maxDelay: number;
|
|
2932
|
+
jitter?: number | undefined;
|
|
2933
|
+
} | undefined;
|
|
2934
|
+
}>>;
|
|
2935
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
2936
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2937
|
+
type: z.ZodString;
|
|
2938
|
+
id: z.ZodString;
|
|
2939
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2940
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2941
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2942
|
+
type: z.ZodString;
|
|
2943
|
+
id: z.ZodString;
|
|
2944
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2945
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2946
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2947
|
+
type: z.ZodString;
|
|
2948
|
+
id: z.ZodString;
|
|
2949
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2950
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2951
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
2952
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2953
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2954
|
+
type: z.ZodString;
|
|
2955
|
+
id: z.ZodString;
|
|
2956
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2957
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2958
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2959
|
+
type: z.ZodString;
|
|
2960
|
+
id: z.ZodString;
|
|
2961
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2962
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2963
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2964
|
+
type: z.ZodString;
|
|
2965
|
+
id: z.ZodString;
|
|
2966
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2967
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2968
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
2969
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2970
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2971
|
+
type: z.ZodString;
|
|
2972
|
+
id: z.ZodString;
|
|
2973
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2974
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2975
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2976
|
+
type: z.ZodString;
|
|
2977
|
+
id: z.ZodString;
|
|
2978
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2979
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2980
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2981
|
+
type: z.ZodString;
|
|
2982
|
+
id: z.ZodString;
|
|
2983
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2984
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2985
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
2986
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2987
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2988
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2989
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2990
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
2991
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
2992
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2993
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
2994
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
2995
|
+
maxRetries: z.ZodNumber;
|
|
2996
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
2997
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
2998
|
+
baseDelay: z.ZodNumber;
|
|
2999
|
+
maxDelay: z.ZodNumber;
|
|
3000
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
3001
|
+
}, "strict", z.ZodTypeAny, {
|
|
3002
|
+
type: "exponential" | "linear" | "fixed";
|
|
3003
|
+
baseDelay: number;
|
|
3004
|
+
maxDelay: number;
|
|
3005
|
+
jitter?: number | undefined;
|
|
3006
|
+
}, {
|
|
3007
|
+
type: "exponential" | "linear" | "fixed";
|
|
3008
|
+
baseDelay: number;
|
|
3009
|
+
maxDelay: number;
|
|
3010
|
+
jitter?: number | undefined;
|
|
3011
|
+
}>>;
|
|
3012
|
+
}, "strict", z.ZodTypeAny, {
|
|
3013
|
+
maxRetries: number;
|
|
3014
|
+
backoff?: {
|
|
3015
|
+
type: "exponential" | "linear" | "fixed";
|
|
3016
|
+
baseDelay: number;
|
|
3017
|
+
maxDelay: number;
|
|
3018
|
+
jitter?: number | undefined;
|
|
3019
|
+
} | undefined;
|
|
3020
|
+
}, {
|
|
3021
|
+
maxRetries: number;
|
|
3022
|
+
backoff?: {
|
|
3023
|
+
type: "exponential" | "linear" | "fixed";
|
|
3024
|
+
baseDelay: number;
|
|
3025
|
+
maxDelay: number;
|
|
3026
|
+
jitter?: number | undefined;
|
|
3027
|
+
} | undefined;
|
|
3028
|
+
}>>;
|
|
3029
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
3030
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3031
|
+
type: z.ZodString;
|
|
3032
|
+
id: z.ZodString;
|
|
3033
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3034
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3035
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3036
|
+
type: z.ZodString;
|
|
3037
|
+
id: z.ZodString;
|
|
3038
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3039
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3040
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3041
|
+
type: z.ZodString;
|
|
3042
|
+
id: z.ZodString;
|
|
3043
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3044
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3045
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3046
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3047
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3048
|
+
type: z.ZodString;
|
|
3049
|
+
id: z.ZodString;
|
|
3050
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3051
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3052
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3053
|
+
type: z.ZodString;
|
|
3054
|
+
id: z.ZodString;
|
|
3055
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3056
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3057
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3058
|
+
type: z.ZodString;
|
|
3059
|
+
id: z.ZodString;
|
|
3060
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3061
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3062
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3063
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3064
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3065
|
+
type: z.ZodString;
|
|
3066
|
+
id: z.ZodString;
|
|
3067
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3068
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3069
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3070
|
+
type: z.ZodString;
|
|
3071
|
+
id: z.ZodString;
|
|
3072
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3073
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3074
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3075
|
+
type: z.ZodString;
|
|
3076
|
+
id: z.ZodString;
|
|
3077
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3078
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3079
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3080
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
3081
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3082
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3083
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3084
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
3085
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
3086
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3087
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
3088
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
3089
|
+
maxRetries: z.ZodNumber;
|
|
3090
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
3091
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
3092
|
+
baseDelay: z.ZodNumber;
|
|
3093
|
+
maxDelay: z.ZodNumber;
|
|
3094
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
3095
|
+
}, "strict", z.ZodTypeAny, {
|
|
3096
|
+
type: "exponential" | "linear" | "fixed";
|
|
3097
|
+
baseDelay: number;
|
|
3098
|
+
maxDelay: number;
|
|
3099
|
+
jitter?: number | undefined;
|
|
3100
|
+
}, {
|
|
3101
|
+
type: "exponential" | "linear" | "fixed";
|
|
3102
|
+
baseDelay: number;
|
|
3103
|
+
maxDelay: number;
|
|
3104
|
+
jitter?: number | undefined;
|
|
3105
|
+
}>>;
|
|
3106
|
+
}, "strict", z.ZodTypeAny, {
|
|
3107
|
+
maxRetries: number;
|
|
3108
|
+
backoff?: {
|
|
3109
|
+
type: "exponential" | "linear" | "fixed";
|
|
3110
|
+
baseDelay: number;
|
|
3111
|
+
maxDelay: number;
|
|
3112
|
+
jitter?: number | undefined;
|
|
3113
|
+
} | undefined;
|
|
2469
3114
|
}, {
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
3115
|
+
maxRetries: number;
|
|
3116
|
+
backoff?: {
|
|
3117
|
+
type: "exponential" | "linear" | "fixed";
|
|
3118
|
+
baseDelay: number;
|
|
3119
|
+
maxDelay: number;
|
|
3120
|
+
jitter?: number | undefined;
|
|
3121
|
+
} | undefined;
|
|
2474
3122
|
}>>;
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
3123
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
3124
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3125
|
+
type: z.ZodString;
|
|
3126
|
+
id: z.ZodString;
|
|
3127
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3128
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3129
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3130
|
+
type: z.ZodString;
|
|
3131
|
+
id: z.ZodString;
|
|
3132
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3133
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3134
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3135
|
+
type: z.ZodString;
|
|
3136
|
+
id: z.ZodString;
|
|
3137
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3138
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3139
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3140
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3141
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3142
|
+
type: z.ZodString;
|
|
3143
|
+
id: z.ZodString;
|
|
3144
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3145
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3146
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3147
|
+
type: z.ZodString;
|
|
3148
|
+
id: z.ZodString;
|
|
3149
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3150
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3151
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3152
|
+
type: z.ZodString;
|
|
3153
|
+
id: z.ZodString;
|
|
3154
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3155
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3156
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3157
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3158
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3159
|
+
type: z.ZodString;
|
|
3160
|
+
id: z.ZodString;
|
|
3161
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3162
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3163
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3164
|
+
type: z.ZodString;
|
|
3165
|
+
id: z.ZodString;
|
|
3166
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3167
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3168
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3169
|
+
type: z.ZodString;
|
|
3170
|
+
id: z.ZodString;
|
|
3171
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3172
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3173
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3174
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
3175
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2528
3176
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2529
3177
|
}, "strict", z.ZodTypeAny, {
|
|
2530
|
-
type: "
|
|
3178
|
+
type: "rag";
|
|
2531
3179
|
id: string;
|
|
2532
3180
|
config: {
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
3181
|
+
retry?: {
|
|
3182
|
+
maxRetries: number;
|
|
3183
|
+
backoff?: {
|
|
3184
|
+
type: "exponential" | "linear" | "fixed";
|
|
3185
|
+
baseDelay: number;
|
|
3186
|
+
maxDelay: number;
|
|
3187
|
+
jitter?: number | undefined;
|
|
3188
|
+
} | undefined;
|
|
3189
|
+
} | undefined;
|
|
3190
|
+
model?: string | undefined;
|
|
3191
|
+
totalK?: number | undefined;
|
|
3192
|
+
maxIterations?: number | undefined;
|
|
3193
|
+
quota?: Record<string, number> | undefined;
|
|
3194
|
+
nearDupThreshold?: number | undefined;
|
|
3195
|
+
retrievalSources?: z.objectOutputType<{
|
|
3196
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3197
|
+
type: z.ZodString;
|
|
3198
|
+
id: z.ZodString;
|
|
3199
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3200
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3201
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3202
|
+
type: z.ZodString;
|
|
3203
|
+
id: z.ZodString;
|
|
3204
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3205
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3206
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3207
|
+
type: z.ZodString;
|
|
3208
|
+
id: z.ZodString;
|
|
3209
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3210
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3211
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3212
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3213
|
+
toolSources?: Record<string, string> | undefined;
|
|
2537
3214
|
} & {
|
|
2538
3215
|
[k: string]: unknown;
|
|
2539
3216
|
};
|
|
@@ -2556,7 +3233,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2556
3233
|
timeout?: number | undefined;
|
|
2557
3234
|
} | undefined;
|
|
2558
3235
|
}, {
|
|
2559
|
-
type: "
|
|
3236
|
+
type: "rag";
|
|
2560
3237
|
id: string;
|
|
2561
3238
|
description?: string | undefined;
|
|
2562
3239
|
label?: string | undefined;
|
|
@@ -2577,10 +3254,99 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2577
3254
|
timeout?: number | undefined;
|
|
2578
3255
|
} | undefined;
|
|
2579
3256
|
config?: z.objectInputType<{
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
3257
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3258
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
3259
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
3260
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3261
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
3262
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
3263
|
+
maxRetries: z.ZodNumber;
|
|
3264
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
3265
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
3266
|
+
baseDelay: z.ZodNumber;
|
|
3267
|
+
maxDelay: z.ZodNumber;
|
|
3268
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
3269
|
+
}, "strict", z.ZodTypeAny, {
|
|
3270
|
+
type: "exponential" | "linear" | "fixed";
|
|
3271
|
+
baseDelay: number;
|
|
3272
|
+
maxDelay: number;
|
|
3273
|
+
jitter?: number | undefined;
|
|
3274
|
+
}, {
|
|
3275
|
+
type: "exponential" | "linear" | "fixed";
|
|
3276
|
+
baseDelay: number;
|
|
3277
|
+
maxDelay: number;
|
|
3278
|
+
jitter?: number | undefined;
|
|
3279
|
+
}>>;
|
|
3280
|
+
}, "strict", z.ZodTypeAny, {
|
|
3281
|
+
maxRetries: number;
|
|
3282
|
+
backoff?: {
|
|
3283
|
+
type: "exponential" | "linear" | "fixed";
|
|
3284
|
+
baseDelay: number;
|
|
3285
|
+
maxDelay: number;
|
|
3286
|
+
jitter?: number | undefined;
|
|
3287
|
+
} | undefined;
|
|
3288
|
+
}, {
|
|
3289
|
+
maxRetries: number;
|
|
3290
|
+
backoff?: {
|
|
3291
|
+
type: "exponential" | "linear" | "fixed";
|
|
3292
|
+
baseDelay: number;
|
|
3293
|
+
maxDelay: number;
|
|
3294
|
+
jitter?: number | undefined;
|
|
3295
|
+
} | undefined;
|
|
3296
|
+
}>>;
|
|
3297
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
3298
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3299
|
+
type: z.ZodString;
|
|
3300
|
+
id: z.ZodString;
|
|
3301
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3302
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3303
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3304
|
+
type: z.ZodString;
|
|
3305
|
+
id: z.ZodString;
|
|
3306
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3307
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3308
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3309
|
+
type: z.ZodString;
|
|
3310
|
+
id: z.ZodString;
|
|
3311
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3312
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3313
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3314
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3315
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3316
|
+
type: z.ZodString;
|
|
3317
|
+
id: z.ZodString;
|
|
3318
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3319
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3320
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3321
|
+
type: z.ZodString;
|
|
3322
|
+
id: z.ZodString;
|
|
3323
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3324
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3325
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3326
|
+
type: z.ZodString;
|
|
3327
|
+
id: z.ZodString;
|
|
3328
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3329
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3330
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3331
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3332
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3333
|
+
type: z.ZodString;
|
|
3334
|
+
id: z.ZodString;
|
|
3335
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3336
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3337
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3338
|
+
type: z.ZodString;
|
|
3339
|
+
id: z.ZodString;
|
|
3340
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3341
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3342
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3343
|
+
type: z.ZodString;
|
|
3344
|
+
id: z.ZodString;
|
|
3345
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3346
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3347
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3348
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
3349
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2584
3350
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2585
3351
|
}>]>, "many">;
|
|
2586
3352
|
edges: z.ZodArray<z.ZodObject<{
|
|
@@ -2617,21 +3383,21 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2617
3383
|
conditionFn: z.ZodOptional<z.ZodString>;
|
|
2618
3384
|
fallback: z.ZodOptional<z.ZodString>;
|
|
2619
3385
|
}, "strict", z.ZodTypeAny, {
|
|
3386
|
+
from: string;
|
|
2620
3387
|
branches: {
|
|
2621
3388
|
value: string;
|
|
2622
3389
|
to: string;
|
|
2623
3390
|
description?: string | undefined;
|
|
2624
3391
|
}[];
|
|
2625
|
-
from: string;
|
|
2626
3392
|
conditionFn?: string | undefined;
|
|
2627
3393
|
fallback?: string | undefined;
|
|
2628
3394
|
}, {
|
|
3395
|
+
from: string;
|
|
2629
3396
|
branches: {
|
|
2630
3397
|
value: string;
|
|
2631
3398
|
to: string;
|
|
2632
3399
|
description?: string | undefined;
|
|
2633
3400
|
}[];
|
|
2634
|
-
from: string;
|
|
2635
3401
|
conditionFn?: string | undefined;
|
|
2636
3402
|
fallback?: string | undefined;
|
|
2637
3403
|
}>, "many">>;
|
|
@@ -2718,6 +3484,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2718
3484
|
config: {
|
|
2719
3485
|
tool: string;
|
|
2720
3486
|
arguments?: Record<string, unknown> | undefined;
|
|
3487
|
+
} & {
|
|
3488
|
+
[k: string]: unknown;
|
|
2721
3489
|
};
|
|
2722
3490
|
description?: string | undefined;
|
|
2723
3491
|
label?: string | undefined;
|
|
@@ -2745,6 +3513,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2745
3513
|
conditionFn?: string | undefined;
|
|
2746
3514
|
branchValues?: string[] | undefined;
|
|
2747
3515
|
fallback?: string | undefined;
|
|
3516
|
+
} & {
|
|
3517
|
+
[k: string]: unknown;
|
|
2748
3518
|
};
|
|
2749
3519
|
description?: string | undefined;
|
|
2750
3520
|
label?: string | undefined;
|
|
@@ -2770,6 +3540,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2770
3540
|
config: {
|
|
2771
3541
|
skillId?: string | undefined;
|
|
2772
3542
|
skillCode?: string | undefined;
|
|
3543
|
+
} & {
|
|
3544
|
+
[k: string]: unknown;
|
|
2773
3545
|
};
|
|
2774
3546
|
description?: string | undefined;
|
|
2775
3547
|
label?: string | undefined;
|
|
@@ -2796,6 +3568,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2796
3568
|
config: {
|
|
2797
3569
|
options?: string[] | undefined;
|
|
2798
3570
|
question?: string | undefined;
|
|
3571
|
+
} & {
|
|
3572
|
+
[k: string]: unknown;
|
|
2799
3573
|
};
|
|
2800
3574
|
description?: string | undefined;
|
|
2801
3575
|
label?: string | undefined;
|
|
@@ -2816,14 +3590,15 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2816
3590
|
timeout?: number | undefined;
|
|
2817
3591
|
} | undefined;
|
|
2818
3592
|
} | {
|
|
2819
|
-
type: "
|
|
3593
|
+
type: "code";
|
|
2820
3594
|
id: string;
|
|
2821
3595
|
config: {
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
3596
|
+
code?: string | undefined;
|
|
3597
|
+
handler?: string | undefined;
|
|
3598
|
+
timeoutMs?: number | undefined;
|
|
3599
|
+
bindSkill?: boolean | undefined;
|
|
3600
|
+
} & {
|
|
3601
|
+
[k: string]: unknown;
|
|
2827
3602
|
};
|
|
2828
3603
|
description?: string | undefined;
|
|
2829
3604
|
label?: string | undefined;
|
|
@@ -2843,15 +3618,43 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2843
3618
|
question?: string | undefined;
|
|
2844
3619
|
timeout?: number | undefined;
|
|
2845
3620
|
} | undefined;
|
|
2846
|
-
branches?: string[] | undefined;
|
|
2847
3621
|
} | {
|
|
2848
|
-
type: "
|
|
3622
|
+
type: "rag";
|
|
2849
3623
|
id: string;
|
|
2850
3624
|
config: {
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
3625
|
+
retry?: {
|
|
3626
|
+
maxRetries: number;
|
|
3627
|
+
backoff?: {
|
|
3628
|
+
type: "exponential" | "linear" | "fixed";
|
|
3629
|
+
baseDelay: number;
|
|
3630
|
+
maxDelay: number;
|
|
3631
|
+
jitter?: number | undefined;
|
|
3632
|
+
} | undefined;
|
|
3633
|
+
} | undefined;
|
|
3634
|
+
model?: string | undefined;
|
|
3635
|
+
totalK?: number | undefined;
|
|
3636
|
+
maxIterations?: number | undefined;
|
|
3637
|
+
quota?: Record<string, number> | undefined;
|
|
3638
|
+
nearDupThreshold?: number | undefined;
|
|
3639
|
+
retrievalSources?: z.objectOutputType<{
|
|
3640
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3641
|
+
type: z.ZodString;
|
|
3642
|
+
id: z.ZodString;
|
|
3643
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3644
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3645
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3646
|
+
type: z.ZodString;
|
|
3647
|
+
id: z.ZodString;
|
|
3648
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3649
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3650
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3651
|
+
type: z.ZodString;
|
|
3652
|
+
id: z.ZodString;
|
|
3653
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3654
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3655
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3656
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3657
|
+
toolSources?: Record<string, string> | undefined;
|
|
2855
3658
|
} & {
|
|
2856
3659
|
[k: string]: unknown;
|
|
2857
3660
|
};
|
|
@@ -2891,12 +3694,12 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2891
3694
|
version?: string | undefined;
|
|
2892
3695
|
state?: Record<string, string> | undefined;
|
|
2893
3696
|
conditionalEdges?: {
|
|
3697
|
+
from: string;
|
|
2894
3698
|
branches: {
|
|
2895
3699
|
value: string;
|
|
2896
3700
|
to: string;
|
|
2897
3701
|
description?: string | undefined;
|
|
2898
3702
|
}[];
|
|
2899
|
-
from: string;
|
|
2900
3703
|
conditionFn?: string | undefined;
|
|
2901
3704
|
fallback?: string | undefined;
|
|
2902
3705
|
}[] | undefined;
|
|
@@ -3026,6 +3829,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3026
3829
|
config: {
|
|
3027
3830
|
tool: string;
|
|
3028
3831
|
arguments?: Record<string, unknown> | undefined;
|
|
3832
|
+
} & {
|
|
3833
|
+
[k: string]: unknown;
|
|
3029
3834
|
};
|
|
3030
3835
|
description?: string | undefined;
|
|
3031
3836
|
label?: string | undefined;
|
|
@@ -3066,12 +3871,12 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3066
3871
|
question?: string | undefined;
|
|
3067
3872
|
timeout?: number | undefined;
|
|
3068
3873
|
} | undefined;
|
|
3069
|
-
config?: {
|
|
3070
|
-
conditionExpr
|
|
3071
|
-
conditionFn
|
|
3072
|
-
branchValues
|
|
3073
|
-
fallback
|
|
3074
|
-
} | undefined;
|
|
3874
|
+
config?: z.objectInputType<{
|
|
3875
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
3876
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
3877
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3878
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
3879
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3075
3880
|
} | {
|
|
3076
3881
|
type: "subgraph";
|
|
3077
3882
|
id: string;
|
|
@@ -3093,10 +3898,10 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3093
3898
|
question?: string | undefined;
|
|
3094
3899
|
timeout?: number | undefined;
|
|
3095
3900
|
} | undefined;
|
|
3096
|
-
config?: {
|
|
3097
|
-
skillId
|
|
3098
|
-
skillCode
|
|
3099
|
-
} | undefined;
|
|
3901
|
+
config?: z.objectInputType<{
|
|
3902
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
3903
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
3904
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3100
3905
|
subgraphId?: string | undefined;
|
|
3101
3906
|
} | {
|
|
3102
3907
|
type: "human";
|
|
@@ -3119,12 +3924,12 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3119
3924
|
question?: string | undefined;
|
|
3120
3925
|
timeout?: number | undefined;
|
|
3121
3926
|
} | undefined;
|
|
3122
|
-
config?: {
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
} | undefined;
|
|
3927
|
+
config?: z.objectInputType<{
|
|
3928
|
+
question: z.ZodOptional<z.ZodString>;
|
|
3929
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3930
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3126
3931
|
} | {
|
|
3127
|
-
type: "
|
|
3932
|
+
type: "code";
|
|
3128
3933
|
id: string;
|
|
3129
3934
|
description?: string | undefined;
|
|
3130
3935
|
label?: string | undefined;
|
|
@@ -3144,16 +3949,14 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3144
3949
|
question?: string | undefined;
|
|
3145
3950
|
timeout?: number | undefined;
|
|
3146
3951
|
} | undefined;
|
|
3147
|
-
config?: {
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
} | undefined;
|
|
3154
|
-
branches?: string[] | undefined;
|
|
3952
|
+
config?: z.objectInputType<{
|
|
3953
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3954
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
3955
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3956
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
3957
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3155
3958
|
} | {
|
|
3156
|
-
type: "
|
|
3959
|
+
type: "rag";
|
|
3157
3960
|
id: string;
|
|
3158
3961
|
description?: string | undefined;
|
|
3159
3962
|
label?: string | undefined;
|
|
@@ -3174,10 +3977,99 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3174
3977
|
timeout?: number | undefined;
|
|
3175
3978
|
} | undefined;
|
|
3176
3979
|
config?: z.objectInputType<{
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3980
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3981
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
3982
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
3983
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3984
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
3985
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
3986
|
+
maxRetries: z.ZodNumber;
|
|
3987
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
3988
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
3989
|
+
baseDelay: z.ZodNumber;
|
|
3990
|
+
maxDelay: z.ZodNumber;
|
|
3991
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
3992
|
+
}, "strict", z.ZodTypeAny, {
|
|
3993
|
+
type: "exponential" | "linear" | "fixed";
|
|
3994
|
+
baseDelay: number;
|
|
3995
|
+
maxDelay: number;
|
|
3996
|
+
jitter?: number | undefined;
|
|
3997
|
+
}, {
|
|
3998
|
+
type: "exponential" | "linear" | "fixed";
|
|
3999
|
+
baseDelay: number;
|
|
4000
|
+
maxDelay: number;
|
|
4001
|
+
jitter?: number | undefined;
|
|
4002
|
+
}>>;
|
|
4003
|
+
}, "strict", z.ZodTypeAny, {
|
|
4004
|
+
maxRetries: number;
|
|
4005
|
+
backoff?: {
|
|
4006
|
+
type: "exponential" | "linear" | "fixed";
|
|
4007
|
+
baseDelay: number;
|
|
4008
|
+
maxDelay: number;
|
|
4009
|
+
jitter?: number | undefined;
|
|
4010
|
+
} | undefined;
|
|
4011
|
+
}, {
|
|
4012
|
+
maxRetries: number;
|
|
4013
|
+
backoff?: {
|
|
4014
|
+
type: "exponential" | "linear" | "fixed";
|
|
4015
|
+
baseDelay: number;
|
|
4016
|
+
maxDelay: number;
|
|
4017
|
+
jitter?: number | undefined;
|
|
4018
|
+
} | undefined;
|
|
4019
|
+
}>>;
|
|
4020
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
4021
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4022
|
+
type: z.ZodString;
|
|
4023
|
+
id: z.ZodString;
|
|
4024
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4025
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4026
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4027
|
+
type: z.ZodString;
|
|
4028
|
+
id: z.ZodString;
|
|
4029
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4030
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4031
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4032
|
+
type: z.ZodString;
|
|
4033
|
+
id: z.ZodString;
|
|
4034
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4035
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4036
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
4037
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4038
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4039
|
+
type: z.ZodString;
|
|
4040
|
+
id: z.ZodString;
|
|
4041
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4042
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4043
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4044
|
+
type: z.ZodString;
|
|
4045
|
+
id: z.ZodString;
|
|
4046
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4047
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4048
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4049
|
+
type: z.ZodString;
|
|
4050
|
+
id: z.ZodString;
|
|
4051
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4052
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4053
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
4054
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4055
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4056
|
+
type: z.ZodString;
|
|
4057
|
+
id: z.ZodString;
|
|
4058
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4059
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4060
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4061
|
+
type: z.ZodString;
|
|
4062
|
+
id: z.ZodString;
|
|
4063
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4064
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4065
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4066
|
+
type: z.ZodString;
|
|
4067
|
+
id: z.ZodString;
|
|
4068
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4069
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4070
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
4071
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
4072
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3181
4073
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3182
4074
|
})[];
|
|
3183
4075
|
edges: {
|
|
@@ -3197,12 +4089,12 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3197
4089
|
version?: string | undefined;
|
|
3198
4090
|
state?: Record<string, string> | undefined;
|
|
3199
4091
|
conditionalEdges?: {
|
|
4092
|
+
from: string;
|
|
3200
4093
|
branches: {
|
|
3201
4094
|
value: string;
|
|
3202
4095
|
to: string;
|
|
3203
4096
|
description?: string | undefined;
|
|
3204
4097
|
}[];
|
|
3205
|
-
from: string;
|
|
3206
4098
|
conditionFn?: string | undefined;
|
|
3207
4099
|
fallback?: string | undefined;
|
|
3208
4100
|
}[] | undefined;
|