@lightsage/mcp 0.3.0 → 0.4.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.
Files changed (300) hide show
  1. package/README.md +2 -2
  2. package/api/well-known-openai-apps-challenge.js +25 -0
  3. package/bin/mcp-server.js +704 -724
  4. package/bin/mcp-server.js.map +61 -62
  5. package/esm/funcs/evalsCancel.d.ts +16 -0
  6. package/esm/funcs/evalsCancel.d.ts.map +1 -0
  7. package/esm/funcs/{evalsAnalysis.js → evalsCancel.js} +10 -10
  8. package/esm/funcs/evalsCancel.js.map +1 -0
  9. package/esm/funcs/evalsGet.d.ts +16 -0
  10. package/esm/funcs/evalsGet.d.ts.map +1 -0
  11. package/esm/funcs/{evalRunsV2EvalRunsRetrieve.js → evalsGet.js} +5 -5
  12. package/esm/funcs/evalsGet.js.map +1 -0
  13. package/esm/funcs/evalsRun.d.ts +6 -4
  14. package/esm/funcs/evalsRun.d.ts.map +1 -1
  15. package/esm/funcs/evalsRun.js +6 -4
  16. package/esm/funcs/evalsRun.js.map +1 -1
  17. package/esm/funcs/evalsV2EvalsCreate.d.ts +1 -1
  18. package/esm/funcs/evalsV2EvalsCreate.js +1 -1
  19. package/esm/funcs/evalsV2EvalsList.d.ts +1 -1
  20. package/esm/funcs/evalsV2EvalsList.js +1 -1
  21. package/esm/funcs/evalsV2EvalsRetrieve.d.ts +1 -1
  22. package/esm/funcs/evalsV2EvalsRetrieve.js +1 -1
  23. package/esm/funcs/evalsV2EvalsUpdate.d.ts +1 -1
  24. package/esm/funcs/evalsV2EvalsUpdate.js +1 -1
  25. package/esm/funcs/promptsV2PromptRunsList.d.ts +1 -1
  26. package/esm/funcs/promptsV2PromptRunsList.js +1 -1
  27. package/esm/funcs/promptsV2PromptRunsRetrieve.d.ts +1 -1
  28. package/esm/funcs/promptsV2PromptRunsRetrieve.js +1 -1
  29. package/esm/landing-page.js +1 -1
  30. package/esm/lib/config.d.ts +3 -3
  31. package/esm/lib/config.js +3 -3
  32. package/esm/mcp-server/mcp-server.js +1 -1
  33. package/esm/mcp-server/server.d.ts.map +1 -1
  34. package/esm/mcp-server/server.js +5 -9
  35. package/esm/mcp-server/server.js.map +1 -1
  36. package/esm/mcp-server/tools/evalsCancel.d.ts +7 -0
  37. package/esm/mcp-server/tools/evalsCancel.d.ts.map +1 -0
  38. package/esm/mcp-server/tools/evalsCancel.js +35 -0
  39. package/esm/mcp-server/tools/evalsCancel.js.map +1 -0
  40. package/esm/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.d.ts → evalsGet.d.ts} +2 -2
  41. package/esm/mcp-server/tools/evalsGet.d.ts.map +1 -0
  42. package/esm/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.js → evalsGet.js} +8 -8
  43. package/esm/mcp-server/tools/evalsGet.js.map +1 -0
  44. package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
  45. package/esm/mcp-server/tools/evalsRun.js +6 -4
  46. package/esm/mcp-server/tools/evalsRun.js.map +1 -1
  47. package/esm/mcp-server/tools/evalsV2EvalsCreate.js +1 -1
  48. package/esm/mcp-server/tools/evalsV2EvalsCreate.js.map +1 -1
  49. package/esm/mcp-server/tools/evalsV2EvalsList.js +1 -1
  50. package/esm/mcp-server/tools/evalsV2EvalsList.js.map +1 -1
  51. package/esm/mcp-server/tools/evalsV2EvalsRetrieve.js +1 -1
  52. package/esm/mcp-server/tools/evalsV2EvalsRetrieve.js.map +1 -1
  53. package/esm/mcp-server/tools/evalsV2EvalsUpdate.js +1 -1
  54. package/esm/mcp-server/tools/evalsV2EvalsUpdate.js.map +1 -1
  55. package/esm/mcp-server/tools/promptsV2PromptRunsList.js +1 -1
  56. package/esm/mcp-server/tools/promptsV2PromptRunsList.js.map +1 -1
  57. package/esm/mcp-server/tools/promptsV2PromptRunsRetrieve.js +1 -1
  58. package/esm/mcp-server/tools/promptsV2PromptRunsRetrieve.js.map +1 -1
  59. package/esm/models/createv2evalconfigurationrequest.d.ts +2 -0
  60. package/esm/models/createv2evalconfigurationrequest.d.ts.map +1 -1
  61. package/esm/models/createv2evalconfigurationrequest.js +2 -0
  62. package/esm/models/createv2evalconfigurationrequest.js.map +1 -1
  63. package/esm/models/createv2evalrequest.d.ts +16 -20
  64. package/esm/models/createv2evalrequest.d.ts.map +1 -1
  65. package/esm/models/createv2evalrequest.js +20 -17
  66. package/esm/models/createv2evalrequest.js.map +1 -1
  67. package/esm/models/createv2evalrunrequest.d.ts +19 -4
  68. package/esm/models/createv2evalrunrequest.d.ts.map +1 -1
  69. package/esm/models/createv2evalrunrequest.js +27 -6
  70. package/esm/models/createv2evalrunrequest.js.map +1 -1
  71. package/esm/models/publiccompetitorrow.js +2 -2
  72. package/esm/models/publiccompetitorrow.js.map +1 -1
  73. package/esm/models/publiccriterionverdict.d.ts +26 -0
  74. package/esm/models/publiccriterionverdict.d.ts.map +1 -0
  75. package/esm/models/publiccriterionverdict.js +24 -0
  76. package/esm/models/publiccriterionverdict.js.map +1 -0
  77. package/esm/models/publiccurrentvisibilityresponse.js +2 -2
  78. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  79. package/esm/models/publicevalrunenvironment.d.ts +15 -0
  80. package/esm/models/publicevalrunenvironment.d.ts.map +1 -0
  81. package/esm/models/publicevalrunenvironment.js +15 -0
  82. package/esm/models/publicevalrunenvironment.js.map +1 -0
  83. package/esm/models/publicevalrunprogress.d.ts +1 -0
  84. package/esm/models/publicevalrunprogress.d.ts.map +1 -1
  85. package/esm/models/publicevalrunprogress.js +3 -2
  86. package/esm/models/publicevalrunprogress.js.map +1 -1
  87. package/esm/models/publicgraderresult.d.ts +13 -0
  88. package/esm/models/publicgraderresult.d.ts.map +1 -0
  89. package/esm/models/publicgraderresult.js +18 -0
  90. package/esm/models/publicgraderresult.js.map +1 -0
  91. package/esm/models/publicpromptvisibilitymetrics.js +2 -2
  92. package/esm/models/publicpromptvisibilitymetrics.js.map +1 -1
  93. package/esm/models/publicvisibilitysnapshot.js +2 -2
  94. package/esm/models/publicvisibilitysnapshot.js.map +1 -1
  95. package/esm/models/searchgroundingmode.d.ts +20 -0
  96. package/esm/models/searchgroundingmode.d.ts.map +1 -0
  97. package/esm/models/searchgroundingmode.js +19 -0
  98. package/esm/models/searchgroundingmode.js.map +1 -0
  99. package/esm/models/updatev2evalconfigurationrequest.d.ts +2 -0
  100. package/esm/models/updatev2evalconfigurationrequest.d.ts.map +1 -1
  101. package/esm/models/updatev2evalconfigurationrequest.js +3 -0
  102. package/esm/models/updatev2evalconfigurationrequest.js.map +1 -1
  103. package/esm/models/updatev2evalrequest.d.ts +16 -20
  104. package/esm/models/updatev2evalrequest.d.ts.map +1 -1
  105. package/esm/models/updatev2evalrequest.js +21 -17
  106. package/esm/models/updatev2evalrequest.js.map +1 -1
  107. package/esm/models/v2eval.d.ts +20 -21
  108. package/esm/models/v2eval.d.ts.map +1 -1
  109. package/esm/models/v2eval.js +29 -18
  110. package/esm/models/v2eval.js.map +1 -1
  111. package/esm/models/v2evalconfiguration.d.ts +2 -0
  112. package/esm/models/v2evalconfiguration.d.ts.map +1 -1
  113. package/esm/models/v2evalconfiguration.js +2 -0
  114. package/esm/models/v2evalconfiguration.js.map +1 -1
  115. package/esm/models/v2evalresultsummary.d.ts +14 -1
  116. package/esm/models/v2evalresultsummary.d.ts.map +1 -1
  117. package/esm/models/v2evalresultsummary.js +16 -2
  118. package/esm/models/v2evalresultsummary.js.map +1 -1
  119. package/esm/models/v2evalrun.d.ts +5 -2
  120. package/esm/models/v2evalrun.d.ts.map +1 -1
  121. package/esm/models/v2evalrun.js +6 -3
  122. package/esm/models/v2evalrun.js.map +1 -1
  123. package/esm/models/v2evalrunanalysis.d.ts +3 -1
  124. package/esm/models/v2evalrunanalysis.d.ts.map +1 -1
  125. package/esm/models/v2evalrunanalysis.js +3 -1
  126. package/esm/models/v2evalrunanalysis.js.map +1 -1
  127. package/esm/models/v2evalrundetail.d.ts +30 -0
  128. package/esm/models/v2evalrundetail.d.ts.map +1 -0
  129. package/esm/models/v2evalrundetail.js +33 -0
  130. package/esm/models/v2evalrundetail.js.map +1 -0
  131. package/esm/models/v2evalrunscancelop.d.ts +31 -0
  132. package/esm/models/v2evalrunscancelop.d.ts.map +1 -0
  133. package/esm/models/v2evalrunscancelop.js +27 -0
  134. package/esm/models/v2evalrunscancelop.js.map +1 -0
  135. package/esm/models/v2evalrunscreateop.d.ts +23 -3
  136. package/esm/models/v2evalrunscreateop.d.ts.map +1 -1
  137. package/esm/models/v2evalrunscreateop.js +15 -2
  138. package/esm/models/v2evalrunscreateop.js.map +1 -1
  139. package/esm/models/v2evalrunsretrieveop.d.ts +9 -2
  140. package/esm/models/v2evalrunsretrieveop.d.ts.map +1 -1
  141. package/esm/models/v2evalrunsretrieveop.js +6 -2
  142. package/esm/models/v2evalrunsretrieveop.js.map +1 -1
  143. package/esm/models/v2evalruntraceevent.d.ts +3 -2
  144. package/esm/models/v2evalruntraceevent.d.ts.map +1 -1
  145. package/esm/models/v2evalruntraceevent.js +4 -3
  146. package/esm/models/v2evalruntraceevent.js.map +1 -1
  147. package/esm/models/v2inlineclireference.d.ts +6 -0
  148. package/esm/models/v2inlineclireference.d.ts.map +1 -0
  149. package/esm/models/v2inlineclireference.js +10 -0
  150. package/esm/models/v2inlineclireference.js.map +1 -0
  151. package/esm/models/v2inlinemcpdefinition.d.ts +28 -0
  152. package/esm/models/v2inlinemcpdefinition.d.ts.map +1 -0
  153. package/esm/models/v2inlinemcpdefinition.js +25 -0
  154. package/esm/models/v2inlinemcpdefinition.js.map +1 -0
  155. package/esm/models/v2promptrundetail.d.ts +6 -0
  156. package/esm/models/v2promptrundetail.d.ts.map +1 -1
  157. package/esm/models/v2promptrundetail.js +4 -1
  158. package/esm/models/v2promptrundetail.js.map +1 -1
  159. package/esm/models/v2promptrunsummary.d.ts.map +1 -1
  160. package/esm/models/v2promptrunsummary.js +1 -1
  161. package/esm/models/v2promptrunsummary.js.map +1 -1
  162. package/esm/models/v2publictask.d.ts +2 -2
  163. package/esm/models/v2publictask.d.ts.map +1 -1
  164. package/esm/models/v2publictask.js +4 -4
  165. package/esm/models/v2publictask.js.map +1 -1
  166. package/esm/models/v2savedclireference.d.ts +6 -0
  167. package/esm/models/v2savedclireference.d.ts.map +1 -0
  168. package/esm/models/v2savedclireference.js +10 -0
  169. package/esm/models/v2savedclireference.js.map +1 -0
  170. package/esm/models/v2savedmcpreference.d.ts +6 -0
  171. package/esm/models/v2savedmcpreference.d.ts.map +1 -0
  172. package/esm/models/v2savedmcpreference.js +10 -0
  173. package/esm/models/v2savedmcpreference.js.map +1 -0
  174. package/esm/tool-names.d.ts.map +1 -1
  175. package/esm/tool-names.js +13 -21
  176. package/esm/tool-names.js.map +1 -1
  177. package/package.json +1 -1
  178. package/src/funcs/{evalsAnalysis.ts → evalsCancel.ts} +13 -13
  179. package/src/funcs/{evalRunsV2EvalRunsRetrieve.ts → evalsGet.ts} +4 -4
  180. package/src/funcs/evalsRun.ts +6 -4
  181. package/src/funcs/evalsV2EvalsCreate.ts +1 -1
  182. package/src/funcs/evalsV2EvalsList.ts +1 -1
  183. package/src/funcs/evalsV2EvalsRetrieve.ts +1 -1
  184. package/src/funcs/evalsV2EvalsUpdate.ts +1 -1
  185. package/src/funcs/promptsV2PromptRunsList.ts +1 -1
  186. package/src/funcs/promptsV2PromptRunsRetrieve.ts +1 -1
  187. package/src/landing-page.ts +1 -1
  188. package/src/lib/config.ts +3 -3
  189. package/src/mcp-server/mcp-server.ts +1 -1
  190. package/src/mcp-server/server.ts +5 -9
  191. package/src/mcp-server/tools/evalsCancel.ts +43 -0
  192. package/src/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.ts → evalsGet.ts} +7 -7
  193. package/src/mcp-server/tools/evalsRun.ts +6 -4
  194. package/src/mcp-server/tools/evalsV2EvalsCreate.ts +1 -1
  195. package/src/mcp-server/tools/evalsV2EvalsList.ts +1 -1
  196. package/src/mcp-server/tools/evalsV2EvalsRetrieve.ts +1 -1
  197. package/src/mcp-server/tools/evalsV2EvalsUpdate.ts +1 -1
  198. package/src/mcp-server/tools/promptsV2PromptRunsList.ts +1 -1
  199. package/src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts +1 -1
  200. package/src/models/createv2evalconfigurationrequest.ts +8 -0
  201. package/src/models/createv2evalrequest.ts +67 -27
  202. package/src/models/createv2evalrunrequest.ts +80 -13
  203. package/src/models/publiccompetitorrow.ts +2 -2
  204. package/src/models/publiccriterionverdict.ts +48 -0
  205. package/src/models/publiccurrentvisibilityresponse.ts +2 -2
  206. package/src/models/publicevalrunenvironment.ts +47 -0
  207. package/src/models/publicevalrunprogress.ts +8 -2
  208. package/src/models/publicgraderresult.ts +44 -0
  209. package/src/models/publicpromptvisibilitymetrics.ts +2 -2
  210. package/src/models/publicvisibilitysnapshot.ts +2 -2
  211. package/src/models/searchgroundingmode.ts +26 -0
  212. package/src/models/updatev2evalconfigurationrequest.ts +9 -0
  213. package/src/models/updatev2evalrequest.ts +59 -28
  214. package/src/models/v2eval.ts +61 -26
  215. package/src/models/v2evalconfiguration.ts +8 -0
  216. package/src/models/v2evalresultsummary.ts +45 -4
  217. package/src/models/v2evalrun.ts +21 -7
  218. package/src/models/v2evalrunanalysis.ts +11 -3
  219. package/src/models/v2evalrundetail.ts +90 -0
  220. package/src/models/v2evalrunscancelop.ts +70 -0
  221. package/src/models/v2evalrunscreateop.ts +43 -5
  222. package/src/models/v2evalrunsretrieveop.ts +23 -3
  223. package/src/models/v2evalruntraceevent.ts +9 -5
  224. package/src/models/v2inlineclireference.ts +15 -0
  225. package/src/models/v2inlinemcpdefinition.ts +51 -0
  226. package/src/models/v2promptrundetail.ts +12 -1
  227. package/src/models/v2promptrunsummary.ts +3 -1
  228. package/src/models/v2publictask.ts +9 -7
  229. package/src/models/v2savedclireference.ts +13 -0
  230. package/src/models/v2savedmcpreference.ts +13 -0
  231. package/src/tool-names.ts +13 -21
  232. package/test/simulations.test.js +189 -0
  233. package/esm/funcs/evalResultsV2EvalResultsList.d.ts +0 -16
  234. package/esm/funcs/evalResultsV2EvalResultsList.d.ts.map +0 -1
  235. package/esm/funcs/evalResultsV2EvalResultsList.js +0 -87
  236. package/esm/funcs/evalResultsV2EvalResultsList.js.map +0 -1
  237. package/esm/funcs/evalResultsV2EvalResultsRetrieve.d.ts +0 -16
  238. package/esm/funcs/evalResultsV2EvalResultsRetrieve.d.ts.map +0 -1
  239. package/esm/funcs/evalResultsV2EvalResultsRetrieve.js +0 -88
  240. package/esm/funcs/evalResultsV2EvalResultsRetrieve.js.map +0 -1
  241. package/esm/funcs/evalRunsV2EvalRunsRetrieve.d.ts +0 -16
  242. package/esm/funcs/evalRunsV2EvalRunsRetrieve.d.ts.map +0 -1
  243. package/esm/funcs/evalRunsV2EvalRunsRetrieve.js.map +0 -1
  244. package/esm/funcs/evalsAnalysis.d.ts +0 -16
  245. package/esm/funcs/evalsAnalysis.d.ts.map +0 -1
  246. package/esm/funcs/evalsAnalysis.js.map +0 -1
  247. package/esm/mcp-server/tools/evalResultsV2EvalResultsList.d.ts +0 -7
  248. package/esm/mcp-server/tools/evalResultsV2EvalResultsList.d.ts.map +0 -1
  249. package/esm/mcp-server/tools/evalResultsV2EvalResultsList.js +0 -35
  250. package/esm/mcp-server/tools/evalResultsV2EvalResultsList.js.map +0 -1
  251. package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.d.ts +0 -7
  252. package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.d.ts.map +0 -1
  253. package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.js +0 -35
  254. package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.js.map +0 -1
  255. package/esm/mcp-server/tools/evalRunsV2EvalRunsRetrieve.d.ts.map +0 -1
  256. package/esm/mcp-server/tools/evalRunsV2EvalRunsRetrieve.js.map +0 -1
  257. package/esm/mcp-server/tools/evalsAnalysis.d.ts +0 -7
  258. package/esm/mcp-server/tools/evalsAnalysis.d.ts.map +0 -1
  259. package/esm/mcp-server/tools/evalsAnalysis.js +0 -35
  260. package/esm/mcp-server/tools/evalsAnalysis.js.map +0 -1
  261. package/esm/models/v2evaljudge.d.ts +0 -6
  262. package/esm/models/v2evaljudge.d.ts.map +0 -1
  263. package/esm/models/v2evaljudge.js +0 -9
  264. package/esm/models/v2evaljudge.js.map +0 -1
  265. package/esm/models/v2evalresult.d.ts +0 -21
  266. package/esm/models/v2evalresult.d.ts.map +0 -1
  267. package/esm/models/v2evalresult.js +0 -22
  268. package/esm/models/v2evalresult.js.map +0 -1
  269. package/esm/models/v2evalresultslistop.d.ts +0 -11
  270. package/esm/models/v2evalresultslistop.d.ts.map +0 -1
  271. package/esm/models/v2evalresultslistop.js +0 -16
  272. package/esm/models/v2evalresultslistop.js.map +0 -1
  273. package/esm/models/v2evalresultsresponse.d.ts +0 -9
  274. package/esm/models/v2evalresultsresponse.d.ts.map +0 -1
  275. package/esm/models/v2evalresultsresponse.js +0 -12
  276. package/esm/models/v2evalresultsresponse.js.map +0 -1
  277. package/esm/models/v2evalresultsretrieveop.d.ts +0 -10
  278. package/esm/models/v2evalresultsretrieveop.d.ts.map +0 -1
  279. package/esm/models/v2evalresultsretrieveop.js +0 -15
  280. package/esm/models/v2evalresultsretrieveop.js.map +0 -1
  281. package/esm/models/v2evalrunanalysisresponse.d.ts +0 -12
  282. package/esm/models/v2evalrunanalysisresponse.d.ts.map +0 -1
  283. package/esm/models/v2evalrunanalysisresponse.js +0 -15
  284. package/esm/models/v2evalrunanalysisresponse.js.map +0 -1
  285. package/esm/models/v2evalrunsanalysisop.d.ts +0 -17
  286. package/esm/models/v2evalrunsanalysisop.d.ts.map +0 -1
  287. package/esm/models/v2evalrunsanalysisop.js +0 -19
  288. package/esm/models/v2evalrunsanalysisop.js.map +0 -1
  289. package/src/funcs/evalResultsV2EvalResultsList.ts +0 -149
  290. package/src/funcs/evalResultsV2EvalResultsRetrieve.ts +0 -153
  291. package/src/mcp-server/tools/evalResultsV2EvalResultsList.ts +0 -43
  292. package/src/mcp-server/tools/evalResultsV2EvalResultsRetrieve.ts +0 -45
  293. package/src/mcp-server/tools/evalsAnalysis.ts +0 -43
  294. package/src/models/v2evaljudge.ts +0 -12
  295. package/src/models/v2evalresult.ts +0 -42
  296. package/src/models/v2evalresultslistop.ts +0 -39
  297. package/src/models/v2evalresultsresponse.ts +0 -23
  298. package/src/models/v2evalresultsretrieveop.ts +0 -28
  299. package/src/models/v2evalrunanalysisresponse.ts +0 -32
  300. package/src/models/v2evalrunsanalysisop.ts +0 -48
