jev-recipes 0.2.0 → 0.3.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 (400) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/README.md +62 -89
  3. package/dist/catalog/generated/details/action-scope.json +43 -0
  4. package/dist/catalog/generated/details/answer-consistency.json +46 -0
  5. package/dist/catalog/generated/details/answer-coverage.json +66 -0
  6. package/dist/catalog/generated/details/answer-invalidation.json +43 -0
  7. package/dist/catalog/generated/details/answer-relevance.json +45 -0
  8. package/dist/catalog/generated/details/answerability.json +55 -0
  9. package/dist/catalog/generated/details/argument-fit.json +41 -0
  10. package/dist/catalog/generated/details/attempted-step.json +39 -0
  11. package/dist/catalog/generated/details/audience-fit.json +45 -0
  12. package/dist/catalog/generated/details/cache-match.json +41 -0
  13. package/dist/catalog/generated/details/cancellation-check.json +40 -0
  14. package/dist/catalog/generated/details/certainty-match.json +45 -0
  15. package/dist/catalog/generated/details/change-meaning.json +43 -0
  16. package/dist/catalog/generated/details/citation-match.json +64 -0
  17. package/dist/catalog/generated/details/citation-needed.json +39 -0
  18. package/dist/catalog/generated/details/clarify.json +64 -0
  19. package/dist/catalog/generated/details/confirmation-match.json +40 -0
  20. package/dist/catalog/generated/details/context-role.json +45 -0
  21. package/dist/catalog/generated/details/correction-target.json +68 -0
  22. package/dist/catalog/generated/details/document-role.json +68 -0
  23. package/dist/catalog/generated/details/draft-compare.json +44 -0
  24. package/dist/catalog/generated/details/evidence-conflict.json +46 -0
  25. package/dist/catalog/generated/details/evidence-novelty.json +55 -0
  26. package/dist/catalog/generated/details/fact-stability.json +39 -0
  27. package/dist/catalog/generated/details/failure-kind.json +68 -0
  28. package/dist/catalog/generated/details/feedback-kind.json +69 -0
  29. package/dist/catalog/generated/details/field-select.json +68 -0
  30. package/dist/catalog/generated/details/followup-link.json +68 -0
  31. package/dist/catalog/generated/details/freshness-needed.json +38 -0
  32. package/dist/catalog/generated/details/frustration-signal.json +39 -0
  33. package/dist/catalog/generated/details/handoff.json +75 -0
  34. package/dist/catalog/generated/details/incident-match.json +68 -0
  35. package/dist/catalog/generated/details/instruction-fit.json +40 -0
  36. package/dist/catalog/generated/details/intent-change.json +43 -0
  37. package/dist/catalog/generated/details/issue-impact.json +42 -0
  38. package/dist/catalog/generated/details/memory-relation.json +46 -0
  39. package/dist/catalog/generated/details/memory-scope.json +42 -0
  40. package/dist/catalog/generated/details/memory-value.json +46 -0
  41. package/dist/catalog/generated/details/passage-duplicate.json +42 -0
  42. package/dist/catalog/generated/details/preference-kind.json +45 -0
  43. package/dist/catalog/generated/details/promise-check.json +42 -0
  44. package/dist/catalog/generated/details/query-equivalence.json +43 -0
  45. package/dist/catalog/generated/details/query-specificity.json +39 -0
  46. package/dist/catalog/generated/details/reference-resolve.json +69 -0
  47. package/dist/catalog/generated/details/repeated-attempt.json +43 -0
  48. package/dist/catalog/generated/details/reply-template-match.json +68 -0
  49. package/dist/catalog/generated/details/rerank.json +55 -0
  50. package/dist/catalog/generated/details/resolution-check.json +40 -0
  51. package/dist/catalog/generated/details/response-needed.json +42 -0
  52. package/dist/catalog/generated/details/result-outcome.json +42 -0
  53. package/dist/catalog/generated/details/result-usefulness.json +45 -0
  54. package/dist/catalog/generated/details/retrieval-needed.json +39 -0
  55. package/dist/catalog/generated/details/route.json +51 -0
  56. package/dist/catalog/generated/details/source-applicability.json +39 -0
  57. package/dist/catalog/generated/details/step-complete.json +39 -0
  58. package/dist/catalog/generated/details/step-progress.json +43 -0
  59. package/dist/catalog/generated/details/summary-coverage.json +66 -0
  60. package/dist/catalog/generated/details/ticket-match.json +43 -0
  61. package/dist/catalog/generated/details/tone-check.json +63 -0
  62. package/dist/catalog/generated/details/tool-fit.json +40 -0
  63. package/dist/catalog/generated/details/topic-shift.json +43 -0
  64. package/dist/catalog/generated/details/troubleshooting-fit.json +40 -0
  65. package/dist/catalog/generated/details/turn-intent.json +69 -0
  66. package/dist/catalog/generated/details/urgency-signal.json +39 -0
  67. package/dist/catalog/generated/details/verify.json +66 -0
  68. package/dist/catalog/generated/details/workaround-fit.json +40 -0
  69. package/dist/catalog/generated/loaders.d.ts +3 -0
  70. package/dist/catalog/generated/loaders.js +68 -0
  71. package/dist/catalog/generated/metadata.d.ts +2 -0
  72. package/dist/catalog/generated/metadata.js +1115 -0
  73. package/dist/catalog/generated/names.d.ts +1 -0
  74. package/dist/catalog/generated/names.js +69 -0
  75. package/dist/catalog/index.d.ts +9 -1764
  76. package/dist/catalog/index.js +8 -24
  77. package/dist/catalog/runner.d.ts +4 -0
  78. package/dist/catalog/runner.js +5 -0
  79. package/dist/catalog/schema.d.ts +51 -50
  80. package/dist/catalog/schema.js +2 -2
  81. package/dist/catalog/search.d.ts +3 -0
  82. package/dist/catalog/search.js +60 -0
  83. package/dist/cli/index.js +17 -8
  84. package/dist/cli/schema.d.ts +151 -167
  85. package/dist/cli/schema.js +37 -4
  86. package/dist/recipes/action-scope/schema.d.ts +3 -3
  87. package/dist/recipes/answer-consistency/schema.d.ts +3 -3
  88. package/dist/recipes/answer-coverage/schema.d.ts +6 -6
  89. package/dist/recipes/answerability/schema.d.ts +6 -6
  90. package/dist/recipes/cancellation-check/schema.d.ts +3 -3
  91. package/dist/recipes/certainty-match/schema.d.ts +3 -3
  92. package/dist/recipes/citation-needed/schema.d.ts +3 -3
  93. package/dist/recipes/clarify/schema.d.ts +3 -3
  94. package/dist/recipes/document-role/schema.d.ts +6 -6
  95. package/dist/recipes/evidence-conflict/schema.d.ts +3 -3
  96. package/dist/recipes/feedback-kind/schema.d.ts +3 -3
  97. package/dist/recipes/freshness-needed/schema.d.ts +3 -3
  98. package/dist/recipes/handoff/schema.d.ts +3 -3
  99. package/dist/recipes/passage-duplicate/schema.d.ts +3 -3
  100. package/dist/recipes/preference-kind/schema.d.ts +3 -3
  101. package/dist/recipes/promise-check/schema.d.ts +3 -3
  102. package/dist/recipes/query-equivalence/schema.d.ts +3 -3
  103. package/dist/recipes/result-outcome/schema.d.ts +3 -3
  104. package/dist/recipes/retrieval-needed/schema.d.ts +3 -3
  105. package/dist/recipes/step-progress/schema.d.ts +3 -3
  106. package/dist/recipes/summary-coverage/schema.d.ts +3 -3
  107. package/dist/recipes/ticket-match/schema.d.ts +3 -3
  108. package/dist/recipes/turn-intent/schema.d.ts +12 -12
  109. package/dist/src/index.d.ts +117 -117
  110. package/dist/src/index.js +51 -50
  111. package/dist/src/schema.d.ts +5 -0
  112. package/dist/src/schema.js +2 -0
  113. package/package.json +200 -191
  114. package/dist/catalog/groups/answers.d.ts +0 -565
  115. package/dist/catalog/groups/answers.js +0 -82
  116. package/dist/catalog/groups/conversation.d.ts +0 -608
  117. package/dist/catalog/groups/conversation.js +0 -90
  118. package/dist/catalog/groups/knowledge.d.ts +0 -522
  119. package/dist/catalog/groups/knowledge.js +0 -82
  120. package/dist/catalog/groups/retrieval.d.ts +0 -664
  121. package/dist/catalog/groups/retrieval.js +0 -106
  122. package/dist/catalog/groups/support.d.ts +0 -522
  123. package/dist/catalog/groups/support.js +0 -82
  124. package/dist/catalog/groups/workflow.d.ts +0 -623
  125. package/dist/catalog/groups/workflow.js +0 -98
  126. package/dist/catalog/recipes.d.ts +0 -3488
  127. package/dist/catalog/recipes.js +0 -14
  128. package/dist/examples/support/index.d.ts +0 -1
  129. package/dist/examples/support/index.js +0 -37
  130. package/dist/examples/support/schema.d.ts +0 -566
  131. package/dist/examples/support/schema.js +0 -76
  132. package/dist/examples/support/workflow.d.ts +0 -3
  133. package/dist/examples/support/workflow.js +0 -85
  134. package/dist/recipes/action-scope/metadata.d.ts +0 -8
  135. package/dist/recipes/action-scope/metadata.js +0 -10
  136. package/dist/recipes/answer-consistency/metadata.d.ts +0 -8
  137. package/dist/recipes/answer-consistency/metadata.js +0 -10
  138. package/dist/recipes/answer-coverage/metadata.d.ts +0 -8
  139. package/dist/recipes/answer-coverage/metadata.js +0 -11
  140. package/dist/recipes/answer-invalidation/metadata.d.ts +0 -8
  141. package/dist/recipes/answer-invalidation/metadata.js +0 -10
  142. package/dist/recipes/answer-relevance/metadata.d.ts +0 -8
  143. package/dist/recipes/answer-relevance/metadata.js +0 -10
  144. package/dist/recipes/answerability/metadata.d.ts +0 -8
  145. package/dist/recipes/answerability/metadata.js +0 -11
  146. package/dist/recipes/argument-fit/metadata.d.ts +0 -8
  147. package/dist/recipes/argument-fit/metadata.js +0 -10
  148. package/dist/recipes/attempted-step/metadata.d.ts +0 -8
  149. package/dist/recipes/attempted-step/metadata.js +0 -10
  150. package/dist/recipes/audience-fit/metadata.d.ts +0 -8
  151. package/dist/recipes/audience-fit/metadata.js +0 -10
  152. package/dist/recipes/cache-match/metadata.d.ts +0 -8
  153. package/dist/recipes/cache-match/metadata.js +0 -10
  154. package/dist/recipes/cancellation-check/metadata.d.ts +0 -8
  155. package/dist/recipes/cancellation-check/metadata.js +0 -10
  156. package/dist/recipes/certainty-match/metadata.d.ts +0 -8
  157. package/dist/recipes/certainty-match/metadata.js +0 -10
  158. package/dist/recipes/change-meaning/metadata.d.ts +0 -8
  159. package/dist/recipes/change-meaning/metadata.js +0 -10
  160. package/dist/recipes/citation-match/metadata.d.ts +0 -9
  161. package/dist/recipes/citation-match/metadata.js +0 -12
  162. package/dist/recipes/citation-needed/metadata.d.ts +0 -8
  163. package/dist/recipes/citation-needed/metadata.js +0 -10
  164. package/dist/recipes/clarify/metadata.d.ts +0 -8
  165. package/dist/recipes/clarify/metadata.js +0 -11
  166. package/dist/recipes/confirmation-match/metadata.d.ts +0 -8
  167. package/dist/recipes/confirmation-match/metadata.js +0 -10
  168. package/dist/recipes/context-role/metadata.d.ts +0 -8
  169. package/dist/recipes/context-role/metadata.js +0 -10
  170. package/dist/recipes/correction-target/metadata.d.ts +0 -8
  171. package/dist/recipes/correction-target/metadata.js +0 -11
  172. package/dist/recipes/document-role/metadata.d.ts +0 -8
  173. package/dist/recipes/document-role/metadata.js +0 -10
  174. package/dist/recipes/draft-compare/metadata.d.ts +0 -8
  175. package/dist/recipes/draft-compare/metadata.js +0 -10
  176. package/dist/recipes/evidence-conflict/metadata.d.ts +0 -8
  177. package/dist/recipes/evidence-conflict/metadata.js +0 -10
  178. package/dist/recipes/evidence-novelty/metadata.d.ts +0 -8
  179. package/dist/recipes/evidence-novelty/metadata.js +0 -11
  180. package/dist/recipes/fact-stability/metadata.d.ts +0 -8
  181. package/dist/recipes/fact-stability/metadata.js +0 -10
  182. package/dist/recipes/failure-kind/metadata.d.ts +0 -8
  183. package/dist/recipes/failure-kind/metadata.js +0 -11
  184. package/dist/recipes/feedback-kind/metadata.d.ts +0 -8
  185. package/dist/recipes/feedback-kind/metadata.js +0 -10
  186. package/dist/recipes/field-select/metadata.d.ts +0 -8
  187. package/dist/recipes/field-select/metadata.js +0 -11
  188. package/dist/recipes/followup-link/metadata.d.ts +0 -8
  189. package/dist/recipes/followup-link/metadata.js +0 -11
  190. package/dist/recipes/freshness-needed/metadata.d.ts +0 -8
  191. package/dist/recipes/freshness-needed/metadata.js +0 -10
  192. package/dist/recipes/frustration-signal/metadata.d.ts +0 -8
  193. package/dist/recipes/frustration-signal/metadata.js +0 -10
  194. package/dist/recipes/handoff/metadata.d.ts +0 -8
  195. package/dist/recipes/handoff/metadata.js +0 -11
  196. package/dist/recipes/incident-match/metadata.d.ts +0 -8
  197. package/dist/recipes/incident-match/metadata.js +0 -11
  198. package/dist/recipes/instruction-fit/metadata.d.ts +0 -8
  199. package/dist/recipes/instruction-fit/metadata.js +0 -10
  200. package/dist/recipes/intent-change/metadata.d.ts +0 -8
  201. package/dist/recipes/intent-change/metadata.js +0 -10
  202. package/dist/recipes/issue-impact/metadata.d.ts +0 -8
  203. package/dist/recipes/issue-impact/metadata.js +0 -10
  204. package/dist/recipes/memory-relation/metadata.d.ts +0 -8
  205. package/dist/recipes/memory-relation/metadata.js +0 -10
  206. package/dist/recipes/memory-scope/metadata.d.ts +0 -8
  207. package/dist/recipes/memory-scope/metadata.js +0 -10
  208. package/dist/recipes/memory-value/metadata.d.ts +0 -8
  209. package/dist/recipes/memory-value/metadata.js +0 -10
  210. package/dist/recipes/passage-duplicate/metadata.d.ts +0 -8
  211. package/dist/recipes/passage-duplicate/metadata.js +0 -10
  212. package/dist/recipes/preference-kind/metadata.d.ts +0 -8
  213. package/dist/recipes/preference-kind/metadata.js +0 -10
  214. package/dist/recipes/promise-check/metadata.d.ts +0 -8
  215. package/dist/recipes/promise-check/metadata.js +0 -10
  216. package/dist/recipes/query-equivalence/metadata.d.ts +0 -8
  217. package/dist/recipes/query-equivalence/metadata.js +0 -10
  218. package/dist/recipes/query-specificity/metadata.d.ts +0 -8
  219. package/dist/recipes/query-specificity/metadata.js +0 -10
  220. package/dist/recipes/reference-resolve/metadata.d.ts +0 -8
  221. package/dist/recipes/reference-resolve/metadata.js +0 -11
  222. package/dist/recipes/repeated-attempt/metadata.d.ts +0 -8
  223. package/dist/recipes/repeated-attempt/metadata.js +0 -10
  224. package/dist/recipes/reply-template-match/metadata.d.ts +0 -8
  225. package/dist/recipes/reply-template-match/metadata.js +0 -11
  226. package/dist/recipes/rerank/metadata.d.ts +0 -8
  227. package/dist/recipes/rerank/metadata.js +0 -11
  228. package/dist/recipes/resolution-check/metadata.d.ts +0 -8
  229. package/dist/recipes/resolution-check/metadata.js +0 -10
  230. package/dist/recipes/response-needed/metadata.d.ts +0 -8
  231. package/dist/recipes/response-needed/metadata.js +0 -10
  232. package/dist/recipes/result-outcome/metadata.d.ts +0 -8
  233. package/dist/recipes/result-outcome/metadata.js +0 -10
  234. package/dist/recipes/result-usefulness/metadata.d.ts +0 -8
  235. package/dist/recipes/result-usefulness/metadata.js +0 -10
  236. package/dist/recipes/retrieval-needed/metadata.d.ts +0 -8
  237. package/dist/recipes/retrieval-needed/metadata.js +0 -10
  238. package/dist/recipes/route/metadata.d.ts +0 -8
  239. package/dist/recipes/route/metadata.js +0 -11
  240. package/dist/recipes/source-applicability/metadata.d.ts +0 -8
  241. package/dist/recipes/source-applicability/metadata.js +0 -10
  242. package/dist/recipes/step-complete/metadata.d.ts +0 -8
  243. package/dist/recipes/step-complete/metadata.js +0 -10
  244. package/dist/recipes/step-progress/metadata.d.ts +0 -8
  245. package/dist/recipes/step-progress/metadata.js +0 -10
  246. package/dist/recipes/summary-coverage/metadata.d.ts +0 -8
  247. package/dist/recipes/summary-coverage/metadata.js +0 -11
  248. package/dist/recipes/ticket-match/metadata.d.ts +0 -8
  249. package/dist/recipes/ticket-match/metadata.js +0 -10
  250. package/dist/recipes/tone-check/metadata.d.ts +0 -8
  251. package/dist/recipes/tone-check/metadata.js +0 -11
  252. package/dist/recipes/tool-fit/metadata.d.ts +0 -8
  253. package/dist/recipes/tool-fit/metadata.js +0 -10
  254. package/dist/recipes/topic-shift/metadata.d.ts +0 -8
  255. package/dist/recipes/topic-shift/metadata.js +0 -10
  256. package/dist/recipes/troubleshooting-fit/metadata.d.ts +0 -8
  257. package/dist/recipes/troubleshooting-fit/metadata.js +0 -10
  258. package/dist/recipes/turn-intent/metadata.d.ts +0 -8
  259. package/dist/recipes/turn-intent/metadata.js +0 -10
  260. package/dist/recipes/urgency-signal/metadata.d.ts +0 -8
  261. package/dist/recipes/urgency-signal/metadata.js +0 -10
  262. package/dist/recipes/verify/metadata.d.ts +0 -8
  263. package/dist/recipes/verify/metadata.js +0 -11
  264. package/dist/recipes/workaround-fit/metadata.d.ts +0 -8
  265. package/dist/recipes/workaround-fit/metadata.js +0 -10
  266. package/examples/support/README.md +0 -60
  267. package/examples/support/demo.json +0 -156
  268. package/recipes/README.md +0 -128
  269. package/recipes/action-scope/README.md +0 -49
  270. package/recipes/answer-consistency/README.md +0 -50
  271. package/recipes/answer-coverage/README.md +0 -60
  272. package/recipes/answer-invalidation/README.md +0 -50
  273. package/recipes/answer-relevance/README.md +0 -49
  274. package/recipes/answerability/README.md +0 -54
  275. package/recipes/argument-fit/README.md +0 -51
  276. package/recipes/attempted-step/README.md +0 -48
  277. package/recipes/audience-fit/README.md +0 -50
  278. package/recipes/cache-match/README.md +0 -51
  279. package/recipes/cancellation-check/README.md +0 -50
  280. package/recipes/certainty-match/README.md +0 -49
  281. package/recipes/change-meaning/README.md +0 -49
  282. package/recipes/citation-match/README.md +0 -51
  283. package/recipes/citation-needed/README.md +0 -49
  284. package/recipes/clarify/README.md +0 -61
  285. package/recipes/confirmation-match/README.md +0 -49
  286. package/recipes/context-role/README.md +0 -49
  287. package/recipes/correction-target/README.md +0 -52
  288. package/recipes/document-role/README.md +0 -51
  289. package/recipes/draft-compare/README.md +0 -54
  290. package/recipes/evidence-conflict/README.md +0 -51
  291. package/recipes/evidence-novelty/README.md +0 -56
  292. package/recipes/fact-stability/README.md +0 -47
  293. package/recipes/failure-kind/README.md +0 -52
  294. package/recipes/feedback-kind/README.md +0 -51
  295. package/recipes/field-select/README.md +0 -53
  296. package/recipes/followup-link/README.md +0 -52
  297. package/recipes/freshness-needed/README.md +0 -46
  298. package/recipes/frustration-signal/README.md +0 -47
  299. package/recipes/handoff/README.md +0 -56
  300. package/recipes/incident-match/README.md +0 -52
  301. package/recipes/instruction-fit/README.md +0 -49
  302. package/recipes/intent-change/README.md +0 -50
  303. package/recipes/issue-impact/README.md +0 -48
  304. package/recipes/memory-relation/README.md +0 -52
  305. package/recipes/memory-scope/README.md +0 -50
  306. package/recipes/memory-value/README.md +0 -50
  307. package/recipes/passage-duplicate/README.md +0 -49
  308. package/recipes/preference-kind/README.md +0 -48
  309. package/recipes/promise-check/README.md +0 -48
  310. package/recipes/query-equivalence/README.md +0 -50
  311. package/recipes/query-specificity/README.md +0 -47
  312. package/recipes/reference-resolve/README.md +0 -54
  313. package/recipes/repeated-attempt/README.md +0 -50
  314. package/recipes/reply-template-match/README.md +0 -52
  315. package/recipes/rerank/README.md +0 -55
  316. package/recipes/resolution-check/README.md +0 -49
  317. package/recipes/response-needed/README.md +0 -48
  318. package/recipes/result-outcome/README.md +0 -49
  319. package/recipes/result-usefulness/README.md +0 -49
  320. package/recipes/retrieval-needed/README.md +0 -48
  321. package/recipes/route/README.md +0 -47
  322. package/recipes/source-applicability/README.md +0 -48
  323. package/recipes/step-complete/README.md +0 -48
  324. package/recipes/step-progress/README.md +0 -51
  325. package/recipes/summary-coverage/README.md +0 -60
  326. package/recipes/ticket-match/README.md +0 -50
  327. package/recipes/tone-check/README.md +0 -55
  328. package/recipes/tool-fit/README.md +0 -49
  329. package/recipes/topic-shift/README.md +0 -50
  330. package/recipes/troubleshooting-fit/README.md +0 -49
  331. package/recipes/turn-intent/README.md +0 -52
  332. package/recipes/urgency-signal/README.md +0 -47
  333. package/recipes/verify/README.md +0 -54
  334. package/recipes/workaround-fit/README.md +0 -50
  335. /package/{recipes → dist/recipes}/action-scope/demo.json +0 -0
  336. /package/{recipes → dist/recipes}/answer-consistency/demo.json +0 -0
  337. /package/{recipes → dist/recipes}/answer-coverage/demo.json +0 -0
  338. /package/{recipes → dist/recipes}/answer-invalidation/demo.json +0 -0
  339. /package/{recipes → dist/recipes}/answer-relevance/demo.json +0 -0
  340. /package/{recipes → dist/recipes}/answerability/demo.json +0 -0
  341. /package/{recipes → dist/recipes}/argument-fit/demo.json +0 -0
  342. /package/{recipes → dist/recipes}/attempted-step/demo.json +0 -0
  343. /package/{recipes → dist/recipes}/audience-fit/demo.json +0 -0
  344. /package/{recipes → dist/recipes}/cache-match/demo.json +0 -0
  345. /package/{recipes → dist/recipes}/cancellation-check/demo.json +0 -0
  346. /package/{recipes → dist/recipes}/certainty-match/demo.json +0 -0
  347. /package/{recipes → dist/recipes}/change-meaning/demo.json +0 -0
  348. /package/{recipes → dist/recipes}/citation-match/demo.json +0 -0
  349. /package/{recipes → dist/recipes}/citation-needed/demo.json +0 -0
  350. /package/{recipes → dist/recipes}/clarify/demo.json +0 -0
  351. /package/{recipes → dist/recipes}/confirmation-match/demo.json +0 -0
  352. /package/{recipes → dist/recipes}/context-role/demo.json +0 -0
  353. /package/{recipes → dist/recipes}/correction-target/demo.json +0 -0
  354. /package/{recipes → dist/recipes}/document-role/demo.json +0 -0
  355. /package/{recipes → dist/recipes}/draft-compare/demo.json +0 -0
  356. /package/{recipes → dist/recipes}/evidence-conflict/demo.json +0 -0
  357. /package/{recipes → dist/recipes}/evidence-novelty/demo.json +0 -0
  358. /package/{recipes → dist/recipes}/fact-stability/demo.json +0 -0
  359. /package/{recipes → dist/recipes}/failure-kind/demo.json +0 -0
  360. /package/{recipes → dist/recipes}/feedback-kind/demo.json +0 -0
  361. /package/{recipes → dist/recipes}/field-select/demo.json +0 -0
  362. /package/{recipes → dist/recipes}/followup-link/demo.json +0 -0
  363. /package/{recipes → dist/recipes}/freshness-needed/demo.json +0 -0
  364. /package/{recipes → dist/recipes}/frustration-signal/demo.json +0 -0
  365. /package/{recipes → dist/recipes}/handoff/demo.json +0 -0
  366. /package/{recipes → dist/recipes}/incident-match/demo.json +0 -0
  367. /package/{recipes → dist/recipes}/instruction-fit/demo.json +0 -0
  368. /package/{recipes → dist/recipes}/intent-change/demo.json +0 -0
  369. /package/{recipes → dist/recipes}/issue-impact/demo.json +0 -0
  370. /package/{recipes → dist/recipes}/memory-relation/demo.json +0 -0
  371. /package/{recipes → dist/recipes}/memory-scope/demo.json +0 -0
  372. /package/{recipes → dist/recipes}/memory-value/demo.json +0 -0
  373. /package/{recipes → dist/recipes}/passage-duplicate/demo.json +0 -0
  374. /package/{recipes → dist/recipes}/preference-kind/demo.json +0 -0
  375. /package/{recipes → dist/recipes}/promise-check/demo.json +0 -0
  376. /package/{recipes → dist/recipes}/query-equivalence/demo.json +0 -0
  377. /package/{recipes → dist/recipes}/query-specificity/demo.json +0 -0
  378. /package/{recipes → dist/recipes}/reference-resolve/demo.json +0 -0
  379. /package/{recipes → dist/recipes}/repeated-attempt/demo.json +0 -0
  380. /package/{recipes → dist/recipes}/reply-template-match/demo.json +0 -0
  381. /package/{recipes → dist/recipes}/rerank/demo.json +0 -0
  382. /package/{recipes → dist/recipes}/resolution-check/demo.json +0 -0
  383. /package/{recipes → dist/recipes}/response-needed/demo.json +0 -0
  384. /package/{recipes → dist/recipes}/result-outcome/demo.json +0 -0
  385. /package/{recipes → dist/recipes}/result-usefulness/demo.json +0 -0
  386. /package/{recipes → dist/recipes}/retrieval-needed/demo.json +0 -0
  387. /package/{recipes → dist/recipes}/route/demo.json +0 -0
  388. /package/{recipes → dist/recipes}/source-applicability/demo.json +0 -0
  389. /package/{recipes → dist/recipes}/step-complete/demo.json +0 -0
  390. /package/{recipes → dist/recipes}/step-progress/demo.json +0 -0
  391. /package/{recipes → dist/recipes}/summary-coverage/demo.json +0 -0
  392. /package/{recipes → dist/recipes}/ticket-match/demo.json +0 -0
  393. /package/{recipes → dist/recipes}/tone-check/demo.json +0 -0
  394. /package/{recipes → dist/recipes}/tool-fit/demo.json +0 -0
  395. /package/{recipes → dist/recipes}/topic-shift/demo.json +0 -0
  396. /package/{recipes → dist/recipes}/troubleshooting-fit/demo.json +0 -0
  397. /package/{recipes → dist/recipes}/turn-intent/demo.json +0 -0
  398. /package/{recipes → dist/recipes}/urgency-signal/demo.json +0 -0
  399. /package/{recipes → dist/recipes}/verify/demo.json +0 -0
  400. /package/{recipes → dist/recipes}/workaround-fit/demo.json +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Generate exports, catalog data, schema descriptions, and documentation from recipe folders; add authoring checks and a recipe scaffold.
