@gt-fe/eap-sdk 0.1.13 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +140 -70
- package/dist/materialization/index.d.ts +0 -1
- package/dist/materialization/index.d.ts.map +1 -1
- package/dist/materialization/index.js +0 -1
- package/dist/materialization/index.js.map +1 -1
- 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 +11 -17
- 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/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/schema/agent/manifest.d.ts +1029 -98
- package/dist/schema/agent/manifest.d.ts.map +1 -1
- package/dist/schema/graph.d.ts +1538 -252
- package/dist/schema/graph.d.ts.map +1 -1
- package/dist/schema/graph.js +30 -5
- package/dist/schema/graph.js.map +1 -1
- package/dist/schema/lockfile.d.ts +30 -30
- 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 +407 -0
- package/dist/service/create-agent.js.map +1 -0
- package/dist/service/events.d.ts +12 -45
- package/dist/service/events.d.ts.map +1 -1
- package/dist/service/events.js +45 -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/package.json +2 -2
- 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>;
|
|
@@ -1085,19 +1095,31 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1085
1095
|
id: string;
|
|
1086
1096
|
fn?: string | undefined;
|
|
1087
1097
|
}>, "many">>;
|
|
1088
|
-
}, "
|
|
1089
|
-
branches
|
|
1090
|
-
tasks
|
|
1098
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1099
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1100
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1101
|
+
id: z.ZodString;
|
|
1102
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
}, "strict", z.ZodTypeAny, {
|
|
1091
1104
|
id: string;
|
|
1092
1105
|
fn?: string | undefined;
|
|
1093
|
-
}
|
|
1094
|
-
}, {
|
|
1095
|
-
branches?: string[] | undefined;
|
|
1096
|
-
tasks?: {
|
|
1106
|
+
}, {
|
|
1097
1107
|
id: string;
|
|
1098
1108
|
fn?: string | undefined;
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1109
|
+
}>, "many">>;
|
|
1110
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1111
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1112
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1113
|
+
id: z.ZodString;
|
|
1114
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
}, "strict", z.ZodTypeAny, {
|
|
1116
|
+
id: string;
|
|
1117
|
+
fn?: string | undefined;
|
|
1118
|
+
}, {
|
|
1119
|
+
id: string;
|
|
1120
|
+
fn?: string | undefined;
|
|
1121
|
+
}>, "many">>;
|
|
1122
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1101
1123
|
}, "strict", z.ZodTypeAny, {
|
|
1102
1124
|
type: "parallel";
|
|
1103
1125
|
id: string;
|
|
@@ -1107,6 +1129,8 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1107
1129
|
id: string;
|
|
1108
1130
|
fn?: string | undefined;
|
|
1109
1131
|
}[] | undefined;
|
|
1132
|
+
} & {
|
|
1133
|
+
[k: string]: unknown;
|
|
1110
1134
|
};
|
|
1111
1135
|
description?: string | undefined;
|
|
1112
1136
|
label?: string | undefined;
|
|
@@ -1148,13 +1172,19 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1148
1172
|
question?: string | undefined;
|
|
1149
1173
|
timeout?: number | undefined;
|
|
1150
1174
|
} | undefined;
|
|
1151
|
-
config?: {
|
|
1152
|
-
branches
|
|
1153
|
-
tasks
|
|
1175
|
+
config?: z.objectInputType<{
|
|
1176
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1177
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1178
|
+
id: z.ZodString;
|
|
1179
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
}, "strict", z.ZodTypeAny, {
|
|
1154
1181
|
id: string;
|
|
1155
1182
|
fn?: string | undefined;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1183
|
+
}, {
|
|
1184
|
+
id: string;
|
|
1185
|
+
fn?: string | undefined;
|
|
1186
|
+
}>, "many">>;
|
|
1187
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1158
1188
|
branches?: string[] | undefined;
|
|
1159
1189
|
}>, z.ZodObject<{
|
|
1160
1190
|
id: z.ZodString;
|
|
@@ -1288,15 +1318,72 @@ export declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1288
1318
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1289
1319
|
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
1290
1320
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1321
|
+
}>, z.ZodObject<{
|
|
1322
|
+
id: z.ZodString;
|
|
1323
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1324
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1326
|
+
maxRetries: z.ZodNumber;
|
|
1327
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1328
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1329
|
+
baseDelay: z.ZodNumber;
|
|
1330
|
+
maxDelay: z.ZodNumber;
|
|
1331
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1332
|
+
}, "strict", z.ZodTypeAny, {
|
|
1333
|
+
type: "exponential" | "linear" | "fixed";
|
|
1334
|
+
baseDelay: number;
|
|
1335
|
+
maxDelay: number;
|
|
1336
|
+
jitter?: number | undefined;
|
|
1337
|
+
}, {
|
|
1338
|
+
type: "exponential" | "linear" | "fixed";
|
|
1339
|
+
baseDelay: number;
|
|
1340
|
+
maxDelay: number;
|
|
1341
|
+
jitter?: number | undefined;
|
|
1342
|
+
}>>;
|
|
1343
|
+
}, "strict", z.ZodTypeAny, {
|
|
1344
|
+
maxRetries: number;
|
|
1345
|
+
backoff?: {
|
|
1346
|
+
type: "exponential" | "linear" | "fixed";
|
|
1347
|
+
baseDelay: number;
|
|
1348
|
+
maxDelay: number;
|
|
1349
|
+
jitter?: number | undefined;
|
|
1350
|
+
} | undefined;
|
|
1351
|
+
}, {
|
|
1352
|
+
maxRetries: number;
|
|
1353
|
+
backoff?: {
|
|
1354
|
+
type: "exponential" | "linear" | "fixed";
|
|
1355
|
+
baseDelay: number;
|
|
1356
|
+
maxDelay: number;
|
|
1357
|
+
jitter?: number | undefined;
|
|
1358
|
+
} | undefined;
|
|
1359
|
+
}>>;
|
|
1360
|
+
interrupt: z.ZodOptional<z.ZodObject<{
|
|
1361
|
+
before: z.ZodOptional<z.ZodBoolean>;
|
|
1362
|
+
after: z.ZodOptional<z.ZodBoolean>;
|
|
1363
|
+
question: z.ZodOptional<z.ZodString>;
|
|
1364
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1365
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1366
|
+
}, "strict", z.ZodTypeAny, {
|
|
1367
|
+
options?: string[] | undefined;
|
|
1368
|
+
before?: boolean | undefined;
|
|
1369
|
+
after?: boolean | undefined;
|
|
1370
|
+
question?: string | undefined;
|
|
1371
|
+
timeout?: number | undefined;
|
|
1372
|
+
}, {
|
|
1373
|
+
options?: string[] | undefined;
|
|
1374
|
+
before?: boolean | undefined;
|
|
1375
|
+
after?: boolean | undefined;
|
|
1376
|
+
question?: string | undefined;
|
|
1377
|
+
timeout?: number | undefined;
|
|
1378
|
+
}>>;
|
|
1379
|
+
} & {
|
|
1380
|
+
type: z.ZodLiteral<"rag">;
|
|
1381
|
+
config: z.ZodDefault<z.ZodObject<{
|
|
1382
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1383
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
1384
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1385
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1386
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1300
1387
|
retry: z.ZodOptional<z.ZodObject<{
|
|
1301
1388
|
maxRetries: z.ZodNumber;
|
|
1302
1389
|
backoff: z.ZodOptional<z.ZodObject<{
|
|
@@ -1332,43 +1419,503 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
1332
1419
|
jitter?: number | undefined;
|
|
1333
1420
|
} | undefined;
|
|
1334
1421
|
}>>;
|
|
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
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1422
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
1423
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1424
|
+
type: z.ZodString;
|
|
1425
|
+
id: z.ZodString;
|
|
1426
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1427
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1429
|
+
type: z.ZodString;
|
|
1430
|
+
id: z.ZodString;
|
|
1431
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1432
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1433
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1434
|
+
type: z.ZodString;
|
|
1435
|
+
id: z.ZodString;
|
|
1436
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1439
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1440
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1441
|
+
type: z.ZodString;
|
|
1442
|
+
id: z.ZodString;
|
|
1443
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1444
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1445
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1446
|
+
type: z.ZodString;
|
|
1447
|
+
id: z.ZodString;
|
|
1448
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1449
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1450
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1451
|
+
type: z.ZodString;
|
|
1452
|
+
id: z.ZodString;
|
|
1453
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1454
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1455
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1456
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1457
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1458
|
+
type: z.ZodString;
|
|
1459
|
+
id: z.ZodString;
|
|
1460
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1461
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1462
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1463
|
+
type: z.ZodString;
|
|
1464
|
+
id: z.ZodString;
|
|
1465
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1466
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1467
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1468
|
+
type: z.ZodString;
|
|
1469
|
+
id: z.ZodString;
|
|
1470
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1473
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1474
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1475
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1476
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
1478
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1479
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1480
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1481
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1482
|
+
maxRetries: z.ZodNumber;
|
|
1483
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1484
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1485
|
+
baseDelay: z.ZodNumber;
|
|
1486
|
+
maxDelay: z.ZodNumber;
|
|
1487
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1488
|
+
}, "strict", z.ZodTypeAny, {
|
|
1489
|
+
type: "exponential" | "linear" | "fixed";
|
|
1490
|
+
baseDelay: number;
|
|
1491
|
+
maxDelay: number;
|
|
1492
|
+
jitter?: number | undefined;
|
|
1493
|
+
}, {
|
|
1494
|
+
type: "exponential" | "linear" | "fixed";
|
|
1495
|
+
baseDelay: number;
|
|
1496
|
+
maxDelay: number;
|
|
1497
|
+
jitter?: number | undefined;
|
|
1498
|
+
}>>;
|
|
1499
|
+
}, "strict", z.ZodTypeAny, {
|
|
1500
|
+
maxRetries: number;
|
|
1501
|
+
backoff?: {
|
|
1502
|
+
type: "exponential" | "linear" | "fixed";
|
|
1503
|
+
baseDelay: number;
|
|
1504
|
+
maxDelay: number;
|
|
1505
|
+
jitter?: number | undefined;
|
|
1506
|
+
} | undefined;
|
|
1507
|
+
}, {
|
|
1508
|
+
maxRetries: number;
|
|
1509
|
+
backoff?: {
|
|
1510
|
+
type: "exponential" | "linear" | "fixed";
|
|
1511
|
+
baseDelay: number;
|
|
1512
|
+
maxDelay: number;
|
|
1513
|
+
jitter?: number | undefined;
|
|
1514
|
+
} | undefined;
|
|
1515
|
+
}>>;
|
|
1516
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
1517
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1518
|
+
type: z.ZodString;
|
|
1519
|
+
id: z.ZodString;
|
|
1520
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1521
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1522
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1523
|
+
type: z.ZodString;
|
|
1524
|
+
id: z.ZodString;
|
|
1525
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1527
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1528
|
+
type: z.ZodString;
|
|
1529
|
+
id: z.ZodString;
|
|
1530
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1532
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1533
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1534
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1535
|
+
type: z.ZodString;
|
|
1536
|
+
id: z.ZodString;
|
|
1537
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1538
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1539
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1540
|
+
type: z.ZodString;
|
|
1541
|
+
id: z.ZodString;
|
|
1542
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1543
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1544
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1545
|
+
type: z.ZodString;
|
|
1546
|
+
id: z.ZodString;
|
|
1547
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1548
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1549
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1550
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1551
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1552
|
+
type: z.ZodString;
|
|
1553
|
+
id: z.ZodString;
|
|
1554
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1557
|
+
type: z.ZodString;
|
|
1558
|
+
id: z.ZodString;
|
|
1559
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1561
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1562
|
+
type: z.ZodString;
|
|
1563
|
+
id: z.ZodString;
|
|
1564
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1566
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1567
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1568
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1569
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1570
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
1572
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1573
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1574
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1575
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1576
|
+
maxRetries: z.ZodNumber;
|
|
1577
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1578
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1579
|
+
baseDelay: z.ZodNumber;
|
|
1580
|
+
maxDelay: z.ZodNumber;
|
|
1581
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1582
|
+
}, "strict", z.ZodTypeAny, {
|
|
1583
|
+
type: "exponential" | "linear" | "fixed";
|
|
1584
|
+
baseDelay: number;
|
|
1585
|
+
maxDelay: number;
|
|
1586
|
+
jitter?: number | undefined;
|
|
1587
|
+
}, {
|
|
1588
|
+
type: "exponential" | "linear" | "fixed";
|
|
1589
|
+
baseDelay: number;
|
|
1590
|
+
maxDelay: number;
|
|
1591
|
+
jitter?: number | undefined;
|
|
1592
|
+
}>>;
|
|
1593
|
+
}, "strict", z.ZodTypeAny, {
|
|
1594
|
+
maxRetries: number;
|
|
1595
|
+
backoff?: {
|
|
1596
|
+
type: "exponential" | "linear" | "fixed";
|
|
1597
|
+
baseDelay: number;
|
|
1598
|
+
maxDelay: number;
|
|
1599
|
+
jitter?: number | undefined;
|
|
1600
|
+
} | undefined;
|
|
1601
|
+
}, {
|
|
1602
|
+
maxRetries: number;
|
|
1603
|
+
backoff?: {
|
|
1604
|
+
type: "exponential" | "linear" | "fixed";
|
|
1605
|
+
baseDelay: number;
|
|
1606
|
+
maxDelay: number;
|
|
1607
|
+
jitter?: number | undefined;
|
|
1608
|
+
} | undefined;
|
|
1609
|
+
}>>;
|
|
1610
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
1611
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1612
|
+
type: z.ZodString;
|
|
1613
|
+
id: z.ZodString;
|
|
1614
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1615
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1616
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1617
|
+
type: z.ZodString;
|
|
1618
|
+
id: z.ZodString;
|
|
1619
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1620
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1621
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1622
|
+
type: z.ZodString;
|
|
1623
|
+
id: z.ZodString;
|
|
1624
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1625
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1626
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1627
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1628
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1629
|
+
type: z.ZodString;
|
|
1630
|
+
id: z.ZodString;
|
|
1631
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1632
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1633
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1634
|
+
type: z.ZodString;
|
|
1635
|
+
id: z.ZodString;
|
|
1636
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1637
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1638
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1639
|
+
type: z.ZodString;
|
|
1640
|
+
id: z.ZodString;
|
|
1641
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1642
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1644
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1645
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1646
|
+
type: z.ZodString;
|
|
1647
|
+
id: z.ZodString;
|
|
1648
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1649
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1650
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1651
|
+
type: z.ZodString;
|
|
1652
|
+
id: z.ZodString;
|
|
1653
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1654
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1656
|
+
type: z.ZodString;
|
|
1657
|
+
id: z.ZodString;
|
|
1658
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1660
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1661
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1662
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1663
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1664
|
+
}, "strict", z.ZodTypeAny, {
|
|
1665
|
+
type: "rag";
|
|
1666
|
+
id: string;
|
|
1667
|
+
config: {
|
|
1668
|
+
retry?: {
|
|
1669
|
+
maxRetries: number;
|
|
1670
|
+
backoff?: {
|
|
1671
|
+
type: "exponential" | "linear" | "fixed";
|
|
1672
|
+
baseDelay: number;
|
|
1673
|
+
maxDelay: number;
|
|
1674
|
+
jitter?: number | undefined;
|
|
1675
|
+
} | undefined;
|
|
1676
|
+
} | undefined;
|
|
1677
|
+
model?: string | undefined;
|
|
1678
|
+
totalK?: number | undefined;
|
|
1679
|
+
maxIterations?: number | undefined;
|
|
1680
|
+
quota?: Record<string, number> | undefined;
|
|
1681
|
+
nearDupThreshold?: number | undefined;
|
|
1682
|
+
retrievalSources?: z.objectOutputType<{
|
|
1683
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1684
|
+
type: z.ZodString;
|
|
1685
|
+
id: z.ZodString;
|
|
1686
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1689
|
+
type: z.ZodString;
|
|
1690
|
+
id: z.ZodString;
|
|
1691
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1692
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1693
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1694
|
+
type: z.ZodString;
|
|
1695
|
+
id: z.ZodString;
|
|
1696
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1699
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1700
|
+
toolSources?: Record<string, string> | undefined;
|
|
1701
|
+
} & {
|
|
1702
|
+
[k: string]: unknown;
|
|
1703
|
+
};
|
|
1704
|
+
description?: string | undefined;
|
|
1705
|
+
label?: string | undefined;
|
|
1706
|
+
retry?: {
|
|
1707
|
+
maxRetries: number;
|
|
1708
|
+
backoff?: {
|
|
1709
|
+
type: "exponential" | "linear" | "fixed";
|
|
1710
|
+
baseDelay: number;
|
|
1711
|
+
maxDelay: number;
|
|
1712
|
+
jitter?: number | undefined;
|
|
1713
|
+
} | undefined;
|
|
1714
|
+
} | undefined;
|
|
1715
|
+
interrupt?: {
|
|
1716
|
+
options?: string[] | undefined;
|
|
1717
|
+
before?: boolean | undefined;
|
|
1718
|
+
after?: boolean | undefined;
|
|
1719
|
+
question?: string | undefined;
|
|
1720
|
+
timeout?: number | undefined;
|
|
1721
|
+
} | undefined;
|
|
1722
|
+
}, {
|
|
1723
|
+
type: "rag";
|
|
1724
|
+
id: string;
|
|
1725
|
+
description?: string | undefined;
|
|
1726
|
+
label?: string | undefined;
|
|
1727
|
+
retry?: {
|
|
1728
|
+
maxRetries: number;
|
|
1729
|
+
backoff?: {
|
|
1730
|
+
type: "exponential" | "linear" | "fixed";
|
|
1731
|
+
baseDelay: number;
|
|
1732
|
+
maxDelay: number;
|
|
1733
|
+
jitter?: number | undefined;
|
|
1734
|
+
} | undefined;
|
|
1735
|
+
} | undefined;
|
|
1736
|
+
interrupt?: {
|
|
1737
|
+
options?: string[] | undefined;
|
|
1738
|
+
before?: boolean | undefined;
|
|
1739
|
+
after?: boolean | undefined;
|
|
1740
|
+
question?: string | undefined;
|
|
1741
|
+
timeout?: number | undefined;
|
|
1742
|
+
} | undefined;
|
|
1743
|
+
config?: z.objectInputType<{
|
|
1744
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1745
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
1746
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1747
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1748
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1749
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1750
|
+
maxRetries: z.ZodNumber;
|
|
1751
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1752
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1753
|
+
baseDelay: z.ZodNumber;
|
|
1754
|
+
maxDelay: z.ZodNumber;
|
|
1755
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1756
|
+
}, "strict", z.ZodTypeAny, {
|
|
1757
|
+
type: "exponential" | "linear" | "fixed";
|
|
1758
|
+
baseDelay: number;
|
|
1759
|
+
maxDelay: number;
|
|
1760
|
+
jitter?: number | undefined;
|
|
1761
|
+
}, {
|
|
1762
|
+
type: "exponential" | "linear" | "fixed";
|
|
1763
|
+
baseDelay: number;
|
|
1764
|
+
maxDelay: number;
|
|
1765
|
+
jitter?: number | undefined;
|
|
1766
|
+
}>>;
|
|
1767
|
+
}, "strict", z.ZodTypeAny, {
|
|
1768
|
+
maxRetries: number;
|
|
1769
|
+
backoff?: {
|
|
1770
|
+
type: "exponential" | "linear" | "fixed";
|
|
1771
|
+
baseDelay: number;
|
|
1772
|
+
maxDelay: number;
|
|
1773
|
+
jitter?: number | undefined;
|
|
1774
|
+
} | undefined;
|
|
1775
|
+
}, {
|
|
1776
|
+
maxRetries: number;
|
|
1777
|
+
backoff?: {
|
|
1778
|
+
type: "exponential" | "linear" | "fixed";
|
|
1779
|
+
baseDelay: number;
|
|
1780
|
+
maxDelay: number;
|
|
1781
|
+
jitter?: number | undefined;
|
|
1782
|
+
} | undefined;
|
|
1783
|
+
}>>;
|
|
1784
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
1785
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1786
|
+
type: z.ZodString;
|
|
1787
|
+
id: z.ZodString;
|
|
1788
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1789
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1790
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1791
|
+
type: z.ZodString;
|
|
1792
|
+
id: z.ZodString;
|
|
1793
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1794
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1796
|
+
type: z.ZodString;
|
|
1797
|
+
id: z.ZodString;
|
|
1798
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1799
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1800
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1801
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1802
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1803
|
+
type: z.ZodString;
|
|
1804
|
+
id: z.ZodString;
|
|
1805
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1806
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1807
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1808
|
+
type: z.ZodString;
|
|
1809
|
+
id: z.ZodString;
|
|
1810
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1812
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1813
|
+
type: z.ZodString;
|
|
1814
|
+
id: z.ZodString;
|
|
1815
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1816
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1818
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1819
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1820
|
+
type: z.ZodString;
|
|
1821
|
+
id: z.ZodString;
|
|
1822
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1823
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1824
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1825
|
+
type: z.ZodString;
|
|
1826
|
+
id: z.ZodString;
|
|
1827
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1828
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1829
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1830
|
+
type: z.ZodString;
|
|
1831
|
+
id: z.ZodString;
|
|
1832
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1833
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
1835
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1836
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1837
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1838
|
+
}>]>;
|
|
1839
|
+
export declare const GraphSchema: z.ZodObject<{
|
|
1840
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1841
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1843
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1844
|
+
id: z.ZodString;
|
|
1845
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1846
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1847
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1848
|
+
maxRetries: z.ZodNumber;
|
|
1849
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1850
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1851
|
+
baseDelay: z.ZodNumber;
|
|
1852
|
+
maxDelay: z.ZodNumber;
|
|
1853
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1854
|
+
}, "strict", z.ZodTypeAny, {
|
|
1855
|
+
type: "exponential" | "linear" | "fixed";
|
|
1856
|
+
baseDelay: number;
|
|
1857
|
+
maxDelay: number;
|
|
1858
|
+
jitter?: number | undefined;
|
|
1859
|
+
}, {
|
|
1860
|
+
type: "exponential" | "linear" | "fixed";
|
|
1861
|
+
baseDelay: number;
|
|
1862
|
+
maxDelay: number;
|
|
1863
|
+
jitter?: number | undefined;
|
|
1864
|
+
}>>;
|
|
1865
|
+
}, "strict", z.ZodTypeAny, {
|
|
1866
|
+
maxRetries: number;
|
|
1867
|
+
backoff?: {
|
|
1868
|
+
type: "exponential" | "linear" | "fixed";
|
|
1869
|
+
baseDelay: number;
|
|
1870
|
+
maxDelay: number;
|
|
1871
|
+
jitter?: number | undefined;
|
|
1872
|
+
} | undefined;
|
|
1873
|
+
}, {
|
|
1874
|
+
maxRetries: number;
|
|
1875
|
+
backoff?: {
|
|
1876
|
+
type: "exponential" | "linear" | "fixed";
|
|
1877
|
+
baseDelay: number;
|
|
1878
|
+
maxDelay: number;
|
|
1879
|
+
jitter?: number | undefined;
|
|
1880
|
+
} | undefined;
|
|
1881
|
+
}>>;
|
|
1882
|
+
interrupt: z.ZodOptional<z.ZodObject<{
|
|
1883
|
+
before: z.ZodOptional<z.ZodBoolean>;
|
|
1884
|
+
after: z.ZodOptional<z.ZodBoolean>;
|
|
1885
|
+
question: z.ZodOptional<z.ZodString>;
|
|
1886
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1887
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1888
|
+
}, "strict", z.ZodTypeAny, {
|
|
1889
|
+
options?: string[] | undefined;
|
|
1890
|
+
before?: boolean | undefined;
|
|
1891
|
+
after?: boolean | undefined;
|
|
1892
|
+
question?: string | undefined;
|
|
1893
|
+
timeout?: number | undefined;
|
|
1894
|
+
}, {
|
|
1895
|
+
options?: string[] | undefined;
|
|
1896
|
+
before?: boolean | undefined;
|
|
1897
|
+
after?: boolean | undefined;
|
|
1898
|
+
question?: string | undefined;
|
|
1899
|
+
timeout?: number | undefined;
|
|
1900
|
+
}>>;
|
|
1901
|
+
} & {
|
|
1902
|
+
type: z.ZodLiteral<"llm">;
|
|
1903
|
+
config: z.ZodDefault<z.ZodObject<{
|
|
1904
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1905
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
1906
|
+
systemPromptFile: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1908
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1909
|
+
outputKey: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1911
|
+
maxRetries: z.ZodNumber;
|
|
1912
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
1913
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
1914
|
+
baseDelay: z.ZodNumber;
|
|
1915
|
+
maxDelay: z.ZodNumber;
|
|
1916
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
1917
|
+
}, "strict", z.ZodTypeAny, {
|
|
1918
|
+
type: "exponential" | "linear" | "fixed";
|
|
1372
1919
|
baseDelay: number;
|
|
1373
1920
|
maxDelay: number;
|
|
1374
1921
|
jitter?: number | undefined;
|
|
@@ -1876,19 +2423,21 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
1876
2423
|
config: z.ZodObject<{
|
|
1877
2424
|
tool: z.ZodString;
|
|
1878
2425
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1879
|
-
}, "
|
|
1880
|
-
tool:
|
|
1881
|
-
arguments
|
|
1882
|
-
}, {
|
|
1883
|
-
tool:
|
|
1884
|
-
arguments
|
|
1885
|
-
}
|
|
2426
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2427
|
+
tool: z.ZodString;
|
|
2428
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2429
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2430
|
+
tool: z.ZodString;
|
|
2431
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2432
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1886
2433
|
}, "strict", z.ZodTypeAny, {
|
|
1887
2434
|
type: "tool";
|
|
1888
2435
|
id: string;
|
|
1889
2436
|
config: {
|
|
1890
2437
|
tool: string;
|
|
1891
2438
|
arguments?: Record<string, unknown> | undefined;
|
|
2439
|
+
} & {
|
|
2440
|
+
[k: string]: unknown;
|
|
1892
2441
|
};
|
|
1893
2442
|
description?: string | undefined;
|
|
1894
2443
|
label?: string | undefined;
|
|
@@ -1914,6 +2463,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
1914
2463
|
config: {
|
|
1915
2464
|
tool: string;
|
|
1916
2465
|
arguments?: Record<string, unknown> | undefined;
|
|
2466
|
+
} & {
|
|
2467
|
+
[k: string]: unknown;
|
|
1917
2468
|
};
|
|
1918
2469
|
description?: string | undefined;
|
|
1919
2470
|
label?: string | undefined;
|
|
@@ -1998,17 +2549,17 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
1998
2549
|
conditionFn: z.ZodOptional<z.ZodString>;
|
|
1999
2550
|
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2000
2551
|
fallback: z.ZodOptional<z.ZodString>;
|
|
2001
|
-
}, "
|
|
2002
|
-
conditionExpr
|
|
2003
|
-
conditionFn
|
|
2004
|
-
branchValues
|
|
2005
|
-
fallback
|
|
2006
|
-
}, {
|
|
2007
|
-
conditionExpr
|
|
2008
|
-
conditionFn
|
|
2009
|
-
branchValues
|
|
2010
|
-
fallback
|
|
2011
|
-
}
|
|
2552
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2553
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
2554
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
2555
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2556
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
2557
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2558
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
2559
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
2560
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2561
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
2562
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2012
2563
|
}, "strict", z.ZodTypeAny, {
|
|
2013
2564
|
type: "condition";
|
|
2014
2565
|
id: string;
|
|
@@ -2017,6 +2568,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2017
2568
|
conditionFn?: string | undefined;
|
|
2018
2569
|
branchValues?: string[] | undefined;
|
|
2019
2570
|
fallback?: string | undefined;
|
|
2571
|
+
} & {
|
|
2572
|
+
[k: string]: unknown;
|
|
2020
2573
|
};
|
|
2021
2574
|
description?: string | undefined;
|
|
2022
2575
|
label?: string | undefined;
|
|
@@ -2057,12 +2610,137 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2057
2610
|
question?: string | undefined;
|
|
2058
2611
|
timeout?: number | undefined;
|
|
2059
2612
|
} | undefined;
|
|
2060
|
-
config?: {
|
|
2061
|
-
conditionExpr
|
|
2062
|
-
conditionFn
|
|
2063
|
-
branchValues
|
|
2064
|
-
fallback
|
|
2613
|
+
config?: z.objectInputType<{
|
|
2614
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
2615
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
2616
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2617
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
2618
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2619
|
+
}>, z.ZodObject<{
|
|
2620
|
+
id: z.ZodString;
|
|
2621
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2622
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2623
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
2624
|
+
maxRetries: z.ZodNumber;
|
|
2625
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
2626
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
2627
|
+
baseDelay: z.ZodNumber;
|
|
2628
|
+
maxDelay: z.ZodNumber;
|
|
2629
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
2630
|
+
}, "strict", z.ZodTypeAny, {
|
|
2631
|
+
type: "exponential" | "linear" | "fixed";
|
|
2632
|
+
baseDelay: number;
|
|
2633
|
+
maxDelay: number;
|
|
2634
|
+
jitter?: number | undefined;
|
|
2635
|
+
}, {
|
|
2636
|
+
type: "exponential" | "linear" | "fixed";
|
|
2637
|
+
baseDelay: number;
|
|
2638
|
+
maxDelay: number;
|
|
2639
|
+
jitter?: number | undefined;
|
|
2640
|
+
}>>;
|
|
2641
|
+
}, "strict", z.ZodTypeAny, {
|
|
2642
|
+
maxRetries: number;
|
|
2643
|
+
backoff?: {
|
|
2644
|
+
type: "exponential" | "linear" | "fixed";
|
|
2645
|
+
baseDelay: number;
|
|
2646
|
+
maxDelay: number;
|
|
2647
|
+
jitter?: number | undefined;
|
|
2648
|
+
} | undefined;
|
|
2649
|
+
}, {
|
|
2650
|
+
maxRetries: number;
|
|
2651
|
+
backoff?: {
|
|
2652
|
+
type: "exponential" | "linear" | "fixed";
|
|
2653
|
+
baseDelay: number;
|
|
2654
|
+
maxDelay: number;
|
|
2655
|
+
jitter?: number | undefined;
|
|
2656
|
+
} | undefined;
|
|
2657
|
+
}>>;
|
|
2658
|
+
interrupt: z.ZodOptional<z.ZodObject<{
|
|
2659
|
+
before: z.ZodOptional<z.ZodBoolean>;
|
|
2660
|
+
after: z.ZodOptional<z.ZodBoolean>;
|
|
2661
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2662
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2663
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2664
|
+
}, "strict", z.ZodTypeAny, {
|
|
2665
|
+
options?: string[] | undefined;
|
|
2666
|
+
before?: boolean | undefined;
|
|
2667
|
+
after?: boolean | undefined;
|
|
2668
|
+
question?: string | undefined;
|
|
2669
|
+
timeout?: number | undefined;
|
|
2670
|
+
}, {
|
|
2671
|
+
options?: string[] | undefined;
|
|
2672
|
+
before?: boolean | undefined;
|
|
2673
|
+
after?: boolean | undefined;
|
|
2674
|
+
question?: string | undefined;
|
|
2675
|
+
timeout?: number | undefined;
|
|
2676
|
+
}>>;
|
|
2677
|
+
} & {
|
|
2678
|
+
type: z.ZodLiteral<"subgraph">;
|
|
2679
|
+
subgraphId: z.ZodOptional<z.ZodString>;
|
|
2680
|
+
config: z.ZodDefault<z.ZodObject<{
|
|
2681
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
2682
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
2683
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2684
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
2685
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
2686
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2687
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
2688
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
2689
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2690
|
+
}, "strict", z.ZodTypeAny, {
|
|
2691
|
+
type: "subgraph";
|
|
2692
|
+
id: string;
|
|
2693
|
+
config: {
|
|
2694
|
+
skillId?: string | undefined;
|
|
2695
|
+
skillCode?: string | undefined;
|
|
2696
|
+
} & {
|
|
2697
|
+
[k: string]: unknown;
|
|
2698
|
+
};
|
|
2699
|
+
description?: string | undefined;
|
|
2700
|
+
label?: string | undefined;
|
|
2701
|
+
retry?: {
|
|
2702
|
+
maxRetries: number;
|
|
2703
|
+
backoff?: {
|
|
2704
|
+
type: "exponential" | "linear" | "fixed";
|
|
2705
|
+
baseDelay: number;
|
|
2706
|
+
maxDelay: number;
|
|
2707
|
+
jitter?: number | undefined;
|
|
2708
|
+
} | undefined;
|
|
2065
2709
|
} | undefined;
|
|
2710
|
+
interrupt?: {
|
|
2711
|
+
options?: string[] | undefined;
|
|
2712
|
+
before?: boolean | undefined;
|
|
2713
|
+
after?: boolean | undefined;
|
|
2714
|
+
question?: string | undefined;
|
|
2715
|
+
timeout?: number | undefined;
|
|
2716
|
+
} | undefined;
|
|
2717
|
+
subgraphId?: string | undefined;
|
|
2718
|
+
}, {
|
|
2719
|
+
type: "subgraph";
|
|
2720
|
+
id: string;
|
|
2721
|
+
description?: string | undefined;
|
|
2722
|
+
label?: string | undefined;
|
|
2723
|
+
retry?: {
|
|
2724
|
+
maxRetries: number;
|
|
2725
|
+
backoff?: {
|
|
2726
|
+
type: "exponential" | "linear" | "fixed";
|
|
2727
|
+
baseDelay: number;
|
|
2728
|
+
maxDelay: number;
|
|
2729
|
+
jitter?: number | undefined;
|
|
2730
|
+
} | undefined;
|
|
2731
|
+
} | undefined;
|
|
2732
|
+
interrupt?: {
|
|
2733
|
+
options?: string[] | undefined;
|
|
2734
|
+
before?: boolean | undefined;
|
|
2735
|
+
after?: boolean | undefined;
|
|
2736
|
+
question?: string | undefined;
|
|
2737
|
+
timeout?: number | undefined;
|
|
2738
|
+
} | undefined;
|
|
2739
|
+
config?: z.objectInputType<{
|
|
2740
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
2741
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
2742
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2743
|
+
subgraphId?: string | undefined;
|
|
2066
2744
|
}>, z.ZodObject<{
|
|
2067
2745
|
id: z.ZodString;
|
|
2068
2746
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -2122,24 +2800,25 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2122
2800
|
timeout?: number | undefined;
|
|
2123
2801
|
}>>;
|
|
2124
2802
|
} & {
|
|
2125
|
-
type: z.ZodLiteral<"
|
|
2126
|
-
subgraphId: z.ZodOptional<z.ZodString>;
|
|
2803
|
+
type: z.ZodLiteral<"human">;
|
|
2127
2804
|
config: z.ZodDefault<z.ZodObject<{
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
}, "
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
}, {
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
}
|
|
2805
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2806
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2807
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2808
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2809
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2810
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2811
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2812
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2813
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2137
2814
|
}, "strict", z.ZodTypeAny, {
|
|
2138
|
-
type: "
|
|
2815
|
+
type: "human";
|
|
2139
2816
|
id: string;
|
|
2140
2817
|
config: {
|
|
2141
|
-
|
|
2142
|
-
|
|
2818
|
+
options?: string[] | undefined;
|
|
2819
|
+
question?: string | undefined;
|
|
2820
|
+
} & {
|
|
2821
|
+
[k: string]: unknown;
|
|
2143
2822
|
};
|
|
2144
2823
|
description?: string | undefined;
|
|
2145
2824
|
label?: string | undefined;
|
|
@@ -2159,9 +2838,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2159
2838
|
question?: string | undefined;
|
|
2160
2839
|
timeout?: number | undefined;
|
|
2161
2840
|
} | undefined;
|
|
2162
|
-
subgraphId?: string | undefined;
|
|
2163
2841
|
}, {
|
|
2164
|
-
type: "
|
|
2842
|
+
type: "human";
|
|
2165
2843
|
id: string;
|
|
2166
2844
|
description?: string | undefined;
|
|
2167
2845
|
label?: string | undefined;
|
|
@@ -2181,11 +2859,10 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2181
2859
|
question?: string | undefined;
|
|
2182
2860
|
timeout?: number | undefined;
|
|
2183
2861
|
} | undefined;
|
|
2184
|
-
config?: {
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
} | undefined;
|
|
2188
|
-
subgraphId?: string | undefined;
|
|
2862
|
+
config?: z.objectInputType<{
|
|
2863
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2864
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2865
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2189
2866
|
}>, z.ZodObject<{
|
|
2190
2867
|
id: z.ZodString;
|
|
2191
2868
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -2245,23 +2922,56 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2245
2922
|
timeout?: number | undefined;
|
|
2246
2923
|
}>>;
|
|
2247
2924
|
} & {
|
|
2248
|
-
type: z.ZodLiteral<"
|
|
2925
|
+
type: z.ZodLiteral<"parallel">;
|
|
2926
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2249
2927
|
config: z.ZodDefault<z.ZodObject<{
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2928
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2929
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2930
|
+
id: z.ZodString;
|
|
2931
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
2932
|
+
}, "strict", z.ZodTypeAny, {
|
|
2933
|
+
id: string;
|
|
2934
|
+
fn?: string | undefined;
|
|
2935
|
+
}, {
|
|
2936
|
+
id: string;
|
|
2937
|
+
fn?: string | undefined;
|
|
2938
|
+
}>, "many">>;
|
|
2939
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2940
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2941
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2942
|
+
id: z.ZodString;
|
|
2943
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
2944
|
+
}, "strict", z.ZodTypeAny, {
|
|
2945
|
+
id: string;
|
|
2946
|
+
fn?: string | undefined;
|
|
2947
|
+
}, {
|
|
2948
|
+
id: string;
|
|
2949
|
+
fn?: string | undefined;
|
|
2950
|
+
}>, "many">>;
|
|
2951
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2952
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2953
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2954
|
+
id: z.ZodString;
|
|
2955
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
2956
|
+
}, "strict", z.ZodTypeAny, {
|
|
2957
|
+
id: string;
|
|
2958
|
+
fn?: string | undefined;
|
|
2959
|
+
}, {
|
|
2960
|
+
id: string;
|
|
2961
|
+
fn?: string | undefined;
|
|
2962
|
+
}>, "many">>;
|
|
2963
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2259
2964
|
}, "strict", z.ZodTypeAny, {
|
|
2260
|
-
type: "
|
|
2965
|
+
type: "parallel";
|
|
2261
2966
|
id: string;
|
|
2262
2967
|
config: {
|
|
2263
|
-
|
|
2264
|
-
|
|
2968
|
+
branches?: string[] | undefined;
|
|
2969
|
+
tasks?: {
|
|
2970
|
+
id: string;
|
|
2971
|
+
fn?: string | undefined;
|
|
2972
|
+
}[] | undefined;
|
|
2973
|
+
} & {
|
|
2974
|
+
[k: string]: unknown;
|
|
2265
2975
|
};
|
|
2266
2976
|
description?: string | undefined;
|
|
2267
2977
|
label?: string | undefined;
|
|
@@ -2281,8 +2991,9 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2281
2991
|
question?: string | undefined;
|
|
2282
2992
|
timeout?: number | undefined;
|
|
2283
2993
|
} | undefined;
|
|
2994
|
+
branches?: string[] | undefined;
|
|
2284
2995
|
}, {
|
|
2285
|
-
type: "
|
|
2996
|
+
type: "parallel";
|
|
2286
2997
|
id: string;
|
|
2287
2998
|
description?: string | undefined;
|
|
2288
2999
|
label?: string | undefined;
|
|
@@ -2302,10 +3013,20 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2302
3013
|
question?: string | undefined;
|
|
2303
3014
|
timeout?: number | undefined;
|
|
2304
3015
|
} | undefined;
|
|
2305
|
-
config?: {
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
3016
|
+
config?: z.objectInputType<{
|
|
3017
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3018
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3019
|
+
id: z.ZodString;
|
|
3020
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
3021
|
+
}, "strict", z.ZodTypeAny, {
|
|
3022
|
+
id: string;
|
|
3023
|
+
fn?: string | undefined;
|
|
3024
|
+
}, {
|
|
3025
|
+
id: string;
|
|
3026
|
+
fn?: string | undefined;
|
|
3027
|
+
}>, "many">>;
|
|
3028
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3029
|
+
branches?: string[] | undefined;
|
|
2309
3030
|
}>, z.ZodObject<{
|
|
2310
3031
|
id: z.ZodString;
|
|
2311
3032
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -2365,42 +3086,33 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2365
3086
|
timeout?: number | undefined;
|
|
2366
3087
|
}>>;
|
|
2367
3088
|
} & {
|
|
2368
|
-
type: z.ZodLiteral<"
|
|
2369
|
-
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3089
|
+
type: z.ZodLiteral<"code">;
|
|
2370
3090
|
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
|
-
}>>;
|
|
3091
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3092
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
3093
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3094
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
3095
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3096
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3097
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
3098
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3099
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
3100
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3101
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3102
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
3103
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3104
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
3105
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2395
3106
|
}, "strict", z.ZodTypeAny, {
|
|
2396
|
-
type: "
|
|
3107
|
+
type: "code";
|
|
2397
3108
|
id: string;
|
|
2398
3109
|
config: {
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
3110
|
+
code?: string | undefined;
|
|
3111
|
+
handler?: string | undefined;
|
|
3112
|
+
timeoutMs?: number | undefined;
|
|
3113
|
+
bindSkill?: boolean | undefined;
|
|
3114
|
+
} & {
|
|
3115
|
+
[k: string]: unknown;
|
|
2404
3116
|
};
|
|
2405
3117
|
description?: string | undefined;
|
|
2406
3118
|
label?: string | undefined;
|
|
@@ -2420,9 +3132,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2420
3132
|
question?: string | undefined;
|
|
2421
3133
|
timeout?: number | undefined;
|
|
2422
3134
|
} | undefined;
|
|
2423
|
-
branches?: string[] | undefined;
|
|
2424
3135
|
}, {
|
|
2425
|
-
type: "
|
|
3136
|
+
type: "code";
|
|
2426
3137
|
id: string;
|
|
2427
3138
|
description?: string | undefined;
|
|
2428
3139
|
label?: string | undefined;
|
|
@@ -2442,14 +3153,12 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2442
3153
|
question?: string | undefined;
|
|
2443
3154
|
timeout?: number | undefined;
|
|
2444
3155
|
} | undefined;
|
|
2445
|
-
config?: {
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
} | undefined;
|
|
2452
|
-
branches?: string[] | undefined;
|
|
3156
|
+
config?: z.objectInputType<{
|
|
3157
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3158
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
3159
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3160
|
+
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
3161
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2453
3162
|
}>, z.ZodObject<{
|
|
2454
3163
|
id: z.ZodString;
|
|
2455
3164
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -2509,31 +3218,327 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2509
3218
|
timeout?: number | undefined;
|
|
2510
3219
|
}>>;
|
|
2511
3220
|
} & {
|
|
2512
|
-
type: z.ZodLiteral<"
|
|
3221
|
+
type: z.ZodLiteral<"rag">;
|
|
2513
3222
|
config: z.ZodDefault<z.ZodObject<{
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
3223
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3224
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
3225
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
3226
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3227
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
3228
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
3229
|
+
maxRetries: z.ZodNumber;
|
|
3230
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
3231
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
3232
|
+
baseDelay: z.ZodNumber;
|
|
3233
|
+
maxDelay: z.ZodNumber;
|
|
3234
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
3235
|
+
}, "strict", z.ZodTypeAny, {
|
|
3236
|
+
type: "exponential" | "linear" | "fixed";
|
|
3237
|
+
baseDelay: number;
|
|
3238
|
+
maxDelay: number;
|
|
3239
|
+
jitter?: number | undefined;
|
|
3240
|
+
}, {
|
|
3241
|
+
type: "exponential" | "linear" | "fixed";
|
|
3242
|
+
baseDelay: number;
|
|
3243
|
+
maxDelay: number;
|
|
3244
|
+
jitter?: number | undefined;
|
|
3245
|
+
}>>;
|
|
3246
|
+
}, "strict", z.ZodTypeAny, {
|
|
3247
|
+
maxRetries: number;
|
|
3248
|
+
backoff?: {
|
|
3249
|
+
type: "exponential" | "linear" | "fixed";
|
|
3250
|
+
baseDelay: number;
|
|
3251
|
+
maxDelay: number;
|
|
3252
|
+
jitter?: number | undefined;
|
|
3253
|
+
} | undefined;
|
|
3254
|
+
}, {
|
|
3255
|
+
maxRetries: number;
|
|
3256
|
+
backoff?: {
|
|
3257
|
+
type: "exponential" | "linear" | "fixed";
|
|
3258
|
+
baseDelay: number;
|
|
3259
|
+
maxDelay: number;
|
|
3260
|
+
jitter?: number | undefined;
|
|
3261
|
+
} | undefined;
|
|
3262
|
+
}>>;
|
|
3263
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
3264
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3265
|
+
type: z.ZodString;
|
|
3266
|
+
id: z.ZodString;
|
|
3267
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3268
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3269
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3270
|
+
type: z.ZodString;
|
|
3271
|
+
id: z.ZodString;
|
|
3272
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3273
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3274
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3275
|
+
type: z.ZodString;
|
|
3276
|
+
id: z.ZodString;
|
|
3277
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3278
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3279
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3280
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3281
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3282
|
+
type: z.ZodString;
|
|
3283
|
+
id: z.ZodString;
|
|
3284
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3285
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3286
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3287
|
+
type: z.ZodString;
|
|
3288
|
+
id: z.ZodString;
|
|
3289
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3290
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3291
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3292
|
+
type: z.ZodString;
|
|
3293
|
+
id: z.ZodString;
|
|
3294
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3295
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3296
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3297
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
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
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
3315
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2518
3316
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
3317
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3318
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
3319
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
3320
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3321
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
3322
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
3323
|
+
maxRetries: z.ZodNumber;
|
|
3324
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
3325
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
3326
|
+
baseDelay: z.ZodNumber;
|
|
3327
|
+
maxDelay: z.ZodNumber;
|
|
3328
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
3329
|
+
}, "strict", z.ZodTypeAny, {
|
|
3330
|
+
type: "exponential" | "linear" | "fixed";
|
|
3331
|
+
baseDelay: number;
|
|
3332
|
+
maxDelay: number;
|
|
3333
|
+
jitter?: number | undefined;
|
|
3334
|
+
}, {
|
|
3335
|
+
type: "exponential" | "linear" | "fixed";
|
|
3336
|
+
baseDelay: number;
|
|
3337
|
+
maxDelay: number;
|
|
3338
|
+
jitter?: number | undefined;
|
|
3339
|
+
}>>;
|
|
3340
|
+
}, "strict", z.ZodTypeAny, {
|
|
3341
|
+
maxRetries: number;
|
|
3342
|
+
backoff?: {
|
|
3343
|
+
type: "exponential" | "linear" | "fixed";
|
|
3344
|
+
baseDelay: number;
|
|
3345
|
+
maxDelay: number;
|
|
3346
|
+
jitter?: number | undefined;
|
|
3347
|
+
} | undefined;
|
|
3348
|
+
}, {
|
|
3349
|
+
maxRetries: number;
|
|
3350
|
+
backoff?: {
|
|
3351
|
+
type: "exponential" | "linear" | "fixed";
|
|
3352
|
+
baseDelay: number;
|
|
3353
|
+
maxDelay: number;
|
|
3354
|
+
jitter?: number | undefined;
|
|
3355
|
+
} | undefined;
|
|
3356
|
+
}>>;
|
|
3357
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
3358
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3359
|
+
type: z.ZodString;
|
|
3360
|
+
id: z.ZodString;
|
|
3361
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3362
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3363
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3364
|
+
type: z.ZodString;
|
|
3365
|
+
id: z.ZodString;
|
|
3366
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3367
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3368
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3369
|
+
type: z.ZodString;
|
|
3370
|
+
id: z.ZodString;
|
|
3371
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3372
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3373
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3374
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3375
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3376
|
+
type: z.ZodString;
|
|
3377
|
+
id: z.ZodString;
|
|
3378
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3379
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3380
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3381
|
+
type: z.ZodString;
|
|
3382
|
+
id: z.ZodString;
|
|
3383
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3384
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3385
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3386
|
+
type: z.ZodString;
|
|
3387
|
+
id: z.ZodString;
|
|
3388
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3389
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3390
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3391
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3392
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3393
|
+
type: z.ZodString;
|
|
3394
|
+
id: z.ZodString;
|
|
3395
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3396
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3397
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3398
|
+
type: z.ZodString;
|
|
3399
|
+
id: z.ZodString;
|
|
3400
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3401
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3402
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3403
|
+
type: z.ZodString;
|
|
3404
|
+
id: z.ZodString;
|
|
3405
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3406
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3407
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3408
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
3409
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2523
3410
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
3411
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3412
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
3413
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
3414
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3415
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
3416
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
3417
|
+
maxRetries: z.ZodNumber;
|
|
3418
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
3419
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
3420
|
+
baseDelay: z.ZodNumber;
|
|
3421
|
+
maxDelay: z.ZodNumber;
|
|
3422
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
3423
|
+
}, "strict", z.ZodTypeAny, {
|
|
3424
|
+
type: "exponential" | "linear" | "fixed";
|
|
3425
|
+
baseDelay: number;
|
|
3426
|
+
maxDelay: number;
|
|
3427
|
+
jitter?: number | undefined;
|
|
3428
|
+
}, {
|
|
3429
|
+
type: "exponential" | "linear" | "fixed";
|
|
3430
|
+
baseDelay: number;
|
|
3431
|
+
maxDelay: number;
|
|
3432
|
+
jitter?: number | undefined;
|
|
3433
|
+
}>>;
|
|
3434
|
+
}, "strict", z.ZodTypeAny, {
|
|
3435
|
+
maxRetries: number;
|
|
3436
|
+
backoff?: {
|
|
3437
|
+
type: "exponential" | "linear" | "fixed";
|
|
3438
|
+
baseDelay: number;
|
|
3439
|
+
maxDelay: number;
|
|
3440
|
+
jitter?: number | undefined;
|
|
3441
|
+
} | undefined;
|
|
3442
|
+
}, {
|
|
3443
|
+
maxRetries: number;
|
|
3444
|
+
backoff?: {
|
|
3445
|
+
type: "exponential" | "linear" | "fixed";
|
|
3446
|
+
baseDelay: number;
|
|
3447
|
+
maxDelay: number;
|
|
3448
|
+
jitter?: number | undefined;
|
|
3449
|
+
} | undefined;
|
|
3450
|
+
}>>;
|
|
3451
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
3452
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3453
|
+
type: z.ZodString;
|
|
3454
|
+
id: z.ZodString;
|
|
3455
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3456
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3457
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3458
|
+
type: z.ZodString;
|
|
3459
|
+
id: z.ZodString;
|
|
3460
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3461
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3462
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3463
|
+
type: z.ZodString;
|
|
3464
|
+
id: z.ZodString;
|
|
3465
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3466
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3467
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3468
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3469
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3470
|
+
type: z.ZodString;
|
|
3471
|
+
id: z.ZodString;
|
|
3472
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3473
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3474
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3475
|
+
type: z.ZodString;
|
|
3476
|
+
id: z.ZodString;
|
|
3477
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3478
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3479
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3480
|
+
type: z.ZodString;
|
|
3481
|
+
id: z.ZodString;
|
|
3482
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3483
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3484
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3485
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3486
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3487
|
+
type: z.ZodString;
|
|
3488
|
+
id: z.ZodString;
|
|
3489
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3490
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3491
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3492
|
+
type: z.ZodString;
|
|
3493
|
+
id: z.ZodString;
|
|
3494
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3495
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3496
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3497
|
+
type: z.ZodString;
|
|
3498
|
+
id: z.ZodString;
|
|
3499
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3500
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3501
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3502
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
3503
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2528
3504
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2529
3505
|
}, "strict", z.ZodTypeAny, {
|
|
2530
|
-
type: "
|
|
3506
|
+
type: "rag";
|
|
2531
3507
|
id: string;
|
|
2532
3508
|
config: {
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
3509
|
+
retry?: {
|
|
3510
|
+
maxRetries: number;
|
|
3511
|
+
backoff?: {
|
|
3512
|
+
type: "exponential" | "linear" | "fixed";
|
|
3513
|
+
baseDelay: number;
|
|
3514
|
+
maxDelay: number;
|
|
3515
|
+
jitter?: number | undefined;
|
|
3516
|
+
} | undefined;
|
|
3517
|
+
} | undefined;
|
|
3518
|
+
model?: string | undefined;
|
|
3519
|
+
totalK?: number | undefined;
|
|
3520
|
+
maxIterations?: number | undefined;
|
|
3521
|
+
quota?: Record<string, number> | undefined;
|
|
3522
|
+
nearDupThreshold?: number | undefined;
|
|
3523
|
+
retrievalSources?: z.objectOutputType<{
|
|
3524
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3525
|
+
type: z.ZodString;
|
|
3526
|
+
id: z.ZodString;
|
|
3527
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3528
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3529
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3530
|
+
type: z.ZodString;
|
|
3531
|
+
id: z.ZodString;
|
|
3532
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3533
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3534
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3535
|
+
type: z.ZodString;
|
|
3536
|
+
id: z.ZodString;
|
|
3537
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3538
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3539
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3540
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3541
|
+
toolSources?: Record<string, string> | undefined;
|
|
2537
3542
|
} & {
|
|
2538
3543
|
[k: string]: unknown;
|
|
2539
3544
|
};
|
|
@@ -2556,7 +3561,7 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2556
3561
|
timeout?: number | undefined;
|
|
2557
3562
|
} | undefined;
|
|
2558
3563
|
}, {
|
|
2559
|
-
type: "
|
|
3564
|
+
type: "rag";
|
|
2560
3565
|
id: string;
|
|
2561
3566
|
description?: string | undefined;
|
|
2562
3567
|
label?: string | undefined;
|
|
@@ -2577,10 +3582,99 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2577
3582
|
timeout?: number | undefined;
|
|
2578
3583
|
} | undefined;
|
|
2579
3584
|
config?: z.objectInputType<{
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
3585
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3586
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
3587
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
3588
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3589
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
3590
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
3591
|
+
maxRetries: z.ZodNumber;
|
|
3592
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
3593
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
3594
|
+
baseDelay: z.ZodNumber;
|
|
3595
|
+
maxDelay: z.ZodNumber;
|
|
3596
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
3597
|
+
}, "strict", z.ZodTypeAny, {
|
|
3598
|
+
type: "exponential" | "linear" | "fixed";
|
|
3599
|
+
baseDelay: number;
|
|
3600
|
+
maxDelay: number;
|
|
3601
|
+
jitter?: number | undefined;
|
|
3602
|
+
}, {
|
|
3603
|
+
type: "exponential" | "linear" | "fixed";
|
|
3604
|
+
baseDelay: number;
|
|
3605
|
+
maxDelay: number;
|
|
3606
|
+
jitter?: number | undefined;
|
|
3607
|
+
}>>;
|
|
3608
|
+
}, "strict", z.ZodTypeAny, {
|
|
3609
|
+
maxRetries: number;
|
|
3610
|
+
backoff?: {
|
|
3611
|
+
type: "exponential" | "linear" | "fixed";
|
|
3612
|
+
baseDelay: number;
|
|
3613
|
+
maxDelay: number;
|
|
3614
|
+
jitter?: number | undefined;
|
|
3615
|
+
} | undefined;
|
|
3616
|
+
}, {
|
|
3617
|
+
maxRetries: number;
|
|
3618
|
+
backoff?: {
|
|
3619
|
+
type: "exponential" | "linear" | "fixed";
|
|
3620
|
+
baseDelay: number;
|
|
3621
|
+
maxDelay: number;
|
|
3622
|
+
jitter?: number | undefined;
|
|
3623
|
+
} | undefined;
|
|
3624
|
+
}>>;
|
|
3625
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
3626
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3627
|
+
type: z.ZodString;
|
|
3628
|
+
id: z.ZodString;
|
|
3629
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3630
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3631
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3632
|
+
type: z.ZodString;
|
|
3633
|
+
id: z.ZodString;
|
|
3634
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3635
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3636
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3637
|
+
type: z.ZodString;
|
|
3638
|
+
id: z.ZodString;
|
|
3639
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3640
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3641
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3642
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3643
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3644
|
+
type: z.ZodString;
|
|
3645
|
+
id: z.ZodString;
|
|
3646
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3647
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3648
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3649
|
+
type: z.ZodString;
|
|
3650
|
+
id: z.ZodString;
|
|
3651
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3652
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3653
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3654
|
+
type: z.ZodString;
|
|
3655
|
+
id: z.ZodString;
|
|
3656
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3657
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3658
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3659
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3660
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3661
|
+
type: z.ZodString;
|
|
3662
|
+
id: z.ZodString;
|
|
3663
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3664
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3665
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3666
|
+
type: z.ZodString;
|
|
3667
|
+
id: z.ZodString;
|
|
3668
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3669
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3670
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3671
|
+
type: z.ZodString;
|
|
3672
|
+
id: z.ZodString;
|
|
3673
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3674
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3675
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
3676
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
3677
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2584
3678
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2585
3679
|
}>]>, "many">;
|
|
2586
3680
|
edges: z.ZodArray<z.ZodObject<{
|
|
@@ -2718,6 +3812,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2718
3812
|
config: {
|
|
2719
3813
|
tool: string;
|
|
2720
3814
|
arguments?: Record<string, unknown> | undefined;
|
|
3815
|
+
} & {
|
|
3816
|
+
[k: string]: unknown;
|
|
2721
3817
|
};
|
|
2722
3818
|
description?: string | undefined;
|
|
2723
3819
|
label?: string | undefined;
|
|
@@ -2745,6 +3841,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2745
3841
|
conditionFn?: string | undefined;
|
|
2746
3842
|
branchValues?: string[] | undefined;
|
|
2747
3843
|
fallback?: string | undefined;
|
|
3844
|
+
} & {
|
|
3845
|
+
[k: string]: unknown;
|
|
2748
3846
|
};
|
|
2749
3847
|
description?: string | undefined;
|
|
2750
3848
|
label?: string | undefined;
|
|
@@ -2770,6 +3868,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2770
3868
|
config: {
|
|
2771
3869
|
skillId?: string | undefined;
|
|
2772
3870
|
skillCode?: string | undefined;
|
|
3871
|
+
} & {
|
|
3872
|
+
[k: string]: unknown;
|
|
2773
3873
|
};
|
|
2774
3874
|
description?: string | undefined;
|
|
2775
3875
|
label?: string | undefined;
|
|
@@ -2796,6 +3896,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2796
3896
|
config: {
|
|
2797
3897
|
options?: string[] | undefined;
|
|
2798
3898
|
question?: string | undefined;
|
|
3899
|
+
} & {
|
|
3900
|
+
[k: string]: unknown;
|
|
2799
3901
|
};
|
|
2800
3902
|
description?: string | undefined;
|
|
2801
3903
|
label?: string | undefined;
|
|
@@ -2824,6 +3926,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2824
3926
|
id: string;
|
|
2825
3927
|
fn?: string | undefined;
|
|
2826
3928
|
}[] | undefined;
|
|
3929
|
+
} & {
|
|
3930
|
+
[k: string]: unknown;
|
|
2827
3931
|
};
|
|
2828
3932
|
description?: string | undefined;
|
|
2829
3933
|
label?: string | undefined;
|
|
@@ -2873,6 +3977,64 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
2873
3977
|
question?: string | undefined;
|
|
2874
3978
|
timeout?: number | undefined;
|
|
2875
3979
|
} | undefined;
|
|
3980
|
+
} | {
|
|
3981
|
+
type: "rag";
|
|
3982
|
+
id: string;
|
|
3983
|
+
config: {
|
|
3984
|
+
retry?: {
|
|
3985
|
+
maxRetries: number;
|
|
3986
|
+
backoff?: {
|
|
3987
|
+
type: "exponential" | "linear" | "fixed";
|
|
3988
|
+
baseDelay: number;
|
|
3989
|
+
maxDelay: number;
|
|
3990
|
+
jitter?: number | undefined;
|
|
3991
|
+
} | undefined;
|
|
3992
|
+
} | undefined;
|
|
3993
|
+
model?: string | undefined;
|
|
3994
|
+
totalK?: number | undefined;
|
|
3995
|
+
maxIterations?: number | undefined;
|
|
3996
|
+
quota?: Record<string, number> | undefined;
|
|
3997
|
+
nearDupThreshold?: number | undefined;
|
|
3998
|
+
retrievalSources?: z.objectOutputType<{
|
|
3999
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4000
|
+
type: z.ZodString;
|
|
4001
|
+
id: z.ZodString;
|
|
4002
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4003
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4004
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4005
|
+
type: z.ZodString;
|
|
4006
|
+
id: z.ZodString;
|
|
4007
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4008
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4009
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4010
|
+
type: z.ZodString;
|
|
4011
|
+
id: z.ZodString;
|
|
4012
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4013
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4014
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
4015
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4016
|
+
toolSources?: Record<string, string> | undefined;
|
|
4017
|
+
} & {
|
|
4018
|
+
[k: string]: unknown;
|
|
4019
|
+
};
|
|
4020
|
+
description?: string | undefined;
|
|
4021
|
+
label?: string | undefined;
|
|
4022
|
+
retry?: {
|
|
4023
|
+
maxRetries: number;
|
|
4024
|
+
backoff?: {
|
|
4025
|
+
type: "exponential" | "linear" | "fixed";
|
|
4026
|
+
baseDelay: number;
|
|
4027
|
+
maxDelay: number;
|
|
4028
|
+
jitter?: number | undefined;
|
|
4029
|
+
} | undefined;
|
|
4030
|
+
} | undefined;
|
|
4031
|
+
interrupt?: {
|
|
4032
|
+
options?: string[] | undefined;
|
|
4033
|
+
before?: boolean | undefined;
|
|
4034
|
+
after?: boolean | undefined;
|
|
4035
|
+
question?: string | undefined;
|
|
4036
|
+
timeout?: number | undefined;
|
|
4037
|
+
} | undefined;
|
|
2876
4038
|
})[];
|
|
2877
4039
|
edges: {
|
|
2878
4040
|
from: string;
|
|
@@ -3026,6 +4188,8 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3026
4188
|
config: {
|
|
3027
4189
|
tool: string;
|
|
3028
4190
|
arguments?: Record<string, unknown> | undefined;
|
|
4191
|
+
} & {
|
|
4192
|
+
[k: string]: unknown;
|
|
3029
4193
|
};
|
|
3030
4194
|
description?: string | undefined;
|
|
3031
4195
|
label?: string | undefined;
|
|
@@ -3066,12 +4230,12 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3066
4230
|
question?: string | undefined;
|
|
3067
4231
|
timeout?: number | undefined;
|
|
3068
4232
|
} | undefined;
|
|
3069
|
-
config?: {
|
|
3070
|
-
conditionExpr
|
|
3071
|
-
conditionFn
|
|
3072
|
-
branchValues
|
|
3073
|
-
fallback
|
|
3074
|
-
} | undefined;
|
|
4233
|
+
config?: z.objectInputType<{
|
|
4234
|
+
conditionExpr: z.ZodOptional<z.ZodString>;
|
|
4235
|
+
conditionFn: z.ZodOptional<z.ZodString>;
|
|
4236
|
+
branchValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4237
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
4238
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3075
4239
|
} | {
|
|
3076
4240
|
type: "subgraph";
|
|
3077
4241
|
id: string;
|
|
@@ -3093,10 +4257,10 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3093
4257
|
question?: string | undefined;
|
|
3094
4258
|
timeout?: number | undefined;
|
|
3095
4259
|
} | undefined;
|
|
3096
|
-
config?: {
|
|
3097
|
-
skillId
|
|
3098
|
-
skillCode
|
|
3099
|
-
} | undefined;
|
|
4260
|
+
config?: z.objectInputType<{
|
|
4261
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
4262
|
+
skillCode: z.ZodOptional<z.ZodString>;
|
|
4263
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3100
4264
|
subgraphId?: string | undefined;
|
|
3101
4265
|
} | {
|
|
3102
4266
|
type: "human";
|
|
@@ -3119,10 +4283,10 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3119
4283
|
question?: string | undefined;
|
|
3120
4284
|
timeout?: number | undefined;
|
|
3121
4285
|
} | undefined;
|
|
3122
|
-
config?: {
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
} | undefined;
|
|
4286
|
+
config?: z.objectInputType<{
|
|
4287
|
+
question: z.ZodOptional<z.ZodString>;
|
|
4288
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4289
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3126
4290
|
} | {
|
|
3127
4291
|
type: "parallel";
|
|
3128
4292
|
id: string;
|
|
@@ -3144,13 +4308,19 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3144
4308
|
question?: string | undefined;
|
|
3145
4309
|
timeout?: number | undefined;
|
|
3146
4310
|
} | undefined;
|
|
3147
|
-
config?: {
|
|
3148
|
-
branches
|
|
3149
|
-
tasks
|
|
4311
|
+
config?: z.objectInputType<{
|
|
4312
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4313
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4314
|
+
id: z.ZodString;
|
|
4315
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
4316
|
+
}, "strict", z.ZodTypeAny, {
|
|
3150
4317
|
id: string;
|
|
3151
4318
|
fn?: string | undefined;
|
|
3152
|
-
}
|
|
3153
|
-
|
|
4319
|
+
}, {
|
|
4320
|
+
id: string;
|
|
4321
|
+
fn?: string | undefined;
|
|
4322
|
+
}>, "many">>;
|
|
4323
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3154
4324
|
branches?: string[] | undefined;
|
|
3155
4325
|
} | {
|
|
3156
4326
|
type: "code";
|
|
@@ -3179,6 +4349,122 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
3179
4349
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3180
4350
|
bindSkill: z.ZodOptional<z.ZodBoolean>;
|
|
3181
4351
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4352
|
+
} | {
|
|
4353
|
+
type: "rag";
|
|
4354
|
+
id: string;
|
|
4355
|
+
description?: string | undefined;
|
|
4356
|
+
label?: string | undefined;
|
|
4357
|
+
retry?: {
|
|
4358
|
+
maxRetries: number;
|
|
4359
|
+
backoff?: {
|
|
4360
|
+
type: "exponential" | "linear" | "fixed";
|
|
4361
|
+
baseDelay: number;
|
|
4362
|
+
maxDelay: number;
|
|
4363
|
+
jitter?: number | undefined;
|
|
4364
|
+
} | undefined;
|
|
4365
|
+
} | undefined;
|
|
4366
|
+
interrupt?: {
|
|
4367
|
+
options?: string[] | undefined;
|
|
4368
|
+
before?: boolean | undefined;
|
|
4369
|
+
after?: boolean | undefined;
|
|
4370
|
+
question?: string | undefined;
|
|
4371
|
+
timeout?: number | undefined;
|
|
4372
|
+
} | undefined;
|
|
4373
|
+
config?: z.objectInputType<{
|
|
4374
|
+
model: z.ZodOptional<z.ZodString>;
|
|
4375
|
+
totalK: z.ZodOptional<z.ZodNumber>;
|
|
4376
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
4377
|
+
quota: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
4378
|
+
nearDupThreshold: z.ZodOptional<z.ZodNumber>;
|
|
4379
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
4380
|
+
maxRetries: z.ZodNumber;
|
|
4381
|
+
backoff: z.ZodOptional<z.ZodObject<{
|
|
4382
|
+
type: z.ZodEnum<["exponential", "linear", "fixed"]>;
|
|
4383
|
+
baseDelay: z.ZodNumber;
|
|
4384
|
+
maxDelay: z.ZodNumber;
|
|
4385
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
4386
|
+
}, "strict", z.ZodTypeAny, {
|
|
4387
|
+
type: "exponential" | "linear" | "fixed";
|
|
4388
|
+
baseDelay: number;
|
|
4389
|
+
maxDelay: number;
|
|
4390
|
+
jitter?: number | undefined;
|
|
4391
|
+
}, {
|
|
4392
|
+
type: "exponential" | "linear" | "fixed";
|
|
4393
|
+
baseDelay: number;
|
|
4394
|
+
maxDelay: number;
|
|
4395
|
+
jitter?: number | undefined;
|
|
4396
|
+
}>>;
|
|
4397
|
+
}, "strict", z.ZodTypeAny, {
|
|
4398
|
+
maxRetries: number;
|
|
4399
|
+
backoff?: {
|
|
4400
|
+
type: "exponential" | "linear" | "fixed";
|
|
4401
|
+
baseDelay: number;
|
|
4402
|
+
maxDelay: number;
|
|
4403
|
+
jitter?: number | undefined;
|
|
4404
|
+
} | undefined;
|
|
4405
|
+
}, {
|
|
4406
|
+
maxRetries: number;
|
|
4407
|
+
backoff?: {
|
|
4408
|
+
type: "exponential" | "linear" | "fixed";
|
|
4409
|
+
baseDelay: number;
|
|
4410
|
+
maxDelay: number;
|
|
4411
|
+
jitter?: number | undefined;
|
|
4412
|
+
} | undefined;
|
|
4413
|
+
}>>;
|
|
4414
|
+
retrievalSources: z.ZodOptional<z.ZodObject<{
|
|
4415
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4416
|
+
type: z.ZodString;
|
|
4417
|
+
id: z.ZodString;
|
|
4418
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4419
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4420
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4421
|
+
type: z.ZodString;
|
|
4422
|
+
id: z.ZodString;
|
|
4423
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4424
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4425
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4426
|
+
type: z.ZodString;
|
|
4427
|
+
id: z.ZodString;
|
|
4428
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4429
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4430
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
4431
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4432
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4433
|
+
type: z.ZodString;
|
|
4434
|
+
id: z.ZodString;
|
|
4435
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4436
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4437
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4438
|
+
type: z.ZodString;
|
|
4439
|
+
id: z.ZodString;
|
|
4440
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4441
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4442
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4443
|
+
type: z.ZodString;
|
|
4444
|
+
id: z.ZodString;
|
|
4445
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4446
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4447
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
4448
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4449
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4450
|
+
type: z.ZodString;
|
|
4451
|
+
id: z.ZodString;
|
|
4452
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4453
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4454
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4455
|
+
type: z.ZodString;
|
|
4456
|
+
id: z.ZodString;
|
|
4457
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4458
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4459
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4460
|
+
type: z.ZodString;
|
|
4461
|
+
id: z.ZodString;
|
|
4462
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4463
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4464
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
4465
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
4466
|
+
toolSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4467
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3182
4468
|
})[];
|
|
3183
4469
|
edges: {
|
|
3184
4470
|
from: string;
|