@@ -15,14 +15,16 @@ export const tool$evalsRun: ToolDefinition<typeof args> = {
15
15
  name: "evals-run",
16
16
  description: `Start an eval run
17
17
 
18
- Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value.
18
+ Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.
19
19
 
20
20
  Send one of these flat request forms:
21
21
 
22
- - **Saved eval:** provide \`eval_id\`, \`configuration_id\`, and \`agent_id\`.
23
- - **Direct create-and-run:** provide \`prompt\`, \`judges\`, and \`agent_id\`. You may also provide a repository, write-only environment variables, and public skill packages.
22
+ - **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
23
+ - **Direct create-and-run:** provide \`prompts\`, \`judges\`, and \`agent\`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.
24
24
 
25
- Do not combine saved-run and direct-run fields. No separate \`mode\` field is required.`,
25
+ The run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate \`mode\` field is required. If the organization lacks the estimated credits, the request fails with \`402\` before dispatching work.
26
+
27
+ A saved or inline environment containing an empty or placeholder credential is rejected with \`400\` before any evaluation is dispatched.`,
26
28
  annotations: {
27
29
  "title": "",
28
30
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$evalsV2EvalsCreate: ToolDefinition<typeof args> = {
15
15
  name: "evals-v2-evals-create",
16
16
  description: `Create Eval
17
17
 
18
- Creates an eval with a task prompt, subject, and plain-text success criterion in \`judge\`. The eval can then be run through eval runs.`,
18
+ Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -10,7 +10,7 @@ export const tool$evalsV2EvalsList: ToolDefinition = {
10
10
  name: "evals-v2-evals-list",
11
11
  description: `List Evals
12
12
 
13
- Returns all active evals including workflow, MCP, CLI, and skill evals owned by the organization.`,
13
+ Returns all active eval definitions owned by the organization.`,
14
14
  annotations: {
15
15
  "title": "",
16
16
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$evalsV2EvalsRetrieve: ToolDefinition<typeof args> = {
15
15
  name: "evals-v2-evals-retrieve",
16
16
  description: `Retrieve Eval
17
17
 
18
- Returns one eval and its judge configuration.`,
18
+ Returns one reusable eval simulation definition.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$evalsV2EvalsUpdate: ToolDefinition<typeof args> = {
15
15
  name: "evals-v2-evals-update",
16
16
  description: `Update Eval
17
17
 
18
- Updates an eval's task prompt, subject, plain-text \`judge\`, or name. Omitted fields remain unchanged.`,
18
+ Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, \`setup_commands\`, \`cleanup_commands\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$promptsV2PromptRunsList: ToolDefinition<typeof args> = {
15
15
  name: "prompts-v2-prompt-runs-list",
16
16
  description: `List Prompt Runs
17
17
 
18
- Returns stored prompt runs without exposing raw runtime or provider configuration. Filterable by prompt, platform, and date range.`,
18
+ Returns stored prompt runs with limit-and-offset pagination, without exposing raw runtime or provider configuration. Filter by prompt, platform, or date range.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$promptsV2PromptRunsRetrieve: ToolDefinition<typeof args> = {
15
15
  name: "prompts-v2-prompt-runs-retrieve",
16
16
  description: `Retrieve Prompt Run
17
17
 
18
- Returns one stored prompt run, including its mentions and citations.`,
18
+ Returns one stored prompt run, including mentions, citations, and any sanitized coding-agent trace captured for the run.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -4,6 +4,10 @@
4
4
  */
5
5
 
6
6
  import * as z from "zod";
7
+ import {
8
+ SearchGroundingMode,
9
+ SearchGroundingMode$zodSchema,
10
+ } from "./searchgroundingmode.js";
7
11
 
8
12
  export type CreateV2EvalConfigurationRequest = {
9
13
  name: string;
@@ -14,6 +18,7 @@ export type CreateV2EvalConfigurationRequest = {
14
18
  skill_ids?: Array<string> | undefined;
15
19
  skills?: Array<string> | undefined;
16
20
  include_docs?: boolean | undefined;
21
+ search_grounding?: SearchGroundingMode | undefined;
17
22
  };
18
23
 
19
24
  export const CreateV2EvalConfigurationRequest$zodSchema: z.ZodType<
@@ -25,6 +30,9 @@ export const CreateV2EvalConfigurationRequest$zodSchema: z.ZodType<
25
30
  mcp_server_ids: z.array(z.string()).optional(),
26
31
  name: z.string(),
27
32
  repository_id: z.string().optional(),
33
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe(
34
+ "Requested web-retrieval behavior for an eval run.",
35
+ ),
28
36
  skill_ids: z.array(z.string()).optional(),
29
37
  skills: z.array(z.string()).optional().describe(
30
38
  "Public skill packages saved with this configuration, using GitHub `owner/repository` references such as `resend/resend-skills`.",
@@ -4,42 +4,82 @@
4
4
  */
5
5
 
6
6
  import * as z from "zod";
7
- import { ClosedEnum } from "../types/enums.js";
7
+ import {
8
+ SearchGroundingMode,
9
+ SearchGroundingMode$zodSchema,
10
+ } from "./searchgroundingmode.js";
11
+ import {
12
+ V2InlineMcpDefinition,
13
+ V2InlineMcpDefinition$zodSchema,
14
+ } from "./v2inlinemcpdefinition.js";
15
+ import {
16
+ V2SavedMcpReference,
17
+ V2SavedMcpReference$zodSchema,
18
+ } from "./v2savedmcpreference.js";
8
19
 
9
- export const CreateV2EvalRequestType = {
10
- Workflow: "workflow",
11
- Mcp: "mcp",
12
- Cli: "cli",
13
- Skill: "skill",
14
- } as const;
15
- export type CreateV2EvalRequestType = ClosedEnum<
16
- typeof CreateV2EvalRequestType
17
- >;
20
+ export type CreateV2EvalRequestMcp =
21
+ | V2InlineMcpDefinition
22
+ | V2SavedMcpReference;
18
23
 
19
- export const CreateV2EvalRequestType$zodSchema = z.enum([
20
- "workflow",
21
- "mcp",
22
- "cli",
23
- "skill",
24
+ export const CreateV2EvalRequestMcp$zodSchema: z.ZodType<
25
+ CreateV2EvalRequestMcp
26
+ > = z.union([
27
+ V2InlineMcpDefinition$zodSchema,
28
+ V2SavedMcpReference$zodSchema,
24
29
  ]);
25
30
 
26
31
  export type CreateV2EvalRequest = {
27
32
  name: string;
28
- type: CreateV2EvalRequestType;
29
- prompt: string;
30
- judge: string;
31
- mcp_server_id?: string | undefined;
32
- cli_id?: string | undefined;
33
- skill_id?: string | undefined;
33
+ prompts: Array<string>;
34
+ judges: Array<string>;
35
+ agent?: Array<string> | undefined;
36
+ persona?: string | undefined;
37
+ clis?: Array<string> | undefined;
38
+ mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | undefined;
39
+ setup_commands?: Array<string> | undefined;
40
+ cleanup_commands?: Array<string> | undefined;
41
+ search_grounding?: SearchGroundingMode | undefined;
42
+ runs?: number | undefined;
43
+ tags?: Array<string> | undefined;
34
44
  };
35
45
 
36
46
  export const CreateV2EvalRequest$zodSchema: z.ZodType<CreateV2EvalRequest> = z
37
47
  .object({
38
- cli_id: z.string().optional(),
39
- judge: z.string().describe("Plain-text outcome that counts as success."),
40
- mcp_server_id: z.string().optional(),
48
+ agent: z.array(z.string()).optional().describe(
49
+ "Runnable agents from `GET /v2/agents`. An empty array saves the eval without default agents. CLI clients expose repeatable `--agent`.",
50
+ ),
51
+ cleanup_commands: z.array(z.string()).optional().describe(
52
+ "Best-effort shell commands run sequentially after agent execution and result capture, before sandbox deletion. CLI clients expose repeatable `--cleanup-command`.",
53
+ ),
54
+ clis: z.array(z.string()).optional().describe(
55
+ "Saved CLI IDs or shell installation commands. UUID values resolve saved CLIs from `GET /v2/clis`; every other value is run as an installation command. CLI clients expose repeatable `--cli`.",
56
+ ),
57
+ judges: z.array(z.string()).describe(
58
+ "Plain-text success criteria. CLI clients expose this as repeatable `--judge`.",
59
+ ),
60
+ mcps: z.array(z.union([
61
+ V2InlineMcpDefinition$zodSchema,
62
+ V2SavedMcpReference$zodSchema,
63
+ ])).optional().describe(
64
+ "Saved MCP references or inline portable MCP definitions.",
65
+ ),
41
66
  name: z.string(),
42
- prompt: z.string(),
43
- skill_id: z.string().optional(),
44
- type: CreateV2EvalRequestType$zodSchema,
67
+ persona: z.string().optional().describe(
68
+ "Optional perspective applied to the whole eval. It is stored as metadata and does not change prompts or multiply attempts.",
69
+ ),
70
+ prompts: z.array(z.string()).describe(
71
+ "Task prompts. CLI clients expose this as repeatable `--prompt`.",
72
+ ),
73
+ runs: z.int().default(1).describe(
74
+ "Independent attempts for every prompt-agent pair.",
75
+ ),
76
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe(
77
+ "Requested web-retrieval behavior for an eval run.",
78
+ ),
79
+ setup_commands: z.array(z.string()).optional().describe(
80
+ "Shell commands run sequentially in the prepared repository before the agent starts. CLI clients expose repeatable `--setup-command`.",
81
+ ),
82
+ tags: z.array(z.string()).optional().describe(
83
+ "Optional labels for organizing the eval. CLI clients may expose this string array as a repeatable `--tag` flag.",
84
+ ),
45
85
  });
@@ -4,48 +4,115 @@
4
4
  */
5
5
 
6
6
  import * as z from "zod";
7
+ import {
8
+ SearchGroundingMode,
9
+ SearchGroundingMode$zodSchema,
10
+ } from "./searchgroundingmode.js";
11
+ import {
12
+ V2InlineMcpDefinition,
13
+ V2InlineMcpDefinition$zodSchema,
14
+ } from "./v2inlinemcpdefinition.js";
15
+ import {
16
+ V2SavedMcpReference,
17
+ V2SavedMcpReference$zodSchema,
18
+ } from "./v2savedmcpreference.js";
19
+
20
+ export type CreateV2EvalRunRequestMcp =
21
+ | V2InlineMcpDefinition
22
+ | V2SavedMcpReference;
23
+
24
+ export const CreateV2EvalRunRequestMcp$zodSchema: z.ZodType<
25
+ CreateV2EvalRunRequestMcp
26
+ > = z.union([
27
+ V2InlineMcpDefinition$zodSchema,
28
+ V2SavedMcpReference$zodSchema,
29
+ ]);
7
30
 
8
31
  /**
9
- * Start an eval run using one of two flat request forms. Saved runs require `eval_id`, `configuration_id`, and `agent_id`. Direct create-and-run requests require `prompt`, at least one item in `judges`, and `agent_id`. Do not combine saved-run and direct-run fields; no separate mode field is required.
32
+ * Start an eval run using one of two flat request forms. Saved runs require `eval_id` and use saved simulation defaults unless the request replaces them. Direct create-and-run requests require `prompts`, `judges`, and `agent`. No separate mode field is required.
10
33
  */
11
34
  export type CreateV2EvalRunRequest = {
12
35
  eval_id?: string | undefined;
13
36
  configuration_id?: string | undefined;
14
- agent_id: string;
15
- prompt?: string | undefined;
16
- judges?: Array<string> | undefined;
37
+ name?: string | undefined;
38
+ prompts?: Array<string> | null | undefined;
39
+ judges?: Array<string> | null | undefined;
40
+ agent?: Array<string> | null | undefined;
41
+ persona?: string | undefined;
42
+ clis?: Array<string> | null | undefined;
43
+ mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | null | undefined;
44
+ setup_commands?: Array<string> | null | undefined;
45
+ cleanup_commands?: Array<string> | null | undefined;
46
+ runs?: number | undefined;
47
+ tags?: Array<string> | undefined;
17
48
  repository?: string | undefined;
18
49
  env?: { [k: string]: string } | undefined;
19
50
  skills?: Array<string> | undefined;
51
+ skill_ids?: Array<string> | undefined;
52
+ search_grounding?: SearchGroundingMode | null | undefined;
20
53
  };
21
54
 
22
55
  export const CreateV2EvalRunRequest$zodSchema: z.ZodType<
23
56
  CreateV2EvalRunRequest
24
57
  > = z.object({
25
- agent_id: z.string().describe(
26
- "Required in both request forms. Runnable agent ID from `GET /v2/agents`.",
58
+ agent: z.array(z.string()).nullable().optional().describe(
59
+ "Runnable agents from `GET /v2/agents`. Required unless the saved eval already has agents. CLI clients expose repeatable `--agent`.",
60
+ ),
61
+ cleanup_commands: z.array(z.string()).nullable().optional().describe(
62
+ "Best-effort shell commands run sequentially after agent execution and result capture, before sandbox deletion. In saved mode, an explicit empty array disables saved cleanup commands for this launch. CLI clients expose repeatable `--cleanup-command`.",
63
+ ),
64
+ clis: z.array(z.string()).nullable().optional().describe(
65
+ "Saved CLI IDs or shell installation commands. UUID values resolve saved CLIs from `GET /v2/clis`; every other value is run as an installation command. In saved mode, an explicit empty array disables saved CLIs for this launch. CLI clients expose repeatable `--cli`.",
27
66
  ),
28
67
  configuration_id: z.string().optional().describe(
29
- "Saved-run form only. Saved runtime configuration; required when `eval_id` is provided.",
68
+ "Saved-run form only. Optional saved repository, environment, skills, and legacy tool configuration.",
30
69
  ),
31
70
  env: z.record(z.string(), z.string()).optional().describe(
32
- "Direct create-and-run form only. Write-only environment variables; values are stored only in the queued job's private configuration.",
71
+ "Write-only environment variables for this launch. Values are stored only in the queued job's private configuration.",
33
72
  ),
34
73
  eval_id: z.string().optional().describe(
35
74
  "Saved-run form only. Existing eval definition to run. Omit this field to use the direct create-and-run form.",
36
75
  ),
37
- judges: z.array(z.string()).optional().describe(
38
- "Direct create-and-run form only. Provide at least one success criterion. CLI clients may expose this string array as a repeatable `--judge` flag.",
76
+ judges: z.array(z.string()).nullable().optional().describe(
77
+ "Success criteria. Required in direct mode; in saved mode, replaces saved judges for this launch. CLI clients expose repeatable `--judge`.",
78
+ ),
79
+ mcps: z.array(z.union([
80
+ V2InlineMcpDefinition$zodSchema,
81
+ V2SavedMcpReference$zodSchema,
82
+ ])).nullable().optional().describe(
83
+ "Saved MCP references or inline portable definitions. In saved mode, an explicit empty array disables saved MCPs for this launch.",
84
+ ),
85
+ name: z.string().optional().describe(
86
+ "Direct create-and-run form only. Display name for the durable eval. Defaults to the first prompt.",
39
87
  ),
40
- prompt: z.string().optional().describe(
41
- "Direct create-and-run form only. Task prompt; required when `eval_id` is omitted.",
88
+ persona: z.string().optional().describe(
89
+ "Optional perspective for every attempt in this launch. It does not modify prompts or add a fan-out dimension.",
90
+ ),
91
+ prompts: z.array(z.string()).nullable().optional().describe(
92
+ "Task prompts. Required in direct mode; in saved mode, replaces saved prompts for this launch. CLI clients expose repeatable `--prompt`.",
42
93
  ),
43
94
  repository: z.string().optional().describe(
44
95
  "Direct create-and-run form only. A saved repository ID, built-in alias such as `nextjs-starter`, or a public GitHub HTTPS URL.",
45
96
  ),
97
+ runs: z.int().optional().describe(
98
+ "Independent attempts for every prompt-agent pair. Defaults to the saved eval value or 1 for a direct run.",
99
+ ),
100
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional()
101
+ .describe(
102
+ "Web-retrieval policy for this launch. Overrides the selected configuration or saved eval when provided; direct runs default to `default`.",
103
+ ),
104
+ setup_commands: z.array(z.string()).nullable().optional().describe(
105
+ "Shell commands run sequentially in the prepared repository before the agent starts. In saved mode, an explicit empty array disables saved setup commands for this launch. CLI clients expose repeatable `--setup-command`.",
106
+ ),
107
+ skill_ids: z.array(z.string()).optional().describe(
108
+ "Direct create-and-run form only. Reusable skill IDs from `GET /v2/skills` to install before the agent starts.",
109
+ ),
46
110
  skills: z.array(z.string()).optional().describe(
47
111
  "Additional public skill packages to install before the agent starts in either request form, using GitHub `owner/repository` references such as `resend/resend-skills`. CLI clients may expose this string array as a repeatable `--skill` flag.",
48
112
  ),
113
+ tags: z.array(z.string()).optional().describe(
114
+ "Direct create-and-run form only. Optional labels saved on the created eval. CLI clients may expose this string array as a repeatable `--tag` flag.",
115
+ ),
49
116
  }).describe(
50
- "Start an eval run using one of two flat request forms. Saved runs require `eval_id`, `configuration_id`, and `agent_id`. Direct create-and-run requests require `prompt`, at least one item in `judges`, and `agent_id`. Do not combine saved-run and direct-run fields; no separate mode field is required.",
117
+ "Start an eval run using one of two flat request forms. Saved runs require `eval_id` and use saved simulation defaults unless the request replaces them. Direct create-and-run requests require `prompts`, `judges`, and `agent`. No separate mode field is required.",
51
118
  );
@@ -26,11 +26,11 @@ export const PublicCompetitorRow$zodSchema: z.ZodType<PublicCompetitorRow> = z
26
26
  ),
27
27
  company: PublicCompany$zodSchema,
28
28
  share_of_voice: z.number().nullable().optional().describe(
29
- "Share of all brand mentions across tracked companies, 0 to 1; rows sum to about 1.",
29
+ "Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded. A run can mention several companies, so rows do not sum to 1.",
30
30
  ),
31
31
  share_of_voice_rank: z.int().nullable().optional(),
32
32
  visibility_score: z.number().nullable().optional().describe(
33
- "The company's visibility score, from 0 to 1. Rows do not sum to 1.",
33
+ "Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. Rows do not sum to 1.",
34
34
  ),
35
35
  visibility_score_rank: z.int().nullable().optional(),
36
36
  });
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8574e6eb13db
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+
9
+ /**
10
+ * `PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.
11
+ */
12
+ export const Verdict = {
13
+ Pass: "PASS",
14
+ Fail: "FAIL",
15
+ NotVerified: "NOT_VERIFIED",
16
+ } as const;
17
+ /**
18
+ * `PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.
19
+ */
20
+ export type Verdict = ClosedEnum<typeof Verdict>;
21
+
22
+ export const Verdict$zodSchema = z.enum([
23
+ "PASS",
24
+ "FAIL",
25
+ "NOT_VERIFIED",
26
+ ]).describe(
27
+ "`PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.",
28
+ );
29
+
30
+ export type PublicCriterionVerdict = {
31
+ criterion: string;
32
+ verdict: Verdict;
33
+ evidence?: string | null | undefined;
34
+ };
35
+
36
+ export const PublicCriterionVerdict$zodSchema: z.ZodType<
37
+ PublicCriterionVerdict
38
+ > = z.object({
39
+ criterion: z.string().describe(
40
+ "One mandatory requirement from the judge criteria.",
41
+ ),
42
+ evidence: z.string().nullable().optional().describe(
43
+ "Short evidence the judge gave for the verdict.",
44
+ ),
45
+ verdict: Verdict$zodSchema.describe(
46
+ "`PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.",
47
+ ),
48
+ });
@@ -36,12 +36,12 @@ export const PublicCurrentVisibilityResponse$zodSchema: z.ZodType<
36
36
  end_date: z.string(),
37
37
  has_data: z.boolean(),
38
38
  share_of_voice: z.number().nullable().optional().describe(
39
- "Share of all brand mentions across tracked companies, 0 to 1.",
39
+ "Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.",
40
40
  ),
41
41
  share_of_voice_rank: z.int().nullable().optional(),
42
42
  start_date: z.string(),
43
43
  visibility_score: z.number().nullable().optional().describe(
44
- "The visibility score, from 0 to 1.",
44
+ "Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded.",
45
45
  ),
46
46
  visibility_score_rank: z.int().nullable().optional(),
47
47
  });
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 99dc6a5135ee
4
+ */
5
+
6
+ import * as z from "zod";
7
+
8
+ /**
9
+ * Non-secret summary of the environment an eval run was queued with.
10
+ */
11
+ export type PublicEvalRunEnvironment = {
12
+ id?: string | null | undefined;
13
+ name?: string | null | undefined;
14
+ updated_at?: string | null | undefined;
15
+ queued_at?: string | null | undefined;
16
+ variable_names?: Array<string> | undefined;
17
+ inline?: boolean | undefined;
18
+ changed_since_queued?: boolean | null | undefined;
19
+ };
20
+
21
+ export const PublicEvalRunEnvironment$zodSchema: z.ZodType<
22
+ PublicEvalRunEnvironment
23
+ > = z.object({
24
+ changed_since_queued: z.boolean().nullable().optional().describe(
25
+ "True when the saved environment has been edited or deleted since the run was queued, so a rerun would use different values. Null when unknown or for inline environments.",
26
+ ),
27
+ id: z.string().nullable().optional().describe(
28
+ "Environment ID, as listed by the environments operation.",
29
+ ),
30
+ inline: z.boolean().default(false).describe(
31
+ "True when variables were supplied inline with the run request instead of from a saved environment.",
32
+ ),
33
+ name: z.string().nullable().optional().describe(
34
+ "Environment name when the run was queued.",
35
+ ),
36
+ queued_at: z.string().nullable().optional().describe(
37
+ "When the run was queued with this environment.",
38
+ ),
39
+ updated_at: z.string().nullable().optional().describe(
40
+ "Environment version the run used: when its name or variables last changed before the run was queued. Null if the environment had not changed since versioning was introduced.",
41
+ ),
42
+ variable_names: z.array(z.string()).optional().describe(
43
+ "Variable names supplied to the run. Values are never returned.",
44
+ ),
45
+ }).describe(
46
+ "Non-secret summary of the environment an eval run was queued with.",
47
+ );
@@ -12,6 +12,7 @@ export type PublicEvalRunProgress = {
12
12
  completed?: number | undefined;
13
13
  failed?: number | undefined;
14
14
  cancelled?: number | undefined;
15
+ retrying?: number | undefined;
15
16
  interrupted?: number | undefined;
16
17
  percent?: number | undefined;
17
18
  };
@@ -21,11 +22,16 @@ export const PublicEvalRunProgress$zodSchema: z.ZodType<PublicEvalRunProgress> =
21
22
  cancelled: z.int().default(0),
22
23
  completed: z.int().default(0),
23
24
  failed: z.int().default(0),
24
- interrupted: z.int().default(0),
25
+ interrupted: z.int().default(0).describe(
26
+ "Deprecated compatibility alias for `retrying`; use `retrying`.",
27
+ ),
25
28
  percent: z.number().default(0).describe(
26
- "The percentage of child jobs in a terminal state. It can reach `100` while the parent job is still summarizing, so use `status` to detect completion.",
29
+ "The percentage of child jobs in a final state (`completed`, `failed`, or `cancelled`). It can reach `100` while the parent job is still summarizing, so use `status` to detect completion.",
27
30
  ),
28
31
  queued: z.int().default(0),
32
+ retrying: z.int().default(0).describe(
33
+ "Recoverable child jobs waiting to be retried. These remain active and are excluded from `percent`.",
34
+ ),
29
35
  running: z.int().default(0),
30
36
  total: z.int().default(0),
31
37
  });
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 73852ac8b2ad
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ PublicCriterionVerdict,
9
+ PublicCriterionVerdict$zodSchema,
10
+ } from "./publiccriterionverdict.js";
11
+
12
+ export type PublicGraderResult = {
13
+ name: string;
14
+ label?: string | null | undefined;
15
+ passed?: boolean | null | undefined;
16
+ score?: number | null | undefined;
17
+ deductions?: Array<string> | undefined;
18
+ details?: string | null | undefined;
19
+ criteria_verdicts?: Array<PublicCriterionVerdict> | undefined;
20
+ };
21
+
22
+ export const PublicGraderResult$zodSchema: z.ZodType<PublicGraderResult> = z
23
+ .object({
24
+ criteria_verdicts: z.array(PublicCriterionVerdict$zodSchema).optional()
25
+ .describe(
26
+ "Judges only: a verdict for each mandatory requirement in the judge criteria. Empty for other checks and for runs graded before per-requirement verdicts were recorded.",
27
+ ),
28
+ deductions: z.array(z.string()).optional().describe(
29
+ "Specific shortcomings the check recorded, even when it passed. A judge can pass with a score below 1 and still list deductions here; those checks do not appear in `failure_reasons`.",
30
+ ),
31
+ details: z.string().nullable().optional().describe(
32
+ "Reasoning or check output explaining the verdict.",
33
+ ),
34
+ label: z.string().nullable().optional().describe(
35
+ "Display name for the check, when the grader sets one.",
36
+ ),
37
+ name: z.string().describe("Grader name as configured on the eval."),
38
+ passed: z.boolean().nullable().optional().describe(
39
+ "Whether this check passed.",
40
+ ),
41
+ score: z.number().nullable().optional().describe(
42
+ "Score from 0 to 1 for checks that score partially, such as judges; null for pass/fail checks.",
43
+ ),
44
+ });
@@ -25,10 +25,10 @@ export const PublicPromptVisibilityMetrics$zodSchema: z.ZodType<
25
25
  "One per prompt, platform, and run date.",