6
+ - Add usage guidance and related recipes to the catalog, ranked search, optional search limits, and lazy recipe loading.
7
+ - Add Make commands and offline tooling checks, including a 1,000-entry capacity exercise and installation of the actual npm archive.
8
+ - Move published offline demo assets under `dist/recipes/` so npm does not automatically include source recipe guides.
9
+ - Keep recipe tests under `tests/recipe/`; enforce an npm content allowlist and exclude development files and source guides.
10
+ - Remove the standalone support example and its build, CI, and publishing references.
11
+
5
12
  - Document installed-package imports and CLI commands first; move repository setup into the contributor guide and rename the local CLI script to `jev-recipes`.
6
13
 
7
14
  - Add recipe tests under `tests/recipe/`, mocked Jev responses, recipe coverage reports and thresholds, and test checks in CI.
@@ -15,7 +22,7 @@
15
22
 
16
23
  - Add independent `answerability`, `clarify`, and `handoff` recipes with Zod schemas, inferred types, documentation, and offline fixtures.
17
24
  - Add recipe-owned metadata, a searchable catalog, and CLI `describe` with JSON schemas and example input.
18
- - Add `demo all` and a support-assistant example that composes six recipes, accepts an application draft callback, and verifies claims against selected evidence.
25
+ - Add `demo all` for offline recipe illustrations.
19
26
  - Extend package exports and release checks without adding dependencies.
