@uipath/flow-tool 1.204.0-preview.255 → 1.205.0-preview.256

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +9 -9
  2. package/dist/THIRD-PARTY-NOTICES.md +36 -12
  3. package/dist/{authoring-bppe07p0.js → authoring-e1k40hyw.js} +6 -5
  4. package/dist/{binding-service-fw3rzae4.js → binding-service-yw91615m.js} +38 -30
  5. package/dist/{connector-service-2z7s7qtd.js → connector-service-ttm75a4n.js} +224 -47
  6. package/dist/de-UZI7FJDO-awjpqfz0.js +200 -0
  7. package/dist/{de-MUJPA4EB-dpg7t2rw.js → de-UZI7FJDO-mwvc4cxe.js} +29 -2
  8. package/dist/{de-FGHEJRCI-rv513mfh.js → de-WLW6KWOJ-2qnsqdtw.js} +238 -31
  9. package/dist/debug-conversation-trigger-xsm3ycqx.js +30 -0
  10. package/dist/{debug-http-client-p4kf38yt.js → debug-http-client-yqjzsnhw.js} +5 -4
  11. package/dist/{debug-service-893erynq.js → debug-service-nra3n02y.js} +6 -5
  12. package/dist/{edge-service-6zr5f09c.js → edge-service-8fv0m681.js} +16 -12
  13. package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
  14. package/dist/en-EJCBA3LK-0wb3b1xy.js +146 -0
  15. package/dist/{en-FBPVNKFN-dqt573xn.js → en-EJCBA3LK-dtpdghgj.js} +12 -4
  16. package/dist/{en-BWGKA5OE-1qkvb9rn.js → en-M7GQYBV2-5nfmpnfz.js} +88 -6
  17. package/dist/{es-7SE7HX2X-8yh1aj2y.js → es-4UBUTCQA-m1ytpyx2.js} +29 -2
  18. package/dist/es-4UBUTCQA-t7hsackg.js +200 -0
  19. package/dist/{es-KR3ZSNMP-84zphx0x.js → es-5THCNRFN-tqwyrdgy.js} +235 -28
  20. package/dist/{es-MX-2MYFZU7X-3rek4r73.js → es-MX-5RELIXKI-9jhqtddc.js} +29 -2
  21. package/dist/es-MX-5RELIXKI-jtjbcxbb.js +200 -0
  22. package/dist/{es-MX-XXZJGC4R-2mr8jtgm.js → es-MX-TWZBRAXK-gqd9swzw.js} +237 -30
  23. package/dist/filter-engine-7ep90g7f.js +11 -0
  24. package/dist/{flow-api-kjvpsxhw.js → flow-api-sat010z1.js} +16 -10
  25. package/dist/{flow-debug-service-9q9k756w.js → flow-debug-service-cgawm96k.js} +96 -58
  26. package/dist/{flow-eval-node-target-zvk7fcb2.js → flow-eval-node-target-dah1gmmh.js} +17 -17
  27. package/dist/flow-eval-run-api-xdygjzfv.js +13 -0
  28. package/dist/{flow-eval-run-service-2hfqyadh.js → flow-eval-run-service-03j1szf6.js} +73 -80
  29. package/dist/{flow-eval-service-m5n2svke.js → flow-eval-service-9j46ta9k.js} +167 -415
  30. package/dist/{flow-init-sdk-source-z9qx1zkt.js → flow-init-sdk-source-xvdvkq7d.js} +6 -5
  31. package/dist/{flow-init-service-8y8b76zm.js → flow-init-service-0a4y3a46.js} +19 -15
  32. package/dist/{flow-io-w11yspjx.js → flow-io-1wabd32s.js} +15 -11
  33. package/dist/{flow-migrate-service-v7ch4t3h.js → flow-migrate-service-mkqpbwtv.js} +16 -12
  34. package/dist/{flow-pack-service-xs8v5mba.js → flow-pack-service-7dj2hhyz.js} +47 -38
  35. package/dist/flow-validate-service-1ktjayjv.js +70 -0
  36. package/dist/{fr-Y6NPVODW-8vr1ja4b.js → fr-CERONSRC-edpxhbmb.js} +237 -30
  37. package/dist/{fr-MDFKNZ4C-h4a122k9.js → fr-VBM5WRC2-63z7w4mh.js} +29 -2
  38. package/dist/fr-VBM5WRC2-707ha692.js +200 -0
  39. package/dist/{governance-fetcher-18pk0mgv.js → governance-fetcher-76hxssjm.js} +7 -6
  40. package/dist/{hitl-service-ehnfkwhp.js → hitl-service-vcbhd4cb.js} +15 -11
  41. package/dist/{index-aaq9rwfv.js → index-1b2je9n2.js} +1088 -233
  42. package/dist/index-d090f35d.js +66 -0
  43. package/dist/{index-yj4xk2aw.js → index-dgdnbb2g.js} +7 -5
  44. package/dist/{index-ng2f77my.js → index-fyc0k5dd.js} +985 -617
  45. package/dist/{index-9hqj0ee4.js → index-hz008fep.js} +6 -5
  46. package/dist/{index-vrhcbxnk.js → index-nsn889vf.js} +6 -5
  47. package/dist/{index-2s8rmmw6.js → index-sqhbn7ew.js} +4 -4
  48. package/dist/{index-tnz5ks4t.js → index-wycgq0ff.js} +65 -2230
  49. package/dist/index.js +17 -14
  50. package/dist/init.js +19 -15
  51. package/dist/inline-entity-resolver-64pqwk86.js +45 -0
  52. package/dist/input-reader-n7kzdrev.js +12 -0
  53. package/dist/{ja-UTQEAP34-8e0q6swp.js → ja-43QL7CGO-c3q8gre9.js} +29 -2
  54. package/dist/ja-43QL7CGO-h6qfxfay.js +200 -0
  55. package/dist/{ja-Q5PXKJ2V-p4msxzjd.js → ja-U2MCNHGT-gz0ap1jk.js} +235 -28
  56. package/dist/{known-types-q6fcyq2e.js → known-types-3025scz1.js} +5 -5
  57. package/dist/ko-TLL6Z6CD-ag6gjynr.js +200 -0
  58. package/dist/{ko-AXCHW2OK-askct7f6.js → ko-TLL6Z6CD-wrt3n8a9.js} +29 -2
  59. package/dist/{ko-AYBDSRZG-41mdmsg1.js → ko-XAUYQWDR-zp81gjp4.js} +237 -30
  60. package/dist/{maestro-automate-entry-qak46eg0.js → maestro-automate-entry-6f9act3w.js} +2 -2
  61. package/dist/{node-cvwqsgg0.js → node-hz6cvp9d.js} +29 -15
  62. package/dist/{node-service-544fv7as.js → node-service-7wz8gx7h.js} +41 -30
  63. package/dist/{node-strategy-fdnkvq4a.js → node-strategy-1dmmhvf3.js} +1 -1
  64. package/dist/node-sync-service-yvyf7chw.js +61 -0
  65. package/dist/packager-tool-10vc8pq4.js +2 -0
  66. package/dist/{packager-tool-29b6r6eg.js → packager-tool-2h15x2kb.js} +6 -6
  67. package/dist/{packager-tool-h7cjs093.js → packager-tool-2z0r1f32.js} +668 -57
  68. package/dist/packager-tool-4kr6g0zw.js +16 -0
  69. package/dist/packager-tool-4x7tzvv0.js +1176 -0
  70. package/dist/{packager-tool-d88rqwk8.js → packager-tool-6z1hsm2h.js} +13 -5
  71. package/dist/packager-tool-7hw344bt.js +107 -0
  72. package/dist/{packager-tool-pb7wzsn4.js → packager-tool-7wnxyvf9.js} +519 -437
  73. package/dist/{packager-tool-m8xtf5ej.js → packager-tool-8g5931fz.js} +7 -4
  74. package/dist/{packager-tool-h9tzz0qd.js → packager-tool-961vsbsc.js} +15 -10
  75. package/dist/packager-tool-9era57c0.js +28 -0
  76. package/dist/packager-tool-9gprvfcy.js +23 -0
  77. package/dist/packager-tool-9jxzgsxc.js +14 -0
  78. package/dist/{packager-tool-zxp4hya4.js → packager-tool-a5afh1dc.js} +34 -13
  79. package/dist/{packager-tool-02f63a08.js → packager-tool-apawc11t.js} +88 -762
  80. package/dist/{packager-tool-tf3d2y8z.js → packager-tool-aw9v0raw.js} +2 -2
  81. package/dist/packager-tool-cqtsj6yh.js +2 -0
  82. package/dist/{packager-tool-5nqhxb9e.js → packager-tool-dwd6cc01.js} +16110 -13031
  83. package/dist/{packager-tool-t605qewm.js → packager-tool-dxgrhfq5.js} +2 -2
  84. package/dist/{packager-tool-awkq26v0.js → packager-tool-e7kvq8hf.js} +5 -3
  85. package/dist/{packager-tool-2y2mmdnq.js → packager-tool-fjqpf1y6.js} +6 -24
  86. package/dist/{packager-tool-3dc9gz35.js → packager-tool-frjt46rb.js} +1 -1
  87. package/dist/{packager-tool-y8egb0fa.js → packager-tool-gqq3vkgh.js} +2573 -535
  88. package/dist/{packager-tool-w5a1hhyj.js → packager-tool-hxyjn885.js} +13 -2
  89. package/dist/packager-tool-j3228zs9.js +35 -0
  90. package/dist/{packager-tool-hhy1gr2k.js → packager-tool-jgfzfqjm.js} +1 -1
  91. package/dist/{packager-tool-5csvkk54.js → packager-tool-kb520rm5.js} +172 -71
  92. package/dist/{packager-tool-k04k2rnq.js → packager-tool-kmv2p8z4.js} +20 -8
  93. package/dist/{packager-tool-6h69pd2a.js → packager-tool-kn86394c.js} +127 -61
  94. package/dist/packager-tool-mgcz986r.js +143 -0
  95. package/dist/{packager-tool-3h2ktz6q.js → packager-tool-myhbp761.js} +11 -1
  96. package/dist/{packager-tool-5tk1eg46.js → packager-tool-ns9xn7zq.js} +13 -13
  97. package/dist/{packager-tool-vbfz8k7w.js → packager-tool-p8gab24q.js} +52 -32
  98. package/dist/{packager-tool-stq8800d.js → packager-tool-pacrqxv2.js} +17 -4
  99. package/dist/{packager-tool-7q6z6npd.js → packager-tool-pcvhcn2k.js} +93 -11
  100. package/dist/packager-tool-phw8ydjx.js +331 -0
  101. package/dist/{packager-tool-mx0gg6yh.js → packager-tool-q8akejne.js} +6 -4
  102. package/dist/packager-tool-qcqb9hf8.js +26 -0
  103. package/dist/{packager-tool-n89vrpex.js → packager-tool-skcjythd.js} +10907 -25608
  104. package/dist/{packager-tool-v37kemg5.js → packager-tool-sphnextf.js} +5 -6
  105. package/dist/{packager-tool-1ca047de.js → packager-tool-sqpesv2e.js} +12 -56
  106. package/dist/packager-tool-t7ahhaer.js +877 -0
  107. package/dist/{packager-tool-zgm9mqrh.js → packager-tool-thnkpqwc.js} +1802 -378
  108. package/dist/{packager-tool-peawy22c.js → packager-tool-tqjfdpda.js} +53 -8
  109. package/dist/{packager-tool-gb4sm499.js → packager-tool-vd3rn4fj.js} +463 -327
  110. package/dist/{packager-tool-5tjzg56t.js → packager-tool-wh660fny.js} +1 -1
  111. package/dist/{packager-tool-tyg399d6.js → packager-tool-wze74wyk.js} +74 -47
  112. package/dist/{packager-tool-zbhqrk3p.js → packager-tool-x20684x5.js} +1 -1
  113. package/dist/packager-tool-xj0agqpk.js +11 -0
  114. package/dist/packager-tool-xk78j7dz.js +1256 -0
  115. package/dist/{packager-tool-py93409h.js → packager-tool-ymma2s85.js} +2 -2
  116. package/dist/packager-tool-z0yxfhdj.js +40 -0
  117. package/dist/packager-tool.js +13 -10
  118. package/dist/{pt-BR-TKHNHMET-sn91xyq0.js → pt-BR-GNQNAAZ2-xadharv4.js} +237 -30
  119. package/dist/{pt-BR-Y6K6XHXK-mp3hwhw1.js → pt-BR-USP2T7GD-pedn77m1.js} +29 -2
  120. package/dist/pt-BR-USP2T7GD-rppy42ym.js +200 -0
  121. package/dist/{pt-3DIO5QWG-59b3f4bc.js → pt-RMIAKZB4-67enhx3m.js} +29 -2
  122. package/dist/pt-RMIAKZB4-t80exmp7.js +200 -0
  123. package/dist/{pt-ROXU257Y-2f6bxev4.js → pt-TO2DARY2-ftcce1bv.js} +237 -30
  124. package/dist/ro-GHOBYW2S-4zevc9dy.js +200 -0
  125. package/dist/{ro-BWR3ONRR-vzx3hy8a.js → ro-GHOBYW2S-mhnqsgaa.js} +29 -2
  126. package/dist/{ro-AVAWPKOO-b89pw79r.js → ro-WUYJV6OW-a8d9qy1n.js} +235 -28
  127. package/dist/ru-WBLQ5B2U-dpqvtfwr.js +10 -0
  128. package/dist/services/connector-request-buckets.d.ts +1 -0
  129. package/dist/services/flow-eval-file-store.d.ts +1 -11
  130. package/dist/services/flow-eval-utils.d.ts +1 -32
  131. package/dist/services/flow-validate-service.d.ts +51 -0
  132. package/dist/services/inline-entity-resolver.d.ts +22 -0
  133. package/dist/services/node-service.d.ts +21 -1
  134. package/dist/services/packaging-utils.d.ts +15 -2
  135. package/dist/{shared-utils-pnbvyyb2.js → shared-utils-tqnx96mg.js} +4 -3
  136. package/dist/solution-auth-8qz5pw7z.js +14 -0
  137. package/dist/solution-discovery-vqravtkh.js +44 -0
  138. package/dist/{tidy-service-j70ccg27.js → tidy-service-tqjea6g2.js} +143 -39
  139. package/dist/tool.js +17 -14
  140. package/dist/{tr-5IIHSFW5-hw4cewew.js → tr-GDTLECMM-k5fhmq13.js} +29 -2
  141. package/dist/tr-GDTLECMM-kngksm3r.js +200 -0
  142. package/dist/{tr-JMIP7ZSL-c39b6pe4.js → tr-M3F5A6AU-bb0tg39m.js} +235 -28
  143. package/dist/utils/flow-io.d.ts +2 -1
  144. package/dist/validation.js +39 -33
  145. package/dist/{variable-service-86t2r5m9.js → variable-service-kqnqxmx2.js} +16 -12
  146. package/dist/{wait-for-flow-job-d8m6mqb4.js → wait-for-flow-job-b0vj8828.js} +15 -12
  147. package/dist/{zh-CN-IFFXSEJS-9wm9gmrv.js → zh-CN-C5G4PC7C-ds9gkptg.js} +235 -28
  148. package/dist/zh-CN-I5D7WHBD-ge92tbx9.js +200 -0
  149. package/dist/{zh-CN-R2KU4U5L-tc1hat59.js → zh-CN-I5D7WHBD-sr5h0a98.js} +29 -2
  150. package/dist/{zh-TW-GNKMELBF-j674515r.js → zh-TW-2AVLM723-288pkc1z.js} +29 -2
  151. package/dist/zh-TW-2AVLM723-xsmap3gk.js +200 -0
  152. package/dist/{zh-TW-IYBNYAMG-8727c7v2.js → zh-TW-62HZIG6O-787kdwex.js} +234 -27
  153. package/package.json +2 -2
  154. package/dist/debug-conversation-trigger-hgszjdhx.js +0 -44
  155. package/dist/flow-eval-run-api-byx3cacw.js +0 -13
  156. package/dist/flow-validate-service-12v3bz1b.js +0 -64
  157. package/dist/input-reader-vhar4g0k.js +0 -11
  158. package/dist/node-sync-service-ccwgtyte.js +0 -40
  159. package/dist/packager-tool-4g5hk66k.js +0 -454
  160. package/dist/packager-tool-kg35b9s6.js +0 -15
  161. package/dist/packager-tool-pz5nqg0s.js +0 -64
  162. package/dist/packager-tool-t3ysatjd.js +0 -521
  163. package/dist/packager-tool-vd6jt4n8.js +0 -208
  164. package/dist/packager-tool-vscvjrhn.js +0 -265
  165. package/dist/services/flow-debug-service.d.ts +0 -320
  166. package/dist/services/flow-eval-schema/deterministic-evaluators.d.ts +0 -110
  167. package/dist/services/flow-eval-schema/evaluator-fields.d.ts +0 -66
  168. package/dist/services/flow-eval-schema/helpers.d.ts +0 -9
  169. package/dist/services/flow-eval-schema/index.d.ts +0 -4
  170. package/dist/services/flow-eval-schema/llm-judge-evaluators.d.ts +0 -174
  171. package/dist/services/flow-eval-schema/prompts.d.ts +0 -2
  172. package/dist/services/flow-eval-schema/registry.d.ts +0 -375
  173. package/dist/services/flow-eval-schema/tool-call-evaluators.d.ts +0 -93
  174. package/dist/services/flow-eval-schema/types.d.ts +0 -95
  175. package/dist/services/flow-eval-types.d.ts +0 -6
  176. package/dist/utils/write-resolved-flow.d.ts +0 -7
  177. /package/dist/{headless-45dypanh.js → headless-fw8pwyzm.js} +0 -0
  178. /package/dist/{localization-xecwjpe2.js → localization-d6gjmrsw.js} +0 -0