26
26
  ),
27
27
  share_of_voice: z.number().nullable().optional().describe(
28
- "Share of all brand mentions across tracked companies, 0 to 1.",
28
+ "Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.",
29
29
  ),
30
30
  visibility_score: z.number().nullable().optional().describe(
31
- "The visibility score, from 0 to 1.",
31
+ "Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded.",
32
32
  ),
33
33
  visibility_score_rank: z.int().nullable().optional(),
34
34
  });
@@ -23,14 +23,14 @@ export const PublicVisibilitySnapshot$zodSchema: z.ZodType<
23
23
  ),
24
24
  average_position_rank: z.int().nullable().optional(),
25
25
  share_of_voice: z.number().nullable().optional().describe(
26
- "Share of all brand mentions across tracked companies, 0 to 1.",
26
+ "Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.",
27
27
  ),
28
28
  share_of_voice_rank: z.int().nullable().optional(),
29
29
  total_citations: z.int().default(0).describe(
30
30
  "Owned-domain citations across all platforms; 0, not `null`, with no prompt runs.",
31
31
  ),
32
32
  visibility_score: z.number().nullable().optional().describe(
33
- "The visibility score, from 0 to 1.",
33
+ "Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded.",
34
34
  ),
35
35
  visibility_score_rank: z.int().nullable().optional(),