20
27
 
21
28
  ## 0.0.1
package/README.md CHANGED
@@ -2,137 +2,110 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/jev-recipes?logo=npm)](https://www.npmjs.com/package/jev-recipes)
4
4
 
5
- 66 small TypeScript recipes for AI applications. Choose a handler, select useful evidence, check an answer, or decide when to ask for help.
5
+ <!-- BEGIN GENERATED: summary -->
6
6
 
7
- Use `jev-recipes` through TypeScript imports or its included command-line tool. [Jev](https://docs.typesafe.ai/introduction/coding-agents) powers the live decisions. Your application supplies the context and acts on the result.
7
+ 66 small TypeScript recipes for decisions inside an AI application. Route a request, select useful evidence, or check a claim with a function call.
8
8
 
9
- ## Install
9
+ [Browse all 66 recipes](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md).
10
10
 
11
- Requires Node.js 22.9 or newer.
11
+ <!-- END GENERATED: summary -->
12
12
 
13
- ```sh
14
- npm install jev-recipes
15
- ```
13
+ [Jev](https://docs.typesafe.ai/introduction) makes the underlying decisions. This package supplies focused instructions, validated inputs and results, and clear review outcomes. Your application decides what to do next.
16
14
 
17
15
  ## Use a recipe
18
16
 
19
- Set `TYPESAFE_API_KEY` in your server's environment, then call a recipe:
20
-
21
- ```ts
22
- import { rerank } from 'jev-recipes/rerank';
23
-
24
- const result = await rerank({
25
- query: 'How do I reset my password?',
26
- items: [
27
- { id: 'billing', text: 'Invoices appear on the Billing page.' },
28
- { id: 'reset', text: 'Select Forgot password to receive a reset link.' },
29
- ],
30
- topK: 1,
31
- });
17
+ Requires Node.js 22.9 or newer. Install in your application:
32
18
 
33
- if (result.status === 'ready') {
34
- console.log(result.items);
35
- }
19
+ ```sh
20
+ npm install jev-recipes
36
21
  ```
37
22
 
38
- You can also import recipes from `jev-recipes`. Every recipe accepts an optional second argument with `client`, `model`, and `signal`. Use `createClient` to configure the official TypeSafe SDK's timeouts and retries.
39
-
40
- Live calls send the supplied input to TypeSafe and use API quota. Keep your API key on the server.
41
-
42
- ## Recipes
43
-
44
- [Browse all 66 recipes](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md). Each handles a focused decision and has its own schemas, example, and usage guide.
45
-
46
- | Group | Recipes | Examples |
47
- | ---------------------------------------------------------------------------------------------------------------------------- | ------- | ------------------------------------------------------- |
48
- | [Answer quality](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md#answer-quality) | 10 | `answer-coverage`, `answer-relevance`, `citation-match` |
49
- | [Retrieval and evidence](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md#retrieval-and-evidence) | 13 | `rerank`, `verify`, `answerability` |
50
- | [Conversation](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md#conversation) | 11 | `clarify`, `turn-intent`, `followup-link` |
51
- | [Tools and tasks](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md#tools-and-tasks) | 12 | `route`, `handoff`, `tool-fit` |
52
- | [Customer support](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md#customer-support) | 10 | `issue-impact`, `attempted-step`, `workaround-fit` |
53
- | [Memory](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md#memory) | 5 | `memory-value`, `memory-scope`, `memory-relation` |
54
- | [Knowledge maintenance](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md#knowledge-maintenance) | 5 | `document-role`, `audience-fit`, `change-meaning` |
55
-
56
- ## Try a demo
57
-
58
- After installing the package, run its CLI from your app's directory:
23
+ Set your API key in your server environment:
59
24
 
60
25
  ```sh
61
- npx jev-recipes demo rerank
26
+ export TYPESAFE_API_KEY='your-api-key'
62
27
  ```
63
28
 
64
- Replace `rerank` with another recipe name, or use `all` to try every installed recipe. Demos use saved responses and need no API key. They show how recipes handle decisions; they do not measure model accuracy.
29
+ Choose a recipe, import it, and call it:
65
30
 
66
- ## Find a recipe
31
+ <!-- BEGIN GENERATED: quickstart -->
67
32
 
68
- Use the CLI to browse the installed recipes without an API key:
69
-
70
- ```sh
71
- npx jev-recipes list
72
- npx jev-recipes list evidence --category retrieval
73
- npx jev-recipes describe answer-coverage
33
+ ```ts
34
+ import { route } from 'jev-recipes/route';
35
+
36
+ const result = await route({
37
+ request: 'I was charged twice for my subscription. Can someone check the invoice?',
38
+ routes: {
39
+ billing: 'Payments, invoices, subscriptions, and refunds',
40
+ technical: 'Errors, outages, and broken integrations',
41
+ },
42
+ });
43
+ console.log(result.status, result.route);
74
44
  ```
75
45
 
76
- `list` searches names, descriptions, categories, and tags. `describe` returns the recipe's limits, JSON input and result schemas, and example input.
46
+ <!-- END GENERATED: quickstart -->
77
47
 
78
- The same catalog is available in TypeScript:
48
+ For `route`, a `ready` result contains the chosen route. A `review` result has a null route: ask for clarification or involve a person. Invalid input, malformed responses, and provider failures throw errors.
79
49
 
80
- ```ts
81
- import { listRecipes, describeRecipe } from 'jev-recipes/catalog';
82
-
83
- const recipes = listRecipes({ category: 'retrieval' });
84
- const specification = describeRecipe('answer-coverage');
85
- ```
50
+ Live calls send the supplied input to TypeSafe and use API quota. Keep the key on the server. No Makefile or build step is needed to use the installed package.
86
51
 
87
- The library returns metadata and schemas. The command-line description also includes example input. Zod validates runtime inputs, including rules such as unique IDs that JSON Schema does not fully express.
52
+ ## Find the right recipe
88
53
 
89
- ## Run your own input
54
+ | I want to… | Start with |
55
+ | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
56
+ | Send a request to the right handler | [`route`](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/route/README.md) |
57
+ | Select relevant passages | [`rerank`](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/rerank/README.md) |
58
+ | Check whether I have enough evidence to answer | [`answerability`](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/answerability/README.md) |
59
+ | Check claims against evidence | [`verify`](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/verify/README.md) |
60
+ | Check whether a draft answers each question | [`answer-coverage`](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/answer-coverage/README.md) |
90
61
 
91
- Save an example input from the installed package:
62
+ Search the catalog and inspect a recipe without an API key:
92
63
 
93
64
  ```sh
94
- npx jev-recipes example rerank > input.json
65
+ npx jev-recipes list "enough evidence" --limit 5
66
+ npx jev-recipes describe answerability
67
+ npx jev-recipes demo answerability
95
68
  ```
96
69
 
97
- Edit `input.json`, then set your API key in the terminal and run the recipe:
70
+ `list` ranks matching recipes and supports `--category`. `describe` shows when to use a recipe, related alternatives, input and result schemas, and example input. `demo` runs a saved illustration without calling a model. CLI output is JSON, so it also works in scripts and agent tools.
71
+
72
+ ## Run your own input from the terminal
98
73
 
99
74
  ```sh
100
- export TYPESAFE_API_KEY='your-api-key'
101
- npx jev-recipes run rerank input.json
75
+ npx jev-recipes example route > input.json
102
76
  ```
103
77
 
104
- The CLI reads the key from its environment; it does not load `.env` files automatically. Live runs send your input to TypeSafe and use API quota. Commands return JSON. Use `-` instead of a filename to read from stdin.
78
+ Edit the file, then run it with your key set:
105
79
 
106
- ## Read the result before acting
80
+ ```sh
81
+ npx jev-recipes run route input.json
82
+ ```
107
83
 
108
- - `ready` means a decision passed its threshold. Check the recipe's outcome too: a ready assessment can still find missing information or an unsupported claim.
109
- - Inspect `verdict`, `selection`, or the recipe's aggregate result such as `allAnswered` or `canProceed`. Each guide explains its output.
110
- - `review` is a valid outcome. Invalid inputs, malformed model responses, and provider errors throw; the command-line runner reports them on stderr and exits with code 1.
111
- - Confidence does not guarantee correctness. Choose thresholds for your use case.
112
- - Recipes assess the evidence and rules you supply. They return decisions; your application handles actions and permissions.
84
+ The installed CLI reads its environment; it does not load `.env` automatically. Errors go to stderr with exit code 1. A review outcome is a completed evaluation, so inspect the result before acting.
113
85
 
114
- ## Contribute
86
+ ## Understand the result
115
87
 
116
- See [CONTRIBUTING.md](https://github.com/agencyenterprise/jev-recipes/blob/main/CONTRIBUTING.md) for repository setup, tests, and adding recipes. See [CHANGELOG.md](https://github.com/agencyenterprise/jev-recipes/blob/main/CHANGELOG.md) for changes and [RELEASING.md](https://github.com/agencyenterprise/jev-recipes/blob/main/RELEASING.md) for publishing.
88
+ - Read the recipe's outcome as well as its confidence or review status. A confident assessment can identify an unsupported claim or missing information.
89
+ - Batch recipes preserve individual checks. `verify` includes `allSupported` and per-claim statuses rather than one overall status.
90
+ - Results include model and token usage. Confidence is not a guarantee of correctness.
91
+ - Pass `{ client, model, signal }` as a second argument when you need to configure a call.
117
92
 
118
- ## Cool projects
93
+ Use direct imports such as `jev-recipes/route` to load a recipe and its dependencies. Root imports remain supported. Installation still downloads one package; direct imports do not selectively download files.
119
94
 
120
- Keep the recipes small and connect them in your application. These ideas show how a few decisions can support a larger project:
95
+ Your application owns retrieval, generation, storage, and actions. Each recipe returns a decision. See [shared behavior and limits](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md#shared-options-and-behavior).
121
96
 
122
- | Project idea | Recipes to combine | Your application supplies |
123
- | -------------------------------------------------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------- |
124
- | An assistant that answers every part of a question | `rerank`, `answerability`, `citation-match`, `answer-coverage` | Document retrieval, a draft generator, and the question parts to check |
125
- | Support that remembers attempted fixes | `attempted-step`, `troubleshooting-fit`, `workaround-fit`, `handoff` | Conversation history, approved procedures, and escalation rules |
126
- | An agent that notices repeated attempts | `result-usefulness`, `step-progress`, `repeated-attempt` | Tool execution, attempt history, retry limits, and stop rules |
127
- | A knowledge base that catches outdated answers | `change-meaning`, `answer-invalidation`, `cache-match` | Source change tracking, saved answers, and access and freshness checks |
128
- | Memory that respects the task's scope | `preference-kind`, `memory-value`, `memory-scope`, `memory-relation` | Candidate facts, storage consent, and retention rules |
97
+ ## Contribute
129
98
 
130
- The [support assistant example](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/support/README.md) shows how to combine recipes with your own draft generator. It stops when review or better information is needed:
99
+ The recipe folder owns its code, schemas, metadata, demo, and guide. Tests stay under `tests/recipe/` and are not published. Exports and the catalog are generated from the recipe folders.
131
100
 
132
- ```text
133
- handoff → clarify → route → rerank → answerability → draft an answer → verify
101
+ ```sh
102
+ make setup
103
+ make docs
104
+ make ci
134
105
  ```
135
106
 
107
+ Run `make help` for all commands. [Contributing](https://github.com/agencyenterprise/jev-recipes/blob/main/CONTRIBUTING.md) explains authoring and generation; [releasing](https://github.com/agencyenterprise/jev-recipes/blob/main/RELEASING.md) explains package checks and publishing.
108
+
136
109
  ## License
137
110
 
138
111
  [MIT](https://github.com/agencyenterprise/jev-recipes/blob/main/LICENSE). Independent community project. Jev and TypeSafe are products of TypeSafe AI.
@@ -0,0 +1,43 @@
1
+ {
2
+ "inputSchema": {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "request": { "type": "string" },
7
+ "proposedAction": { "type": "string" },
8
+ "constraints": { "type": "string" },
9
+ "minConfidence": { "type": "number", "minimum": 0, "maximum": 1 }
10
+ },
11
+ "required": ["request", "proposedAction"]
12
+ },
13
+ "resultSchema": {
14
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
15
+ "type": "object",
16
+ "properties": {
17
+ "model": { "type": "string" },
18
+ "usage": {
19
+ "type": "object",
20
+ "properties": {
21
+ "input_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
22
+ "output_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
23
+ },
24
+ "required": ["input_tokens", "output_tokens"],
25
+ "additionalProperties": false
26
+ },
27
+ "status": { "type": "string", "enum": ["ready", "review"] },
28
+ "verdict": { "type": "string", "enum": ["within_scope", "additional_work", "unclear"] },
29
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
30
+ "probabilities": {
31
+ "type": "object",
32
+ "propertyNames": {
33
+ "type": "string",
34
+ "enum": ["within_scope", "additional_work", "unclear"]
35
+ },
36
+ "additionalProperties": { "type": "number", "minimum": 0, "maximum": 1 },
37
+ "required": ["within_scope", "additional_work", "unclear"]
38
+ }
39
+ },
40
+ "required": ["model", "usage", "status", "verdict", "confidence", "probabilities"],
41
+ "additionalProperties": false
42
+ }
43
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "inputSchema": {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "firstStatement": { "type": "string" },
7
+ "secondStatement": { "type": "string" },
8
+ "context": { "type": "string" },
9
+ "minConfidence": { "type": "number", "minimum": 0, "maximum": 1 }
10
+ },
11
+ "required": ["firstStatement", "secondStatement"]
12
+ },
13
+ "resultSchema": {
14
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
15
+ "type": "object",
16
+ "properties": {
17
+ "model": { "type": "string" },
18
+ "usage": {
19
+ "type": "object",
20
+ "properties": {
21
+ "input_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
22
+ "output_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
23
+ },
24
+ "required": ["input_tokens", "output_tokens"],
25
+ "additionalProperties": false
26
+ },
27
+ "status": { "type": "string", "enum": ["ready", "review"] },
28
+ "verdict": {
29
+ "type": "string",
30
+ "enum": ["consistent", "conflicting", "unrelated", "unclear"]
31
+ },
32
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
33
+ "probabilities": {
34
+ "type": "object",
35
+ "propertyNames": {
36
+ "type": "string",
37
+ "enum": ["consistent", "conflicting", "unrelated", "unclear"]
38
+ },
39
+ "additionalProperties": { "type": "number", "minimum": 0, "maximum": 1 },
40
+ "required": ["consistent", "conflicting", "unrelated", "unclear"]
41
+ }
42
+ },
43
+ "required": ["model", "usage", "status", "verdict", "confidence", "probabilities"],
44
+ "additionalProperties": false
45
+ }
46
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "inputSchema": {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "draft": { "type": "string" },
7
+ "questions": {
8
+ "minItems": 1,
9
+ "maxItems": 50,
10
+ "type": "array",
11
+ "items": {
12
+ "type": "object",
13
+ "properties": { "id": { "type": "string" }, "text": { "type": "string" } },
14
+ "required": ["id", "text"]
15
+ }
16
+ },
17
+ "minConfidence": { "type": "number", "minimum": 0, "maximum": 1 }
18
+ },
19
+ "required": ["draft", "questions"]
20
+ },
21
+ "resultSchema": {
22
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
23
+ "type": "object",
24
+ "properties": {
25
+ "model": { "type": "string" },
26
+ "usage": {
27
+ "type": "object",
28
+ "properties": {
29
+ "input_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
30
+ "output_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
31
+ },
32
+ "required": ["input_tokens", "output_tokens"],
33
+ "additionalProperties": false
34
+ },
35
+ "status": { "type": "string", "enum": ["ready", "review"] },
36
+ "allAnswered": { "type": "boolean" },
37
+ "checks": {
38
+ "minItems": 1,
39
+ "maxItems": 50,
40
+ "type": "array",
41
+ "items": {
42
+ "type": "object",
43
+ "properties": {
44
+ "id": { "type": "string" },
45
+ "status": { "type": "string", "enum": ["ready", "review"] },
46
+ "verdict": { "type": "string", "enum": ["answered", "partial", "missing", "unclear"] },
47
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
48
+ "probabilities": {
49
+ "type": "object",
50
+ "propertyNames": {
51
+ "type": "string",
52
+ "enum": ["answered", "partial", "missing", "unclear"]
53
+ },
54
+ "additionalProperties": { "type": "number", "minimum": 0, "maximum": 1 },
55
+ "required": ["answered", "partial", "missing", "unclear"]
56
+ }
57
+ },
58
+ "required": ["id", "status", "verdict", "confidence", "probabilities"],
59
+ "additionalProperties": false
60
+ }
61
+ }
62
+ },
63
+ "required": ["model", "usage", "status", "allAnswered", "checks"],
64
+ "additionalProperties": false
65
+ }
66
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "inputSchema": {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "claim": { "type": "string" },
7
+ "previousEvidence": { "type": "string" },
8
+ "updatedEvidence": { "type": "string" },
9
+ "minConfidence": { "type": "number", "minimum": 0, "maximum": 1 }
10
+ },
11
+ "required": ["claim", "previousEvidence", "updatedEvidence"]
12
+ },
13
+ "resultSchema": {
14
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
15
+ "type": "object",
16
+ "properties": {
17
+ "model": { "type": "string" },
18
+ "usage": {
19
+ "type": "object",
20
+ "properties": {
21
+ "input_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
22
+ "output_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
23
+ },
24
+ "required": ["input_tokens", "output_tokens"],
25
+ "additionalProperties": false
26
+ },
27
+ "status": { "type": "string", "enum": ["ready", "review"] },
28
+ "verdict": { "type": "string", "enum": ["still_supported", "invalidated", "unclear"] },
29
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
30
+ "probabilities": {
31
+ "type": "object",
32
+ "propertyNames": {
33
+ "type": "string",
34
+ "enum": ["still_supported", "invalidated", "unclear"]
35
+ },
36
+ "additionalProperties": { "type": "number", "minimum": 0, "maximum": 1 },
37
+ "required": ["still_supported", "invalidated", "unclear"]
38
+ }
39
+ },
40
+ "required": ["model", "usage", "status", "verdict", "confidence", "probabilities"],
41
+ "additionalProperties": false
42
+ }
43
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "inputSchema": {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "request": { "type": "string" },
7
+ "draft": { "type": "string" },
8
+ "minConfidence": { "type": "number", "minimum": 0, "maximum": 1 }
9
+ },
10
+ "required": ["request", "draft"]
11
+ },
12
+ "resultSchema": {
13
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
14
+ "type": "object",
15
+ "properties": {
16
+ "model": { "type": "string" },
17
+ "usage": {
18
+ "type": "object",
19
+ "properties": {
20
+ "input_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
21
+ "output_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
22
+ },
23
+ "required": ["input_tokens", "output_tokens"],
24
+ "additionalProperties": false
25
+ },
26
+ "status": { "type": "string", "enum": ["ready", "review"] },
27
+ "verdict": {
28
+ "type": "string",
29
+ "enum": ["relevant", "partly_relevant", "off_topic", "unclear"]
30
+ },
31
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
32
+ "probabilities": {
33
+ "type": "object",
34
+ "propertyNames": {
35
+ "type": "string",
36
+ "enum": ["relevant", "partly_relevant", "off_topic", "unclear"]
37
+ },
38
+ "additionalProperties": { "type": "number", "minimum": 0, "maximum": 1 },
39
+ "required": ["relevant", "partly_relevant", "off_topic", "unclear"]
40
+ }
41
+ },
42
+ "required": ["model", "usage", "status", "verdict", "confidence", "probabilities"],
43
+ "additionalProperties": false
44
+ }
45
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "inputSchema": {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "question": { "type": "string" },
7
+ "evidence": {
8
+ "minItems": 1,
9
+ "maxItems": 50,
10
+ "type": "array",
11
+ "items": {
12
+ "type": "object",
13
+ "properties": { "id": { "type": "string" }, "text": { "type": "string" } },
14
+ "required": ["id", "text"]
15
+ }
16
+ },
17
+ "minConfidence": { "type": "number", "minimum": 0, "maximum": 1 }
18
+ },
19
+ "required": ["question", "evidence"]
20
+ },
21
+ "resultSchema": {
22
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
23
+ "type": "object",
24
+ "properties": {
25
+ "model": { "type": "string" },
26
+ "usage": {
27
+ "type": "object",
28
+ "properties": {
29
+ "input_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
30
+ "output_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
31
+ },
32
+ "required": ["input_tokens", "output_tokens"],
33
+ "additionalProperties": false
34
+ },
35
+ "status": { "type": "string", "enum": ["ready", "review"] },
36
+ "verdict": {
37
+ "type": "string",
38
+ "enum": ["sufficient", "partial", "insufficient", "conflicting"]
39
+ },
40
+ "canAnswer": { "type": "boolean" },
41
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
42
+ "probabilities": {
43
+ "type": "object",
44
+ "propertyNames": {
45
+ "type": "string",
46
+ "enum": ["sufficient", "partial", "insufficient", "conflicting"]
47
+ },
48
+ "additionalProperties": { "type": "number", "minimum": 0, "maximum": 1 },
49
+ "required": ["sufficient", "partial", "insufficient", "conflicting"]
50
+ }
51
+ },
52
+ "required": ["model", "usage", "status", "verdict", "canAnswer", "confidence", "probabilities"],
53
+ "additionalProperties": false
54
+ }
55
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "inputSchema": {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "request": { "type": "string" },
7
+ "argument": { "type": "string" },
8
+ "proposedValue": { "type": "string" },
9
+ "context": { "type": "string" },
10
+ "minConfidence": { "type": "number", "minimum": 0, "maximum": 1 }
11
+ },
12
+ "required": ["request", "argument", "proposedValue"]
13
+ },
14
+ "resultSchema": {
15
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
16
+ "type": "object",
17
+ "properties": {
18
+ "model": { "type": "string" },
19
+ "usage": {
20
+ "type": "object",
21
+ "properties": {
22
+ "input_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
23
+ "output_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
24
+ },
25
+ "required": ["input_tokens", "output_tokens"],
26
+ "additionalProperties": false
27
+ },
28
+ "status": { "type": "string", "enum": ["ready", "review"] },
29
+ "verdict": { "type": "string", "enum": ["fits", "conflicts", "unclear"] },
30
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
31
+ "probabilities": {
32
+ "type": "object",
33
+ "propertyNames": { "type": "string", "enum": ["fits", "conflicts", "unclear"] },
34
+ "additionalProperties": { "type": "number", "minimum": 0, "maximum": 1 },
35
+ "required": ["fits", "conflicts", "unclear"]
36
+ }
37
+ },
38
+ "required": ["model", "usage", "status", "verdict", "confidence", "probabilities"],
39
+ "additionalProperties": false
40
+ }
41
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "inputSchema": {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "step": { "type": "string" },
7
+ "conversation": { "type": "string" },
8
+ "minConfidence": { "type": "number", "minimum": 0, "maximum": 1 }
9
+ },
10
+ "required": ["step", "conversation"]
11
+ },
12
+ "resultSchema": {
13
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
14
+ "type": "object",
15
+ "properties": {
16
+ "model": { "type": "string" },
17
+ "usage": {
18
+ "type": "object",
19
+ "properties": {
20
+ "input_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
21
+ "output_tokens": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
22
+ },
23
+ "required": ["input_tokens", "output_tokens"],
24
+ "additionalProperties": false
25
+ },
26
+ "status": { "type": "string", "enum": ["ready", "review"] },
27
+ "verdict": { "type": "string", "enum": ["tried", "not_tried", "unclear"] },
28
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
29
+ "probabilities": {
30
+ "type": "object",
31
+ "propertyNames": { "type": "string", "enum": ["tried", "not_tried", "unclear"] },
32
+ "additionalProperties": { "type": "number", "minimum": 0, "maximum": 1 },
33
+ "required": ["tried", "not_tried", "unclear"]
34
+ }
35
+ },
36
+ "required": ["model", "usage", "status", "verdict", "confidence", "probabilities"],
37
+ "additionalProperties": false
38
+ }
39
+ }