@@ -1,521 +0,0 @@
1
- import {
2
- findNodeDefinition
3
- } from "./packager-tool-w5a1hhyj.js";
4
- import {
5
- catchError
6
- } from "./packager-tool-02f63a08.js";
7
- import {
8
- __require
9
- } from "./packager-tool-1yh8g550.js";
10
-
11
- // src/services/flow-eval-schema/prompts.ts
12
- var DEFAULT_EVALUATOR_PROMPT = `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.
13
- ----
14
- ExpectedOutput:
15
- {{ExpectedOutput}}
16
- ----
17
- ActualOutput:
18
- {{ActualOutput}}
19
- `;
20
- var DEFAULT_TRAJECTORY_EVALUATOR_PROMPT = `As an expert evaluator, determine how well the agent did on a scale of 0-100. Focus on if the simulation was successful and if the agent behaved according to the expected output accounting for alternative valid expressions, 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.
21
- ----
22
- UserOrSyntheticInputGivenToAgent:
23
- {{UserOrSyntheticInput}}
24
- ----
25
- SimulationInstructions:
26
- {{SimulationInstructions}}
27
- ----
28
- ExpectedAgentBehavior:
29
- {{ExpectedAgentBehavior}}
30
- ----
31
- AgentRunHistory:
32
- {{AgentRunHistory}}
33
- `;
34
-
35
- // src/services/flow-eval-schema/evaluator-fields.ts
36
- var targetOutputKeyConfigField = {
37
- key: "targetOutputKey",
38
- label: "Target Output Key",
39
- type: "targetOutputKey",
40
- required: false,
41
- description: "The key in the output to evaluate"
42
- };
43
- var caseSensitiveConfigField = {
44
- key: "caseSensitive",
45
- label: "Case Sensitive",
46
- type: "boolean",
47
- required: false,
48
- default: false,
49
- description: "If true, the comparison is case-sensitive"
50
- };
51
- var negatedConfigField = {
52
- key: "negated",
53
- label: "Negated",
54
- type: "boolean",
55
- required: false,
56
- default: false,
57
- description: "If true, the evaluation passes when the match is not found"
58
- };
59
- var expectedOutputCriteriaField = {
60
- key: "expectedOutput",
61
- label: "Expected Output",
62
- type: "object",
63
- required: false,
64
- description: "The expected output value for this evaluator"
65
- };
66
- var llmBaseConfigFields = [
67
- {
68
- key: "model",
69
- label: "Model",
70
- type: "llmModel",
71
- required: true,
72
- description: "The LLM model to use for judging"
73
- },
74
- {
75
- key: "prompt",
76
- label: "Evaluation Prompt",
77
- type: "string",
78
- required: true,
79
- default: DEFAULT_EVALUATOR_PROMPT,
80
- description: "Custom prompt template for the LLM judge"
81
- },
82
- {
83
- key: "temperature",
84
- label: "Temperature",
85
- type: "number",
86
- required: true,
87
- default: 0,
88
- min: 0,
89
- max: 2,
90
- step: 0.1,
91
- description: "Temperature for LLM generation"
92
- },
93
- {
94
- key: "maxTokens",
95
- label: "Max Tokens",
96
- type: "number",
97
- required: true,
98
- default: 8192,
99
- min: 0,
100
- max: 16384,
101
- step: 256,
102
- description: "Maximum tokens for LLM response"
103
- }
104
- ];
105
- var llmTrajectoryBaseConfigFields = llmBaseConfigFields.map((field) => field.key === "prompt" ? { ...field, default: DEFAULT_TRAJECTORY_EVALUATOR_PROMPT } : field);
106
-
107
- // src/services/flow-eval-schema/deterministic-evaluators.ts
108
- var DETERMINISTIC_EVALUATOR_TYPES = {
109
- "uipath-contains": {
110
- name: "Contains Text",
111
- description: "Check if output contains specific text",
112
- category: "deterministic",
113
- shortDescription: "Passes when output contains given text",
114
- configFields: [
115
- targetOutputKeyConfigField,
116
- caseSensitiveConfigField,
117
- {
118
- ...negatedConfigField,
119
- label: "Negated (should NOT contain)"
120
- }
121
- ],
122
- criteriaFields: [
123
- {
124
- key: "searchText",
125
- label: "Search Text",
126
- type: "string",
127
- required: false,
128
- minLength: 1,
129
- description: "The text to search for in the output"
130
- }
131
- ],
132
- examples: {
133
- criteria: { searchText: "loan approved" }
134
- }
135
- },
136
- "uipath-exact-match": {
137
- name: "Exact Match",
138
- description: "Check if output exactly matches expected value",
139
- category: "deterministic",
140
- shortDescription: "Passes when output is an exact match",
141
- configFields: [
142
- targetOutputKeyConfigField,
143
- caseSensitiveConfigField,
144
- negatedConfigField
145
- ],
146
- criteriaFields: [expectedOutputCriteriaField],
147
- examples: {
148
- criteria: { expectedOutput: { value: "Application approved" } }
149
- }
150
- },
151
- "uipath-json-similarity": {
152
- name: "JSON Similarity",
153
- description: "Compare JSON output similarity",
154
- category: "deterministic",
155
- shortDescription: "Passes when JSON structures are similar",
156
- configFields: [targetOutputKeyConfigField],
157
- criteriaFields: [expectedOutputCriteriaField],
158
- examples: {
159
- criteria: { expectedOutput: { status: "ok" } }
160
- }
161
- }
162
- };
163
-
164
- // src/services/flow-eval-schema/llm-judge-evaluators.ts
165
- var LLM_JUDGE_EVALUATOR_TYPES = {
166
- "uipath-llm-judge-output-semantic-similarity": {
167
- name: "LLM Judge Output",
168
- description: "Use LLM to judge semantic similarity of outputs",
169
- category: "llm-judge",
170
- shortDescription: "AI judges if output semantically matches expected",
171
- configFields: [...llmBaseConfigFields, targetOutputKeyConfigField],
172
- criteriaFields: [expectedOutputCriteriaField],
173
- examples: {
174
- config: { model: "gpt-4o", temperature: 0 },
175
- criteria: {
176
- expectedOutput: {
177
- text: "The loan has been approved for the requested amount."
178
- }
179
- }
180
- }
181
- },
182
- "uipath-llm-judge-output-strict-json-similarity": {
183
- name: "LLM Judge Strict JSON",
184
- description: "Use LLM to judge strict JSON similarity",
185
- category: "llm-judge",
186
- shortDescription: "AI judges strict JSON structural match",
187
- configFields: [...llmBaseConfigFields, targetOutputKeyConfigField],
188
- criteriaFields: [expectedOutputCriteriaField],
189
- examples: {
190
- config: { model: "gpt-4o", temperature: 0 },
191
- criteria: { expectedOutput: { result: "success" } }
192
- }
193
- },
194
- "uipath-llm-judge-trajectory-similarity": {
195
- name: "LLM Judge Trajectory",
196
- description: "Use LLM to judge agent trajectory and behavior",
197
- category: "llm-judge",
198
- shortDescription: "AI judges if agent followed expected behavior",
199
- configFields: llmTrajectoryBaseConfigFields,
200
- criteriaFields: [
201
- {
202
- key: "expectedAgentBehavior",
203
- label: "Expected Agent Behavior",
204
- type: "string",
205
- required: false,
206
- description: "Description of expected agent behavior and actions"
207
- }
208
- ],
209
- examples: {
210
- config: { model: "gpt-4o" },
211
- criteria: {
212
- expectedAgentBehavior: "Agent checks eligibility, then calls approval API"
213
- }
214
- }
215
- },
216
- "uipath-llm-judge-trajectory-simulation": {
217
- name: "LLM Judge Simulation",
218
- description: "Use LLM to judge simulation trajectory",
219
- category: "llm-judge",
220
- shortDescription: "AI judges simulated agent execution path",
221
- configFields: llmTrajectoryBaseConfigFields,
222
- criteriaFields: [
223
- {
224
- key: "expectedAgentBehavior",
225
- label: "Expected Agent Behavior",
226
- type: "string",
227
- required: false,
228
- description: "Description of expected agent behavior during simulation"
229
- }
230
- ],
231
- examples: {
232
- config: { model: "gpt-4o" },
233
- criteria: {
234
- expectedAgentBehavior: "Agent simulates the user journey through checkout flow"
235
- }
236
- }
237
- }
238
- };
239
-
240
- // src/services/flow-eval-schema/tool-call-evaluators.ts
241
- var TOOL_CALL_EVALUATOR_TYPES = {
242
- "uipath-tool-call-args": {
243
- name: "Tool Call Arguments",
244
- description: "Verify tool call arguments match expected values",
245
- category: "tool-call",
246
- shortDescription: "Checks that tools were called with correct arguments",
247
- configFields: [
248
- {
249
- key: "strict",
250
- label: "Strict Mode",
251
- type: "boolean",
252
- required: false,
253
- default: false,
254
- description: "If true, requires exact match of all tool call arguments"
255
- },
256
- {
257
- key: "subset",
258
- label: "Subset Mode",
259
- type: "boolean",
260
- required: false,
261
- default: false,
262
- description: "If true, allows actual tool calls to be a subset of expected"
263
- }
264
- ],
265
- criteriaFields: [
266
- {
267
- key: "toolCalls",
268
- label: "Tool Calls",
269
- type: "toolCallArgs",
270
- required: false,
271
- description: "Expected tool calls with names and arguments"
272
- }
273
- ]
274
- },
275
- "uipath-tool-call-count": {
276
- name: "Tool Call Count",
277
- description: "Verify tool call counts match expected values",
278
- category: "tool-call",
279
- shortDescription: "Checks number of times each tool was called",
280
- configFields: [
281
- {
282
- key: "strict",
283
- label: "Strict Mode",
284
- type: "boolean",
285
- required: false,
286
- default: false,
287
- description: "If true, requires exact count match"
288
- }
289
- ],
290
- criteriaFields: [
291
- {
292
- key: "toolCallsCount",
293
- label: "Tool Calls Count",
294
- type: "toolCallCount",
295
- required: false,
296
- description: "Expected tool call counts with comparison operators"
297
- }
298
- ]
299
- },
300
- "uipath-tool-call-order": {
301
- name: "Tool Call Order",
302
- description: "Verify tool calls occur in expected order",
303
- category: "tool-call",
304
- shortDescription: "Checks that tools were called in the right sequence",
305
- configFields: [
306
- {
307
- key: "strict",
308
- label: "Strict Mode",
309
- type: "boolean",
310
- required: false,
311
- default: false,
312
- description: "If true, requires exact order match"
313
- }
314
- ],
315
- criteriaFields: [
316
- {
317
- key: "toolCallsOrder",
318
- label: "Tool Calls Order",
319
- type: "toolCallOrder",
320
- required: false,
321
- description: "Tool names in expected execution order"
322
- }
323
- ]
324
- },
325
- "uipath-tool-call-output": {
326
- name: "Tool Call Output",
327
- description: "Verify tool call outputs match expected values",
328
- category: "tool-call",
329
- shortDescription: "Checks that tool outputs match expected values",
330
- configFields: [
331
- {
332
- key: "strict",
333
- label: "Strict Mode",
334
- type: "boolean",
335
- required: false,
336
- default: false,
337
- description: "If true, requires exact output match"
338
- }
339
- ],
340
- criteriaFields: [
341
- {
342
- key: "toolOutputs",
343
- label: "Tool Outputs",
344
- type: "toolCallOutput",
345
- required: false,
346
- description: "Expected tool outputs with names and output values"
347
- }
348
- ]
349
- }
350
- };
351
-
352
- // src/services/flow-eval-schema/registry.ts
353
- var EVALUATOR_TYPE_REGISTRY = {
354
- ...DETERMINISTIC_EVALUATOR_TYPES,
355
- ...LLM_JUDGE_EVALUATOR_TYPES,
356
- ...TOOL_CALL_EVALUATOR_TYPES
357
- };
358
- var EVALUATOR_TYPE_ALIASES = {
359
- "exact-match": "uipath-exact-match",
360
- "json-similarity": "uipath-json-similarity",
361
- contains: "uipath-contains",
362
- "llm-judge-output": "uipath-llm-judge-output-semantic-similarity",
363
- "llm-judge-strict-json": "uipath-llm-judge-output-strict-json-similarity",
364
- "llm-judge-trajectory": "uipath-llm-judge-trajectory-similarity",
365
- "llm-judge-trajectory-simulation": "uipath-llm-judge-trajectory-simulation"
366
- };
367
-
368
- // src/services/flow-eval-schema/helpers.ts
369
- function evaluatorTypeAliases() {
370
- return Object.keys(EVALUATOR_TYPE_ALIASES);
371
- }
372
- function isEvaluatorTypeId(value) {
373
- return value in EVALUATOR_TYPE_REGISTRY;
374
- }
375
- function getEvaluatorTypeDefinition(typeId) {
376
- if (!isEvaluatorTypeId(typeId)) {
377
- return null;
378
- }
379
- return EVALUATOR_TYPE_REGISTRY[typeId];
380
- }
381
- function resolveEvaluatorType(type) {
382
- const resolved = EVALUATOR_TYPE_ALIASES[type] ?? type;
383
- if (!isEvaluatorTypeId(resolved)) {
384
- throw new Error(`Unknown evaluator type "${type}". Valid types: ${evaluatorTypeAliases().join(", ")}`);
385
- }
386
- return resolved;
387
- }
388
- function getDefaultConfigForEvaluatorType(typeId) {
389
- return collectFieldDefaults(EVALUATOR_TYPE_REGISTRY[typeId].configFields);
390
- }
391
- function collectFieldDefaults(fields) {
392
- const defaults = {};
393
- for (const field of fields) {
394
- if (field.default !== undefined) {
395
- defaults[field.key] = field.default;
396
- }
397
- }
398
- return defaults;
399
- }
400
- function evaluatorTypeHasConfigField(typeId, fieldKey) {
401
- return getEvaluatorTypeDefinition(typeId)?.configFields.some((field) => field.key === fieldKey) ?? false;
402
- }
403
- function evaluatorCanUseSharedExpectedOutput(typeId) {
404
- return getEvaluatorTypeDefinition(typeId)?.criteriaFields.some((field) => field.key === "expectedOutput" && field.type === "object") ?? false;
405
- }
406
- // src/services/flow-eval-utils.ts
407
- function isRecord(value) {
408
- return typeof value === "object" && value !== null && !Array.isArray(value);
409
- }
410
- var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
411
- function isUUID(value) {
412
- return UUID_RE.test(value);
413
- }
414
- function stripJsonExt(name) {
415
- return name.endsWith(".json") ? name.slice(0, -".json".length) : name;
416
- }
417
- function slugify(text) {
418
- const slug = text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
419
- return slug || "untitled";
420
- }
421
- function getEvaluatorRef(evaluator) {
422
- return stripJsonExt(evaluator.fileName ?? `${evaluator.id}.json`);
423
- }
424
- function buildEvaluatorConfig(typeId, options) {
425
- const evaluatorConfig = {
426
- name: options.name,
427
- ...getDefaultConfigForEvaluatorType(typeId)
428
- };
429
- if (evaluatorTypeHasConfigField(typeId, "targetOutputKey")) {
430
- evaluatorConfig.targetOutputKey = options.targetOutputKey ?? "*";
431
- }
432
- if (options.model !== undefined) {
433
- evaluatorConfig.model = options.model;
434
- }
435
- if (options.prompt !== undefined) {
436
- evaluatorConfig.prompt = options.prompt;
437
- }
438
- return evaluatorConfig;
439
- }
440
- async function validateLoginFields() {
441
- const { getLoginStatusAsync } = await import("./index-2s8rmmw6.js");
442
- const [loginError, login] = await catchError(getLoginStatusAsync());
443
- if (loginError) {
444
- throw new Error(loginError.message);
445
- }
446
- if (login.loginStatus !== "Logged in" || !login.baseUrl) {
447
- throw new Error("Not logged in. Run 'uip login' first.");
448
- }
449
- if (!login.organizationId) {
450
- throw new Error("Organization ID not available from login.");
451
- }
452
- if (!login.tenantId) {
453
- throw new Error("Tenant ID not available from login.");
454
- }
455
- if (!login.tenantName) {
456
- throw new Error("Tenant name not available from login.");
457
- }
458
- if (!login.accessToken) {
459
- throw new Error("Access token not available from login.");
460
- }
461
- return {
462
- baseUrl: login.baseUrl,
463
- organizationId: login.organizationId,
464
- tenantId: login.tenantId,
465
- tenantName: login.tenantName,
466
- accessToken: login.accessToken,
467
- organizationName: login.organizationName || undefined
468
- };
469
- }
470
- async function resolveLoginConfig() {
471
- const fields = await validateLoginFields();
472
- if (!fields.organizationName) {
473
- throw new Error("Organization name not available from login. Required for Studio Web evaluation.");
474
- }
475
- return {
476
- baseUrl: fields.baseUrl,
477
- organizationId: fields.organizationId,
478
- tenantId: fields.tenantId,
479
- tenantName: fields.tenantName,
480
- authToken: fields.accessToken,
481
- organizationName: fields.organizationName
482
- };
483
- }
484
- async function resolveEvalApiConfig() {
485
- const fields = await validateLoginFields();
486
- return {
487
- baseUrl: fields.baseUrl,
488
- organizationId: fields.organizationId,
489
- tenantName: fields.tenantName,
490
- tenantId: fields.tenantId,
491
- authToken: fields.accessToken
492
- };
493
- }
494
- function findMatchingDefinition(nodeType, typeVersion, definitions) {
495
- const strict = findNodeDefinition(definitions, {
496
- type: nodeType,
497
- typeVersion
498
- });
499
- if (strict)
500
- return strict;
501
- return definitions.find((d) => d.nodeType === nodeType);
502
- }
503
- function buildDefaultCriteria(evaluators, expectedOutput, searchText) {
504
- const criterias = {};
505
- for (const evaluator of evaluators) {
506
- const key = evaluator.id;
507
- if (expectedOutput !== undefined && evaluatorCanUseSharedExpectedOutput(evaluator.evaluatorTypeId)) {
508
- criterias[key] = { expectedOutput };
509
- } else if (searchText !== undefined && evaluator.evaluatorTypeId === "uipath-contains") {
510
- criterias[key] = { searchText };
511
- } else {
512
- const defaultCriteria = evaluator.evaluatorConfig.defaultEvaluationCriteria;
513
- criterias[key] = isRecord(defaultCriteria) ? defaultCriteria : null;
514
- }
515
- }
516
- return criterias;
517
- }
518
-
519
- export { evaluatorTypeAliases, resolveEvaluatorType, isRecord, isUUID, stripJsonExt, slugify, getEvaluatorRef, buildEvaluatorConfig, resolveLoginConfig, resolveEvalApiConfig, findMatchingDefinition, buildDefaultCriteria };
520
-
521
- //# debugId=6033C3040704269E64756E2164756E21