36
36
  });
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d6aefbc6ebf6
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+
9
+ /**
10
+ * Requested web-retrieval behavior for an eval run.
11
+ */
12
+ export const SearchGroundingMode = {
13
+ Disabled: "disabled",
14
+ Enabled: "enabled",
15
+ Default: "default",
16
+ } as const;
17
+ /**
18
+ * Requested web-retrieval behavior for an eval run.
19
+ */
20
+ export type SearchGroundingMode = ClosedEnum<typeof SearchGroundingMode>;
21
+
22
+ export const SearchGroundingMode$zodSchema = z.enum([
23
+ "disabled",
24
+ "enabled",
25
+ "default",
26
+ ]).describe("Requested web-retrieval behavior for an eval run.");
@@ -4,6 +4,10 @@
4
4
  */
5
5
 
6
6
  import * as z from "zod";
7
+ import {
8
+ SearchGroundingMode,
9
+ SearchGroundingMode$zodSchema,
10
+ } from "./searchgroundingmode.js";
7
11
 
8
12
  export type UpdateV2EvalConfigurationRequest = {
9
13
  name?: string | undefined;
@@ -14,6 +18,7 @@ export type UpdateV2EvalConfigurationRequest = {
14
18
  skill_ids?: Array<string> | null | undefined;
15
19
  skills?: Array<string> | null | undefined;
16
20
  include_docs?: boolean | undefined;
21
+ search_grounding?: SearchGroundingMode | null | undefined;
17
22
  };
18
23
 
19
24
  export const UpdateV2EvalConfigurationRequest$zodSchema: z.ZodType<
@@ -25,6 +30,10 @@ export const UpdateV2EvalConfigurationRequest$zodSchema: z.ZodType<
25
30
  mcp_server_ids: z.array(z.string()).nullable().optional(),
26
31
  name: z.string().optional(),
27
32
  repository_id: z.string().optional(),
33
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional()
34
+ .describe(
35
+ "Replacement web-retrieval policy. Omit it to keep the saved value.",
36
+ ),
28
37
  skill_ids: z.array(z.string()).nullable().optional(),
29
38
  skills: z.array(z.string()).nullable().optional().describe(
30
39
  "Public skill packages saved with this configuration, using GitHub `owner/repository` references.",