@uipath/flow-tool 1.201.0-preview.131 → 1.201.0-preview.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{authoring-rezk32bm.js → authoring-7r6g06c7.js} +2 -2
- package/dist/{conversion-W6HMHBWW-6qbqgqks.js → conversion-H2VEEYLB-ng48mbf7.js} +536 -161
- package/dist/{de-K6MLR24N-5N5XGLH6-gbwpvdz4.js → de-5HU6GFWV-4EZK6G7N-yrh21f52.js} +273 -13
- package/dist/{de-K6MLR24N-00fjz82b.js → de-5HU6GFWV-zheyw6d2.js} +271 -10
- package/dist/de-5KVP66U6-f7knj511.js +161 -0
- package/dist/de-5KVP66U6-t37qr521.js +161 -0
- package/dist/{de-B2KIY5TC-81f703v3.js → de-HKTOVV4H-d5yw5j21.js} +3 -3
- package/dist/{de-WMKOGI7B-r1821wpe.js → de-WMKOGI7B-6dc1zdnp.js} +3 -3
- package/dist/en-4KXU7N7B-24v330b5.js +118 -0
- package/dist/en-4KXU7N7B-66fntxa2.js +118 -0
- package/dist/{en-ILA4HPE5-ALHGESZE-zrv4qss8.js → en-MABQK6C4-REWE2WG2-8dp4cqdg.js} +109 -6
- package/dist/{en-ILA4HPE5-fhwvq92r.js → en-MABQK6C4-nkzq2j8t.js} +106 -2
- package/dist/{en-P6PNWNTO-g1f6cjh5.js → en-P4AS26D7-szrzfxz1.js} +3 -5
- package/dist/{en-X4DLPKLJ-dt1wtdm7.js → en-X4DLPKLJ-1h9gj5c1.js} +3 -3
- package/dist/{es-BVPGJUWA-9gk2g9yb.js → es-BVPGJUWA-0k59eqfv.js} +3 -3
- package/dist/{es-HTQSD352-YTAEDCE5-nhsbg581.js → es-LUTYN7U7-IY5QWOUF-k2aefzc0.js} +273 -13
- package/dist/{es-HTQSD352-m9rr3f0g.js → es-LUTYN7U7-ye5zn4sn.js} +271 -10
- package/dist/{es-MX-3SP2SSV6-f20qspbr.js → es-MX-H2EAXLYI-qwnqt48x.js} +3 -3
- package/dist/{es-MX-FOX525CG-87g500gr.js → es-MX-POESXYP2-9538722k.js} +272 -11
- package/dist/{es-MX-FOX525CG-HLM27OEL-whr0t9v3.js → es-MX-POESXYP2-UW6VP5QI-cd3a79g9.js} +274 -14
- package/dist/{es-MX-U6YL5KQX-ynwxdjr8.js → es-MX-U6YL5KQX-k4qvpgd4.js} +3 -3
- package/dist/es-MX-XAVLOQW3-47a405kf.js +161 -0
- package/dist/es-MX-XAVLOQW3-9b3cp9n8.js +161 -0
- package/dist/{es-BBX4AUJX-h99fcr53.js → es-O4PAV2CR-jwfaawwk.js} +3 -3
- package/dist/es-VFPNVMP5-6sftsdxe.js +161 -0
- package/dist/es-VFPNVMP5-thm0z9sr.js +161 -0
- package/dist/{fr-FSTBVVGK-t3y57xrb.js → fr-5YRGHXF5-q6b63yg0.js} +3 -3
- package/dist/fr-E5MDO4EG-exvrs7ge.js +161 -0
- package/dist/fr-E5MDO4EG-f3x1jeqw.js +161 -0
- package/dist/{fr-EKTTDR7Z-bmpwp31r.js → fr-EKTTDR7Z-m2t68j0m.js} +3 -3
- package/dist/{fr-54THJ4QH-IGABNGU6-fpzw2mba.js → fr-LJIK56LW-STG6QR3T-cextvv8q.js} +274 -14
- package/dist/{fr-54THJ4QH-d6ezjbhw.js → fr-LJIK56LW-xf3xf2kh.js} +272 -11
- package/dist/{index-6hp3p3eq.js → index-dhcd9b82.js} +2 -2
- package/dist/{index-zvxfkpkr.js → index-er6vy3jk.js} +71 -5
- package/dist/index.js +22 -16
- package/dist/init.js +19 -13
- package/dist/ja-DPO5PPLO-fmbg7zt2.js +161 -0
- package/dist/ja-DPO5PPLO-s2a7j3nj.js +161 -0
- package/dist/{ja-MHUPLSWO-CS3KE4Y3-mbtkzwd7.js → ja-FGEGLBJ3-MG3BSWXD-vq19zt2p.js} +273 -13
- package/dist/{ja-MHUPLSWO-3qwy4jc0.js → ja-FGEGLBJ3-w9byjhze.js} +271 -10
- package/dist/{ja-FW33BJBW-htfk4d8t.js → ja-SDAPAVCR-943p5gx7.js} +3 -3
- package/dist/{ja-Y2YBTXNN-96cvy5av.js → ja-Y2YBTXNN-5sszk2zv.js} +3 -3
- package/dist/ko-ITOPNIYI-aqy82jk8.js +161 -0
- package/dist/ko-ITOPNIYI-qz39kamf.js +161 -0
- package/dist/{ko-PDO5AXNW-d653t4pc.js → ko-NAGOZLC3-wb3y9yhh.js} +3 -3
- package/dist/{ko-S33XAV26-cxf4dn2t.js → ko-S33XAV26-rfsv9myd.js} +3 -3
- package/dist/{ko-XPJTXIKK-DNSW4KYQ-956vp61f.js → ko-TUAK3G3A-TBEBKOTM-ns78t2rv.js} +277 -17
- package/dist/{ko-XPJTXIKK-w1hs4px7.js → ko-TUAK3G3A-s25w0ckg.js} +275 -14
- package/dist/{node-rnmmv28d.js → node-qyxvhbw6.js} +2 -2
- package/dist/{packager-tool-cqrsre00.js → packager-tool-0567pxpm.js} +121 -12
- package/dist/{packager-tool-3wf3tkrc.js → packager-tool-09xysehb.js} +3 -5
- package/dist/{packager-tool-b0s5d4ek.js → packager-tool-0sz8se22.js} +1 -1
- package/dist/{packager-tool-s5y06ny4.js → packager-tool-2xgc101h.js} +544 -45
- package/dist/{packager-tool-03knb0er.js → packager-tool-3wygxefb.js} +116 -17
- package/dist/packager-tool-6ejqwbw9.js +26 -0
- package/dist/{packager-tool-952kqpax.js → packager-tool-78a3szsp.js} +890 -339
- package/dist/{packager-tool-xzcywm2b.js → packager-tool-c42dp002.js} +1 -1
- package/dist/{packager-tool-v61wap3v.js → packager-tool-djagtpkt.js} +12111 -6271
- package/dist/{packager-tool-1gjx8w7m.js → packager-tool-fgdsmd8k.js} +258 -486
- package/dist/packager-tool-gasyxww9.js +23964 -0
- package/dist/packager-tool-gmrwvnyh.js +1171 -0
- package/dist/packager-tool-jysvpt8p.js +11 -0
- package/dist/packager-tool-m6x5sczh.js +899 -0
- package/dist/packager-tool-mcaf4ewf.js +46 -0
- package/dist/packager-tool-p9j43p8h.js +115 -0
- package/dist/{packager-tool-v2p6g3fd.js → packager-tool-pkq70dec.js} +1 -1
- package/dist/{packager-tool-zh6g3h65.js → packager-tool-sf18719z.js} +5 -5
- package/dist/packager-tool-tq9q9m77.js +115 -0
- package/dist/{packager-tool-1yy9x4vk.js → packager-tool-v74yk918.js} +2 -2
- package/dist/packager-tool-vdd02vns.js +55924 -0
- package/dist/packager-tool-xj0agqpk.js +11 -0
- package/dist/packager-tool.js +15 -9
- package/dist/{pt-JLZYSSXX-7jth254x.js → pt-7TR74ZMB-1g8my56g.js} +3 -3
- package/dist/{pt-BR-TV7NR3ID-PDSSHRHU-nddwzj29.js → pt-BR-7XGDXRDJ-TR5D7JYL-533wvy7p.js} +274 -14
- package/dist/{pt-BR-TV7NR3ID-vgd26pj1.js → pt-BR-7XGDXRDJ-espnkgrj.js} +272 -11
- package/dist/pt-BR-BXURWX4W-dqr4dnf9.js +161 -0
- package/dist/pt-BR-BXURWX4W-xzyndmrx.js +161 -0
- package/dist/{pt-BR-LQH3RSBB-kyb4jmcw.js → pt-BR-DXXSYJDO-bn84ewp7.js} +3 -3
- package/dist/{pt-BR-JO45SCNI-4kbfnzc4.js → pt-BR-JO45SCNI-mt93s33c.js} +3 -3
- package/dist/{pt-4JEPEAST-JO5WN33S-ccdbdab2.js → pt-TMVOOITK-H2ADYHSD-ezpggv33.js} +273 -13
- package/dist/{pt-4JEPEAST-40npwxyw.js → pt-TMVOOITK-myha14p9.js} +271 -10
- package/dist/{pt-W3NA4LIZ-f02gapvs.js → pt-W3NA4LIZ-fwd1q4j0.js} +3 -3
- package/dist/pt-YI4VE4YQ-521681zf.js +161 -0
- package/dist/pt-YI4VE4YQ-v7gjeg82.js +161 -0
- package/dist/{ro-RKJ74FV3-QS3I6XKJ-kb31d85k.js → ro-2VALF3S5-NXBJUEZN-nqw1zs33.js} +277 -17
- package/dist/{ro-RKJ74FV3-qn0ey39v.js → ro-2VALF3S5-cdz5afkr.js} +275 -14
- package/dist/{ro-E2EBPQGT-vn573vcr.js → ro-BJFER5OI-334n28rj.js} +3 -3
- package/dist/ro-RKXZUG7Z-cm3xn3fj.js +161 -0
- package/dist/ro-RKXZUG7Z-pdztdafr.js +161 -0
- package/dist/{ro-WLKX6HF5-fcbe2zz8.js → ro-WLKX6HF5-b9tj8q67.js} +3 -3
- package/dist/ru-GSCT4ARZ-FTVCGQTL-5nh4jf2e.js +14 -0
- package/dist/ru-T73OPRTC-mp5gn7gs.js +10 -0
- package/dist/ru-WBLQ5B2U-8xd4gpv2.js +10 -0
- package/dist/ru-WBLQ5B2U-mswqs9wc.js +10 -0
- package/dist/serialization-GAW7UFOK-9hkdmmd2.js +36541 -0
- package/dist/services/flow-eval-schema/deterministic-evaluators.d.ts +110 -0
- package/dist/services/flow-eval-schema/evaluator-fields.d.ts +66 -0
- package/dist/services/flow-eval-schema/helpers.d.ts +9 -0
- package/dist/services/flow-eval-schema/index.d.ts +4 -0
- package/dist/services/flow-eval-schema/llm-judge-evaluators.d.ts +174 -0
- package/dist/services/flow-eval-schema/prompts.d.ts +2 -0
- package/dist/services/flow-eval-schema/registry.d.ts +375 -0
- package/dist/services/flow-eval-schema/tool-call-evaluators.d.ts +93 -0
- package/dist/services/flow-eval-schema/types.d.ts +78 -0
- package/dist/services/flow-eval-types.d.ts +6 -0
- package/dist/services/flow-eval-utils.d.ts +14 -0
- package/dist/services/flow-validate-service.d.ts +11 -0
- package/dist/services/packaging-utils.d.ts +3 -29
- package/dist/tool.js +22 -16
- package/dist/{tr-3U2W2XCA-zg3zcmq3.js → tr-3U2W2XCA-43ptfc0m.js} +3 -3
- package/dist/tr-AA6O2WSR-bj9n80k8.js +161 -0
- package/dist/tr-AA6O2WSR-ga1xnymp.js +161 -0
- package/dist/{tr-X7R6GQNB-VMEZAWRJ-vdbjqw23.js → tr-RIFCEXFH-BZS7S7QK-q465b62g.js} +279 -19
- package/dist/{tr-X7R6GQNB-shwv16dz.js → tr-RIFCEXFH-hgkb4g8y.js} +277 -16
- package/dist/{tr-ZUUSMHER-pfn5dq1r.js → tr-RQTZ2DMS-bpgd4kma.js} +3 -3
- package/dist/utils/flow-io.d.ts +8 -0
- package/dist/validation.js +19 -13
- package/dist/{zh-CN-FEZ24J4A-q5b5x20w.js → zh-CN-IP3FMXWM-1cfarhcp.js} +271 -10
- package/dist/{zh-CN-FEZ24J4A-LSEMG63K-db8kf6rm.js → zh-CN-IP3FMXWM-H3JI2XUM-ta4yac7h.js} +273 -13
- package/dist/{zh-CN-IPZYQR3P-1h76csc4.js → zh-CN-IPZYQR3P-egjmvyjf.js} +3 -3
- package/dist/zh-CN-R2KLHXQV-wttmznep.js +161 -0
- package/dist/zh-CN-R2KLHXQV-x6gnk2n0.js +161 -0
- package/dist/{zh-CN-YFKQ7HBX-w98q5zqf.js → zh-CN-ZC6LT4IN-vty9mvv8.js} +3 -3
- package/dist/{zh-TW-GKSCT6NW-JLMWTDAF-g2smq1gm.js → zh-TW-AGIDXIPF-R4XZRDJZ-cgxxz5k4.js} +274 -14
- package/dist/{zh-TW-GKSCT6NW-4n1yfre0.js → zh-TW-AGIDXIPF-n6r6w7vy.js} +272 -11
- package/dist/{zh-TW-CP5PCVEJ-wvbxf7c7.js → zh-TW-R7Y5KVMU-q81f4z2p.js} +3 -3
- package/dist/zh-TW-RJGCQANM-gqn0aca0.js +161 -0
- package/dist/zh-TW-RJGCQANM-tt8j5wv2.js +161 -0
- package/dist/{zh-TW-YPVSQVGT-wbybwpwt.js → zh-TW-YPVSQVGT-b378ztph.js} +3 -3
- package/package.json +2 -2
- package/dist/packager-tool-1169tjst.js +0 -87554
- package/dist/packager-tool-c19w8vg9.js +0 -26
- package/dist/packager-tool-gbgfwx8f.js +0 -2
- package/dist/packager-tool-jpcm3xas.js +0 -12
- package/dist/packager-tool-mt2g0zjx.js +0 -36187
- package/dist/packager-tool-pvgqbm48.js +0 -21
- package/dist/ru-D6DDND7Z-e4en56d2.js +0 -10
- package/dist/ru-GSCT4ARZ-3TVTUGWP-bbg6360z.js +0 -15
- package/dist/serialization-GTFWODSH-p7wmsmj7.js +0 -148
- /package/dist/{packager-tool-ny53xmsd.js → packager-tool-cvwr40ax.js} +0 -0
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
export declare const EVALUATOR_TYPE_REGISTRY: {
|
|
2
|
+
readonly "uipath-contains": {
|
|
3
|
+
readonly name: "Contains Text";
|
|
4
|
+
readonly description: "Check if output contains specific text";
|
|
5
|
+
readonly category: "deterministic";
|
|
6
|
+
readonly shortDescription: "Passes when output contains given text";
|
|
7
|
+
readonly configFields: readonly [{
|
|
8
|
+
readonly key: "targetOutputKey";
|
|
9
|
+
readonly label: "Target Output Key";
|
|
10
|
+
readonly type: "targetOutputKey";
|
|
11
|
+
readonly required: false;
|
|
12
|
+
readonly description: "The key in the output to evaluate";
|
|
13
|
+
}, {
|
|
14
|
+
readonly key: "caseSensitive";
|
|
15
|
+
readonly label: "Case Sensitive";
|
|
16
|
+
readonly type: "boolean";
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly default: false;
|
|
19
|
+
readonly description: "If true, the comparison is case-sensitive";
|
|
20
|
+
}, {
|
|
21
|
+
readonly key: "negated";
|
|
22
|
+
readonly type: "boolean";
|
|
23
|
+
readonly required: false;
|
|
24
|
+
readonly default: false;
|
|
25
|
+
readonly description: "If true, the evaluation passes when the match is not found";
|
|
26
|
+
readonly label: "Negated (should NOT contain)";
|
|
27
|
+
}];
|
|
28
|
+
readonly criteriaFields: readonly [{
|
|
29
|
+
readonly key: "searchText";
|
|
30
|
+
readonly label: "Search Text";
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly required: false;
|
|
33
|
+
readonly minLength: 1;
|
|
34
|
+
readonly description: "The text to search for in the output";
|
|
35
|
+
}];
|
|
36
|
+
readonly examples: {
|
|
37
|
+
readonly criteria: {
|
|
38
|
+
readonly searchText: "loan approved";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly "uipath-exact-match": {
|
|
43
|
+
readonly name: "Exact Match";
|
|
44
|
+
readonly description: "Check if output exactly matches expected value";
|
|
45
|
+
readonly category: "deterministic";
|
|
46
|
+
readonly shortDescription: "Passes when output is an exact match";
|
|
47
|
+
readonly configFields: readonly [{
|
|
48
|
+
readonly key: "targetOutputKey";
|
|
49
|
+
readonly label: "Target Output Key";
|
|
50
|
+
readonly type: "targetOutputKey";
|
|
51
|
+
readonly required: false;
|
|
52
|
+
readonly description: "The key in the output to evaluate";
|
|
53
|
+
}, {
|
|
54
|
+
readonly key: "caseSensitive";
|
|
55
|
+
readonly label: "Case Sensitive";
|
|
56
|
+
readonly type: "boolean";
|
|
57
|
+
readonly required: false;
|
|
58
|
+
readonly default: false;
|
|
59
|
+
readonly description: "If true, the comparison is case-sensitive";
|
|
60
|
+
}, {
|
|
61
|
+
readonly key: "negated";
|
|
62
|
+
readonly label: "Negated";
|
|
63
|
+
readonly type: "boolean";
|
|
64
|
+
readonly required: false;
|
|
65
|
+
readonly default: false;
|
|
66
|
+
readonly description: "If true, the evaluation passes when the match is not found";
|
|
67
|
+
}];
|
|
68
|
+
readonly criteriaFields: readonly [{
|
|
69
|
+
readonly key: "expectedOutput";
|
|
70
|
+
readonly label: "Expected Output";
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly required: false;
|
|
73
|
+
readonly description: "The expected output value for this evaluator";
|
|
74
|
+
}];
|
|
75
|
+
readonly examples: {
|
|
76
|
+
readonly criteria: {
|
|
77
|
+
readonly expectedOutput: {
|
|
78
|
+
readonly value: "Application approved";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly "uipath-json-similarity": {
|
|
84
|
+
readonly name: "JSON Similarity";
|
|
85
|
+
readonly description: "Compare JSON output similarity";
|
|
86
|
+
readonly category: "deterministic";
|
|
87
|
+
readonly shortDescription: "Passes when JSON structures are similar";
|
|
88
|
+
readonly configFields: readonly [{
|
|
89
|
+
readonly key: "targetOutputKey";
|
|
90
|
+
readonly label: "Target Output Key";
|
|
91
|
+
readonly type: "targetOutputKey";
|
|
92
|
+
readonly required: false;
|
|
93
|
+
readonly description: "The key in the output to evaluate";
|
|
94
|
+
}];
|
|
95
|
+
readonly criteriaFields: readonly [{
|
|
96
|
+
readonly key: "expectedOutput";
|
|
97
|
+
readonly label: "Expected Output";
|
|
98
|
+
readonly type: "object";
|
|
99
|
+
readonly required: false;
|
|
100
|
+
readonly description: "The expected output value for this evaluator";
|
|
101
|
+
}];
|
|
102
|
+
readonly examples: {
|
|
103
|
+
readonly criteria: {
|
|
104
|
+
readonly expectedOutput: {
|
|
105
|
+
readonly status: "ok";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly "uipath-llm-judge-output-semantic-similarity": {
|
|
111
|
+
readonly name: "LLM Judge Output";
|
|
112
|
+
readonly description: "Use LLM to judge semantic similarity of outputs";
|
|
113
|
+
readonly category: "llm-judge";
|
|
114
|
+
readonly shortDescription: "AI judges if output semantically matches expected";
|
|
115
|
+
readonly configFields: readonly [{
|
|
116
|
+
readonly key: "model";
|
|
117
|
+
readonly label: "Model";
|
|
118
|
+
readonly type: "llmModel";
|
|
119
|
+
readonly required: true;
|
|
120
|
+
readonly description: "The LLM model to use for judging";
|
|
121
|
+
}, {
|
|
122
|
+
readonly key: "prompt";
|
|
123
|
+
readonly label: "Evaluation Prompt";
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
readonly required: true;
|
|
126
|
+
readonly default: "As an expert evaluator, analyze the semantic similarity of these JSON contents to determine a score from 0-100. Focus on comparing the meaning and contextual equivalence of corresponding fields, accounting for alternative valid expressions, synonyms, and reasonable variations in language while maintaining high standards for accuracy and completeness. Provide your score with a justification, explaining briefly and concisely why you gave that score.\n----\nExpectedOutput:\n{{ExpectedOutput}}\n----\nActualOutput:\n{{ActualOutput}}\n";
|
|
127
|
+
readonly description: "Custom prompt template for the LLM judge";
|
|
128
|
+
}, {
|
|
129
|
+
readonly key: "temperature";
|
|
130
|
+
readonly label: "Temperature";
|
|
131
|
+
readonly type: "number";
|
|
132
|
+
readonly required: true;
|
|
133
|
+
readonly default: 0;
|
|
134
|
+
readonly min: 0;
|
|
135
|
+
readonly max: 2;
|
|
136
|
+
readonly step: 0.1;
|
|
137
|
+
readonly description: "Temperature for LLM generation";
|
|
138
|
+
}, {
|
|
139
|
+
readonly key: "maxTokens";
|
|
140
|
+
readonly label: "Max Tokens";
|
|
141
|
+
readonly type: "number";
|
|
142
|
+
readonly required: true;
|
|
143
|
+
readonly default: 8192;
|
|
144
|
+
readonly min: 0;
|
|
145
|
+
readonly max: 16384;
|
|
146
|
+
readonly step: 256;
|
|
147
|
+
readonly description: "Maximum tokens for LLM response";
|
|
148
|
+
}, {
|
|
149
|
+
readonly key: "targetOutputKey";
|
|
150
|
+
readonly label: "Target Output Key";
|
|
151
|
+
readonly type: "targetOutputKey";
|
|
152
|
+
readonly required: false;
|
|
153
|
+
readonly description: "The key in the output to evaluate";
|
|
154
|
+
}];
|
|
155
|
+
readonly criteriaFields: readonly [{
|
|
156
|
+
readonly key: "expectedOutput";
|
|
157
|
+
readonly label: "Expected Output";
|
|
158
|
+
readonly type: "object";
|
|
159
|
+
readonly required: false;
|
|
160
|
+
readonly description: "The expected output value for this evaluator";
|
|
161
|
+
}];
|
|
162
|
+
readonly examples: {
|
|
163
|
+
readonly config: {
|
|
164
|
+
readonly model: "gpt-4o";
|
|
165
|
+
readonly temperature: 0;
|
|
166
|
+
};
|
|
167
|
+
readonly criteria: {
|
|
168
|
+
readonly expectedOutput: {
|
|
169
|
+
readonly text: "The loan has been approved for the requested amount.";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly "uipath-llm-judge-output-strict-json-similarity": {
|
|
175
|
+
readonly name: "LLM Judge Strict JSON";
|
|
176
|
+
readonly description: "Use LLM to judge strict JSON similarity";
|
|
177
|
+
readonly category: "llm-judge";
|
|
178
|
+
readonly shortDescription: "AI judges strict JSON structural match";
|
|
179
|
+
readonly configFields: readonly [{
|
|
180
|
+
readonly key: "model";
|
|
181
|
+
readonly label: "Model";
|
|
182
|
+
readonly type: "llmModel";
|
|
183
|
+
readonly required: true;
|
|
184
|
+
readonly description: "The LLM model to use for judging";
|
|
185
|
+
}, {
|
|
186
|
+
readonly key: "prompt";
|
|
187
|
+
readonly label: "Evaluation Prompt";
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
readonly required: true;
|
|
190
|
+
readonly default: "As an expert evaluator, analyze the semantic similarity of these JSON contents to determine a score from 0-100. Focus on comparing the meaning and contextual equivalence of corresponding fields, accounting for alternative valid expressions, synonyms, and reasonable variations in language while maintaining high standards for accuracy and completeness. Provide your score with a justification, explaining briefly and concisely why you gave that score.\n----\nExpectedOutput:\n{{ExpectedOutput}}\n----\nActualOutput:\n{{ActualOutput}}\n";
|
|
191
|
+
readonly description: "Custom prompt template for the LLM judge";
|
|
192
|
+
}, {
|
|
193
|
+
readonly key: "temperature";
|
|
194
|
+
readonly label: "Temperature";
|
|
195
|
+
readonly type: "number";
|
|
196
|
+
readonly required: true;
|
|
197
|
+
readonly default: 0;
|
|
198
|
+
readonly min: 0;
|
|
199
|
+
readonly max: 2;
|
|
200
|
+
readonly step: 0.1;
|
|
201
|
+
readonly description: "Temperature for LLM generation";
|
|
202
|
+
}, {
|
|
203
|
+
readonly key: "maxTokens";
|
|
204
|
+
readonly label: "Max Tokens";
|
|
205
|
+
readonly type: "number";
|
|
206
|
+
readonly required: true;
|
|
207
|
+
readonly default: 8192;
|
|
208
|
+
readonly min: 0;
|
|
209
|
+
readonly max: 16384;
|
|
210
|
+
readonly step: 256;
|
|
211
|
+
readonly description: "Maximum tokens for LLM response";
|
|
212
|
+
}, {
|
|
213
|
+
readonly key: "targetOutputKey";
|
|
214
|
+
readonly label: "Target Output Key";
|
|
215
|
+
readonly type: "targetOutputKey";
|
|
216
|
+
readonly required: false;
|
|
217
|
+
readonly description: "The key in the output to evaluate";
|
|
218
|
+
}];
|
|
219
|
+
readonly criteriaFields: readonly [{
|
|
220
|
+
readonly key: "expectedOutput";
|
|
221
|
+
readonly label: "Expected Output";
|
|
222
|
+
readonly type: "object";
|
|
223
|
+
readonly required: false;
|
|
224
|
+
readonly description: "The expected output value for this evaluator";
|
|
225
|
+
}];
|
|
226
|
+
readonly examples: {
|
|
227
|
+
readonly config: {
|
|
228
|
+
readonly model: "gpt-4o";
|
|
229
|
+
readonly temperature: 0;
|
|
230
|
+
};
|
|
231
|
+
readonly criteria: {
|
|
232
|
+
readonly expectedOutput: {
|
|
233
|
+
readonly result: "success";
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
readonly "uipath-llm-judge-trajectory-similarity": {
|
|
239
|
+
readonly name: "LLM Judge Trajectory";
|
|
240
|
+
readonly description: "Use LLM to judge agent trajectory and behavior";
|
|
241
|
+
readonly category: "llm-judge";
|
|
242
|
+
readonly shortDescription: "AI judges if agent followed expected behavior";
|
|
243
|
+
readonly configFields: readonly import("./types.js").EvaluatorFieldDefinition[];
|
|
244
|
+
readonly criteriaFields: readonly [{
|
|
245
|
+
readonly key: "expectedAgentBehavior";
|
|
246
|
+
readonly label: "Expected Agent Behavior";
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly required: false;
|
|
249
|
+
readonly description: "Description of expected agent behavior and actions";
|
|
250
|
+
}];
|
|
251
|
+
readonly examples: {
|
|
252
|
+
readonly config: {
|
|
253
|
+
readonly model: "gpt-4o";
|
|
254
|
+
};
|
|
255
|
+
readonly criteria: {
|
|
256
|
+
readonly expectedAgentBehavior: "Agent checks eligibility, then calls approval API";
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly "uipath-llm-judge-trajectory-simulation": {
|
|
261
|
+
readonly name: "LLM Judge Simulation";
|
|
262
|
+
readonly description: "Use LLM to judge simulation trajectory";
|
|
263
|
+
readonly category: "llm-judge";
|
|
264
|
+
readonly shortDescription: "AI judges simulated agent execution path";
|
|
265
|
+
readonly configFields: readonly import("./types.js").EvaluatorFieldDefinition[];
|
|
266
|
+
readonly criteriaFields: readonly [{
|
|
267
|
+
readonly key: "expectedAgentBehavior";
|
|
268
|
+
readonly label: "Expected Agent Behavior";
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
readonly required: false;
|
|
271
|
+
readonly description: "Description of expected agent behavior during simulation";
|
|
272
|
+
}];
|
|
273
|
+
readonly examples: {
|
|
274
|
+
readonly config: {
|
|
275
|
+
readonly model: "gpt-4o";
|
|
276
|
+
};
|
|
277
|
+
readonly criteria: {
|
|
278
|
+
readonly expectedAgentBehavior: "Agent simulates the user journey through checkout flow";
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
readonly "uipath-tool-call-args": {
|
|
283
|
+
readonly name: "Tool Call Arguments";
|
|
284
|
+
readonly description: "Verify tool call arguments match expected values";
|
|
285
|
+
readonly category: "tool-call";
|
|
286
|
+
readonly shortDescription: "Checks that tools were called with correct arguments";
|
|
287
|
+
readonly configFields: readonly [{
|
|
288
|
+
readonly key: "strict";
|
|
289
|
+
readonly label: "Strict Mode";
|
|
290
|
+
readonly type: "boolean";
|
|
291
|
+
readonly required: false;
|
|
292
|
+
readonly default: false;
|
|
293
|
+
readonly description: "If true, requires exact match of all tool call arguments";
|
|
294
|
+
}, {
|
|
295
|
+
readonly key: "subset";
|
|
296
|
+
readonly label: "Subset Mode";
|
|
297
|
+
readonly type: "boolean";
|
|
298
|
+
readonly required: false;
|
|
299
|
+
readonly default: false;
|
|
300
|
+
readonly description: "If true, allows actual tool calls to be a subset of expected";
|
|
301
|
+
}];
|
|
302
|
+
readonly criteriaFields: readonly [{
|
|
303
|
+
readonly key: "toolCalls";
|
|
304
|
+
readonly label: "Tool Calls";
|
|
305
|
+
readonly type: "toolCallArgs";
|
|
306
|
+
readonly required: false;
|
|
307
|
+
readonly description: "Expected tool calls with names and arguments";
|
|
308
|
+
}];
|
|
309
|
+
};
|
|
310
|
+
readonly "uipath-tool-call-count": {
|
|
311
|
+
readonly name: "Tool Call Count";
|
|
312
|
+
readonly description: "Verify tool call counts match expected values";
|
|
313
|
+
readonly category: "tool-call";
|
|
314
|
+
readonly shortDescription: "Checks number of times each tool was called";
|
|
315
|
+
readonly configFields: readonly [{
|
|
316
|
+
readonly key: "strict";
|
|
317
|
+
readonly label: "Strict Mode";
|
|
318
|
+
readonly type: "boolean";
|
|
319
|
+
readonly required: false;
|
|
320
|
+
readonly default: false;
|
|
321
|
+
readonly description: "If true, requires exact count match";
|
|
322
|
+
}];
|
|
323
|
+
readonly criteriaFields: readonly [{
|
|
324
|
+
readonly key: "toolCallsCount";
|
|
325
|
+
readonly label: "Tool Calls Count";
|
|
326
|
+
readonly type: "toolCallCount";
|
|
327
|
+
readonly required: false;
|
|
328
|
+
readonly description: "Expected tool call counts with comparison operators";
|
|
329
|
+
}];
|
|
330
|
+
};
|
|
331
|
+
readonly "uipath-tool-call-order": {
|
|
332
|
+
readonly name: "Tool Call Order";
|
|
333
|
+
readonly description: "Verify tool calls occur in expected order";
|
|
334
|
+
readonly category: "tool-call";
|
|
335
|
+
readonly shortDescription: "Checks that tools were called in the right sequence";
|
|
336
|
+
readonly configFields: readonly [{
|
|
337
|
+
readonly key: "strict";
|
|
338
|
+
readonly label: "Strict Mode";
|
|
339
|
+
readonly type: "boolean";
|
|
340
|
+
readonly required: false;
|
|
341
|
+
readonly default: false;
|
|
342
|
+
readonly description: "If true, requires exact order match";
|
|
343
|
+
}];
|
|
344
|
+
readonly criteriaFields: readonly [{
|
|
345
|
+
readonly key: "toolCallsOrder";
|
|
346
|
+
readonly label: "Tool Calls Order";
|
|
347
|
+
readonly type: "toolCallOrder";
|
|
348
|
+
readonly required: false;
|
|
349
|
+
readonly description: "Tool names in expected execution order";
|
|
350
|
+
}];
|
|
351
|
+
};
|
|
352
|
+
readonly "uipath-tool-call-output": {
|
|
353
|
+
readonly name: "Tool Call Output";
|
|
354
|
+
readonly description: "Verify tool call outputs match expected values";
|
|
355
|
+
readonly category: "tool-call";
|
|
356
|
+
readonly shortDescription: "Checks that tool outputs match expected values";
|
|
357
|
+
readonly configFields: readonly [{
|
|
358
|
+
readonly key: "strict";
|
|
359
|
+
readonly label: "Strict Mode";
|
|
360
|
+
readonly type: "boolean";
|
|
361
|
+
readonly required: false;
|
|
362
|
+
readonly default: false;
|
|
363
|
+
readonly description: "If true, requires exact output match";
|
|
364
|
+
}];
|
|
365
|
+
readonly criteriaFields: readonly [{
|
|
366
|
+
readonly key: "toolOutputs";
|
|
367
|
+
readonly label: "Tool Outputs";
|
|
368
|
+
readonly type: "toolCallOutput";
|
|
369
|
+
readonly required: false;
|
|
370
|
+
readonly description: "Expected tool outputs with names and output values";
|
|
371
|
+
}];
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
export type EvaluatorTypeId = keyof typeof EVALUATOR_TYPE_REGISTRY;
|
|
375
|
+
export declare const EVALUATOR_TYPE_ALIASES: Record<string, EvaluatorTypeId>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export declare const TOOL_CALL_EVALUATOR_TYPES: {
|
|
2
|
+
readonly "uipath-tool-call-args": {
|
|
3
|
+
readonly name: "Tool Call Arguments";
|
|
4
|
+
readonly description: "Verify tool call arguments match expected values";
|
|
5
|
+
readonly category: "tool-call";
|
|
6
|
+
readonly shortDescription: "Checks that tools were called with correct arguments";
|
|
7
|
+
readonly configFields: readonly [{
|
|
8
|
+
readonly key: "strict";
|
|
9
|
+
readonly label: "Strict Mode";
|
|
10
|
+
readonly type: "boolean";
|
|
11
|
+
readonly required: false;
|
|
12
|
+
readonly default: false;
|
|
13
|
+
readonly description: "If true, requires exact match of all tool call arguments";
|
|
14
|
+
}, {
|
|
15
|
+
readonly key: "subset";
|
|
16
|
+
readonly label: "Subset Mode";
|
|
17
|
+
readonly type: "boolean";
|
|
18
|
+
readonly required: false;
|
|
19
|
+
readonly default: false;
|
|
20
|
+
readonly description: "If true, allows actual tool calls to be a subset of expected";
|
|
21
|
+
}];
|
|
22
|
+
readonly criteriaFields: readonly [{
|
|
23
|
+
readonly key: "toolCalls";
|
|
24
|
+
readonly label: "Tool Calls";
|
|
25
|
+
readonly type: "toolCallArgs";
|
|
26
|
+
readonly required: false;
|
|
27
|
+
readonly description: "Expected tool calls with names and arguments";
|
|
28
|
+
}];
|
|
29
|
+
};
|
|
30
|
+
readonly "uipath-tool-call-count": {
|
|
31
|
+
readonly name: "Tool Call Count";
|
|
32
|
+
readonly description: "Verify tool call counts match expected values";
|
|
33
|
+
readonly category: "tool-call";
|
|
34
|
+
readonly shortDescription: "Checks number of times each tool was called";
|
|
35
|
+
readonly configFields: readonly [{
|
|
36
|
+
readonly key: "strict";
|
|
37
|
+
readonly label: "Strict Mode";
|
|
38
|
+
readonly type: "boolean";
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly default: false;
|
|
41
|
+
readonly description: "If true, requires exact count match";
|
|
42
|
+
}];
|
|
43
|
+
readonly criteriaFields: readonly [{
|
|
44
|
+
readonly key: "toolCallsCount";
|
|
45
|
+
readonly label: "Tool Calls Count";
|
|
46
|
+
readonly type: "toolCallCount";
|
|
47
|
+
readonly required: false;
|
|
48
|
+
readonly description: "Expected tool call counts with comparison operators";
|
|
49
|
+
}];
|
|
50
|
+
};
|
|
51
|
+
readonly "uipath-tool-call-order": {
|
|
52
|
+
readonly name: "Tool Call Order";
|
|
53
|
+
readonly description: "Verify tool calls occur in expected order";
|
|
54
|
+
readonly category: "tool-call";
|
|
55
|
+
readonly shortDescription: "Checks that tools were called in the right sequence";
|
|
56
|
+
readonly configFields: readonly [{
|
|
57
|
+
readonly key: "strict";
|
|
58
|
+
readonly label: "Strict Mode";
|
|
59
|
+
readonly type: "boolean";
|
|
60
|
+
readonly required: false;
|
|
61
|
+
readonly default: false;
|
|
62
|
+
readonly description: "If true, requires exact order match";
|
|
63
|
+
}];
|
|
64
|
+
readonly criteriaFields: readonly [{
|
|
65
|
+
readonly key: "toolCallsOrder";
|
|
66
|
+
readonly label: "Tool Calls Order";
|
|
67
|
+
readonly type: "toolCallOrder";
|
|
68
|
+
readonly required: false;
|
|
69
|
+
readonly description: "Tool names in expected execution order";
|
|
70
|
+
}];
|
|
71
|
+
};
|
|
72
|
+
readonly "uipath-tool-call-output": {
|
|
73
|
+
readonly name: "Tool Call Output";
|
|
74
|
+
readonly description: "Verify tool call outputs match expected values";
|
|
75
|
+
readonly category: "tool-call";
|
|
76
|
+
readonly shortDescription: "Checks that tool outputs match expected values";
|
|
77
|
+
readonly configFields: readonly [{
|
|
78
|
+
readonly key: "strict";
|
|
79
|
+
readonly label: "Strict Mode";
|
|
80
|
+
readonly type: "boolean";
|
|
81
|
+
readonly required: false;
|
|
82
|
+
readonly default: false;
|
|
83
|
+
readonly description: "If true, requires exact output match";
|
|
84
|
+
}];
|
|
85
|
+
readonly criteriaFields: readonly [{
|
|
86
|
+
readonly key: "toolOutputs";
|
|
87
|
+
readonly label: "Tool Outputs";
|
|
88
|
+
readonly type: "toolCallOutput";
|
|
89
|
+
readonly required: false;
|
|
90
|
+
readonly description: "Expected tool outputs with names and output values";
|
|
91
|
+
}];
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export type EvaluationCriteria = Record<string, unknown>;
|
|
2
|
+
export type EvaluatorFieldType = "array" | "boolean" | "llmModel" | "number" | "object" | "string" | "targetOutputKey" | "toolCallArgs" | "toolCallCount" | "toolCallOrder" | "toolCallOutput";
|
|
3
|
+
export interface EvaluatorFieldDefinition {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: EvaluatorFieldType;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
description?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
default?: string | number | boolean | Record<string, unknown> | unknown[];
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
step?: number;
|
|
14
|
+
minLength?: number;
|
|
15
|
+
maxLength?: number;
|
|
16
|
+
pattern?: string;
|
|
17
|
+
itemType?: EvaluatorFieldType;
|
|
18
|
+
properties?: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
export type EvaluatorCategoryId = "deterministic" | "llm-judge" | "tool-call";
|
|
21
|
+
export interface EvaluatorTypeDefinition {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
category: EvaluatorCategoryId;
|
|
25
|
+
shortDescription: string;
|
|
26
|
+
configFields: readonly EvaluatorFieldDefinition[];
|
|
27
|
+
criteriaFields: readonly EvaluatorFieldDefinition[];
|
|
28
|
+
examples?: {
|
|
29
|
+
config?: Record<string, unknown>;
|
|
30
|
+
criteria?: Record<string, unknown>;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface Evaluator {
|
|
34
|
+
version: string;
|
|
35
|
+
id: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
description: string;
|
|
38
|
+
evaluatorTypeId: string;
|
|
39
|
+
evaluatorConfig: Record<string, unknown>;
|
|
40
|
+
fileName?: string;
|
|
41
|
+
createdAt?: string | Date;
|
|
42
|
+
updatedAt?: string | Date;
|
|
43
|
+
}
|
|
44
|
+
export type SimulationStrategy = "Static" | "Llm";
|
|
45
|
+
export interface Simulation {
|
|
46
|
+
componentId: string;
|
|
47
|
+
componentType: string;
|
|
48
|
+
componentDescription?: string;
|
|
49
|
+
simulationStrategy: SimulationStrategy;
|
|
50
|
+
simulationInstruction?: string;
|
|
51
|
+
mockValue?: unknown;
|
|
52
|
+
outputSchema?: unknown;
|
|
53
|
+
}
|
|
54
|
+
export interface Evaluation {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
inputs: Record<string, unknown>;
|
|
58
|
+
expectedOutput?: Record<string, unknown>;
|
|
59
|
+
evaluationCriterias: Record<string, EvaluationCriteria | null | undefined>;
|
|
60
|
+
simulations?: Simulation[];
|
|
61
|
+
createdAt?: string | Date;
|
|
62
|
+
updatedAt?: string | Date;
|
|
63
|
+
}
|
|
64
|
+
export interface EvaluationSet {
|
|
65
|
+
version: string;
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
evaluatorRefs: string[];
|
|
70
|
+
evaluations: Evaluation[];
|
|
71
|
+
batchSize?: number;
|
|
72
|
+
timeoutMinutes?: number;
|
|
73
|
+
fileName?: string;
|
|
74
|
+
selectedEntrypoint?: string;
|
|
75
|
+
nodeEval?: boolean;
|
|
76
|
+
createdAt?: string | Date;
|
|
77
|
+
updatedAt?: string | Date;
|
|
78
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Evaluation, EvaluationSet, Evaluator, EvaluationCriteria as SchemaEvaluationCriteria, Simulation } from "./flow-eval-schema/index.js";
|
|
2
|
+
export type EvaluationCriteria = SchemaEvaluationCriteria;
|
|
3
|
+
export type FlowEvaluator = Evaluator;
|
|
4
|
+
export type FlowEvaluation = Evaluation;
|
|
5
|
+
export type FlowEvaluationSet = EvaluationSet;
|
|
6
|
+
export type { Simulation };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type EvaluatorTypeId } from "./flow-eval-schema/index.js";
|
|
2
|
+
import type { EvaluationCriteria, FlowEvaluator } from "./flow-eval-types.js";
|
|
3
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
4
|
+
export declare function isUUID(value: string): boolean;
|
|
5
|
+
export declare function stripJsonExt(name: string): string;
|
|
6
|
+
export declare function slugify(text: string): string;
|
|
7
|
+
export declare function getEvaluatorRef(evaluator: FlowEvaluator): string;
|
|
8
|
+
export declare function buildEvaluatorConfig(typeId: EvaluatorTypeId, options: {
|
|
9
|
+
name: string;
|
|
10
|
+
targetOutputKey?: string;
|
|
11
|
+
model?: string;
|
|
12
|
+
prompt?: string;
|
|
13
|
+
}): Record<string, unknown>;
|
|
14
|
+
export declare function buildDefaultCriteria(evaluators: FlowEvaluator[], expectedOutput: Record<string, unknown> | undefined, searchText: string | undefined): Record<string, EvaluationCriteria | null | undefined>;
|
|
@@ -172,6 +172,17 @@ export declare class FlowValidateService {
|
|
|
172
172
|
* verified failure that schema-trusting validation let through.
|
|
173
173
|
*/
|
|
174
174
|
private validateAgentPromptInputRefs;
|
|
175
|
+
/**
|
|
176
|
+
* Only top-level voice nodes get definitions, so a subflow one would ship
|
|
177
|
+
* a serviceTask with no `agentDefinition`. The packager refuses the same
|
|
178
|
+
* flow; both go away when the platform supports it.
|
|
179
|
+
*/
|
|
180
|
+
private rejectSubflowVoiceAgents;
|
|
181
|
+
/**
|
|
182
|
+
* A voice node needs a conversational agent.json with `settings.voice`.
|
|
183
|
+
* Missing `inputs.source` is `model-source-validator`'s job.
|
|
184
|
+
*/
|
|
185
|
+
private validateVoiceAgentSettings;
|
|
175
186
|
/**
|
|
176
187
|
* Classify one prompt field's `{{...}}` tokens into malformed (not the
|
|
177
188
|
* canonical `input.<key>` form) and undeclared (`input.<key>` whose key
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IFileSystem } from "@uipath/filesystem";
|
|
2
2
|
import { type EntryPoint, type PackagingBinding, type PackagingNode, type PackagingNodeManifest, type PackagingWorkflowVariables } from "@uipath/flow-schema";
|
|
3
|
-
|
|
3
|
+
import { isInlineAgentNodeType, readInlineAgentSource } from "@uipath/packager-tool-flow";
|
|
4
|
+
export interface FlowFileNode {
|
|
4
5
|
id: string;
|
|
5
6
|
type: string;
|
|
6
7
|
typeVersion?: string;
|
|
@@ -10,33 +11,7 @@ interface FlowFileNode {
|
|
|
10
11
|
model?: Record<string, unknown>;
|
|
11
12
|
[key: string]: unknown;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
* Resolve the inline-agent's projectId UUID from a flow node.
|
|
15
|
-
*
|
|
16
|
-
* Reads `inputs.source` (canonical, post-flow-core 0.2.50) and falls
|
|
17
|
-
* back through `model.source` plus the legacy `agentProjectId` aliases
|
|
18
|
-
* that flow-workbench's `extractInlineAgents` also walks. The
|
|
19
|
-
* `model.source` fallback exists so packaging tolerates already-deployed
|
|
20
|
-
* `.flow` files that still carry the legacy shape —
|
|
21
|
-
* `model-source-validator.ts` now flags `model.source` UUIDs as an
|
|
22
|
-
* invalid-flow error, so a deprecated flow is caught at validate time
|
|
23
|
-
* before reaching the packager in any normal workflow.
|
|
24
|
-
*
|
|
25
|
-
* Note: `packager/packager-tool-flow/src/flow-tool.ts` keeps an inline
|
|
26
|
-
* copy of this rule (`readSource` in `generateFlowPackagingArtifacts`).
|
|
27
|
-
* `flow-tool` already imports `@uipath/packager-tool-flow`, so the
|
|
28
|
-
* reverse import would create a cycle. If the priority list ever
|
|
29
|
-
* changes, update both copies — or lift the helper into
|
|
30
|
-
* `@uipath/flow-schema` (currently an external dep) and delete both.
|
|
31
|
-
*/
|
|
32
|
-
export declare function readInlineAgentSource(node: {
|
|
33
|
-
inputs?: Record<string, unknown>;
|
|
34
|
-
model?: Record<string, unknown>;
|
|
35
|
-
}): string | undefined;
|
|
36
|
-
/** Returns true when the node's type is a known inline-agent node type. */
|
|
37
|
-
export declare function isInlineAgentNodeType(type: string | undefined): boolean;
|
|
38
|
-
/** Returns true when the node's type is the conversational agent type. */
|
|
39
|
-
export declare function isConversationalAgentNodeType(type: string | undefined): boolean;
|
|
14
|
+
export { isInlineAgentNodeType, readInlineAgentSource };
|
|
40
15
|
/**
|
|
41
16
|
* Convert file-format nodes (flat `inputs`/`display`/`outputs`) to the
|
|
42
17
|
* `PackagingNode` shape expected by flow-schema packaging helpers — also
|
|
@@ -132,4 +107,3 @@ export declare function writePackagingArtifactsDetailed(fs: IFileSystem, project
|
|
|
132
107
|
* keep bindings in sync with the .flow file.
|
|
133
108
|
*/
|
|
134
109
|
export declare function regenerateBindingsFile(fs: IFileSystem, flowFilePath: string): Promise<void>;
|
|
135
|
-
export {};
|