jev-recipes 0.0.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +52 -63
- package/dist/catalog/groups/answers.d.ts +565 -0
- package/dist/catalog/groups/answers.js +82 -0
- package/dist/catalog/groups/conversation.d.ts +608 -0
- package/dist/catalog/groups/conversation.js +90 -0
- package/dist/catalog/groups/knowledge.d.ts +522 -0
- package/dist/catalog/groups/knowledge.js +82 -0
- package/dist/catalog/groups/retrieval.d.ts +664 -0
- package/dist/catalog/groups/retrieval.js +106 -0
- package/dist/catalog/groups/support.d.ts +522 -0
- package/dist/catalog/groups/support.js +82 -0
- package/dist/catalog/groups/workflow.d.ts +623 -0
- package/dist/catalog/groups/workflow.js +98 -0
- package/dist/catalog/index.d.ts +1564 -5
- package/dist/catalog/recipes.d.ts +3239 -102
- package/dist/catalog/recipes.js +12 -48
- package/dist/catalog/schema.d.ts +65 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/schema.d.ts +191 -3
- package/dist/examples/support/schema.d.ts +7 -7
- package/dist/recipes/action-scope/index.d.ts +5 -0
- package/dist/recipes/action-scope/index.js +15 -0
- package/dist/recipes/action-scope/metadata.d.ts +8 -0
- package/dist/recipes/action-scope/metadata.js +10 -0
- package/dist/recipes/action-scope/schema.d.ts +37 -0
- package/dist/recipes/action-scope/schema.js +15 -0
- package/dist/recipes/answer-consistency/index.d.ts +5 -0
- package/dist/recipes/answer-consistency/index.js +16 -0
- package/dist/recipes/answer-consistency/metadata.d.ts +8 -0
- package/dist/recipes/answer-consistency/metadata.js +10 -0
- package/dist/recipes/answer-consistency/schema.d.ts +40 -0
- package/dist/recipes/answer-consistency/schema.js +20 -0
- package/dist/recipes/answer-coverage/index.d.ts +5 -0
- package/dist/recipes/answer-coverage/index.js +22 -0
- package/dist/recipes/answer-coverage/metadata.d.ts +8 -0
- package/dist/recipes/answer-coverage/metadata.js +11 -0
- package/dist/recipes/answer-coverage/schema.d.ts +50 -0
- package/dist/recipes/answer-coverage/schema.js +22 -0
- package/dist/recipes/answer-invalidation/index.d.ts +5 -0
- package/dist/recipes/answer-invalidation/index.js +15 -0
- package/dist/recipes/answer-invalidation/metadata.d.ts +8 -0
- package/dist/recipes/answer-invalidation/metadata.js +10 -0
- package/dist/recipes/answer-invalidation/schema.d.ts +37 -0
- package/dist/recipes/answer-invalidation/schema.js +19 -0
- package/dist/recipes/answer-relevance/index.d.ts +5 -0
- package/dist/recipes/answer-relevance/index.js +16 -0
- package/dist/recipes/answer-relevance/metadata.d.ts +8 -0
- package/dist/recipes/answer-relevance/metadata.js +10 -0
- package/dist/recipes/answer-relevance/schema.d.ts +39 -0
- package/dist/recipes/answer-relevance/schema.js +19 -0
- package/dist/recipes/answerability/index.js +15 -27
- package/dist/recipes/argument-fit/index.d.ts +5 -0
- package/dist/recipes/argument-fit/index.js +15 -0
- package/dist/recipes/argument-fit/metadata.d.ts +8 -0
- package/dist/recipes/argument-fit/metadata.js +10 -0
- package/dist/recipes/argument-fit/schema.d.ts +38 -0
- package/dist/recipes/argument-fit/schema.js +16 -0
- package/dist/recipes/attempted-step/index.d.ts +5 -0
- package/dist/recipes/attempted-step/index.js +15 -0
- package/dist/recipes/attempted-step/metadata.d.ts +8 -0
- package/dist/recipes/attempted-step/metadata.js +10 -0
- package/dist/recipes/attempted-step/schema.d.ts +36 -0
- package/dist/recipes/attempted-step/schema.js +14 -0
- package/dist/recipes/audience-fit/index.d.ts +5 -0
- package/dist/recipes/audience-fit/index.js +16 -0
- package/dist/recipes/audience-fit/metadata.d.ts +8 -0
- package/dist/recipes/audience-fit/metadata.js +10 -0
- package/dist/recipes/audience-fit/schema.d.ts +39 -0
- package/dist/recipes/audience-fit/schema.js +19 -0
- package/dist/recipes/cache-match/index.d.ts +5 -0
- package/dist/recipes/cache-match/index.js +15 -0
- package/dist/recipes/cache-match/metadata.d.ts +8 -0
- package/dist/recipes/cache-match/metadata.js +10 -0
- package/dist/recipes/cache-match/schema.d.ts +38 -0
- package/dist/recipes/cache-match/schema.js +16 -0
- package/dist/recipes/cancellation-check/index.d.ts +5 -0
- package/dist/recipes/cancellation-check/index.js +16 -0
- package/dist/recipes/cancellation-check/metadata.d.ts +8 -0
- package/dist/recipes/cancellation-check/metadata.js +10 -0
- package/dist/recipes/cancellation-check/schema.d.ts +40 -0
- package/dist/recipes/cancellation-check/schema.js +15 -0
- package/dist/recipes/certainty-match/index.d.ts +5 -0
- package/dist/recipes/certainty-match/index.js +16 -0
- package/dist/recipes/certainty-match/metadata.d.ts +8 -0
- package/dist/recipes/certainty-match/metadata.js +10 -0
- package/dist/recipes/certainty-match/schema.d.ts +39 -0
- package/dist/recipes/certainty-match/schema.js +19 -0
- package/dist/recipes/change-meaning/index.d.ts +5 -0
- package/dist/recipes/change-meaning/index.js +15 -0
- package/dist/recipes/change-meaning/metadata.d.ts +8 -0
- package/dist/recipes/change-meaning/metadata.js +10 -0
- package/dist/recipes/change-meaning/schema.d.ts +37 -0
- package/dist/recipes/change-meaning/schema.js +15 -0
- package/dist/recipes/citation-match/index.d.ts +5 -0
- package/dist/recipes/citation-match/index.js +21 -0
- package/dist/recipes/citation-match/metadata.d.ts +9 -0
- package/dist/recipes/citation-match/metadata.js +12 -0
- package/dist/recipes/citation-match/schema.d.ts +41 -0
- package/dist/recipes/citation-match/schema.js +13 -0
- package/dist/recipes/citation-needed/index.d.ts +5 -0
- package/dist/recipes/citation-needed/index.js +15 -0
- package/dist/recipes/citation-needed/metadata.d.ts +8 -0
- package/dist/recipes/citation-needed/metadata.js +10 -0
- package/dist/recipes/citation-needed/schema.d.ts +36 -0
- package/dist/recipes/citation-needed/schema.js +14 -0
- package/dist/recipes/clarify/index.js +15 -34
- package/dist/recipes/clarify/schema.d.ts +3 -3
- package/dist/recipes/confirmation-match/index.d.ts +5 -0
- package/dist/recipes/confirmation-match/index.js +15 -0
- package/dist/recipes/confirmation-match/metadata.d.ts +8 -0
- package/dist/recipes/confirmation-match/metadata.js +10 -0
- package/dist/recipes/confirmation-match/schema.d.ts +37 -0
- package/dist/recipes/confirmation-match/schema.js +15 -0
- package/dist/recipes/context-role/index.d.ts +5 -0
- package/dist/recipes/context-role/index.js +16 -0
- package/dist/recipes/context-role/metadata.d.ts +8 -0
- package/dist/recipes/context-role/metadata.js +10 -0
- package/dist/recipes/context-role/schema.d.ts +39 -0
- package/dist/recipes/context-role/schema.js +19 -0
- package/dist/recipes/correction-target/index.d.ts +5 -0
- package/dist/recipes/correction-target/index.js +7 -0
- package/dist/recipes/correction-target/metadata.d.ts +8 -0
- package/dist/recipes/correction-target/metadata.js +11 -0
- package/dist/recipes/correction-target/schema.d.ts +36 -0
- package/dist/recipes/correction-target/schema.js +9 -0
- package/dist/recipes/document-role/index.d.ts +5 -0
- package/dist/recipes/document-role/index.js +19 -0
- package/dist/recipes/document-role/metadata.d.ts +8 -0
- package/dist/recipes/document-role/metadata.js +10 -0
- package/dist/recipes/document-role/schema.d.ts +47 -0
- package/dist/recipes/document-role/schema.js +21 -0
- package/dist/recipes/draft-compare/index.d.ts +5 -0
- package/dist/recipes/draft-compare/index.js +17 -0
- package/dist/recipes/draft-compare/metadata.d.ts +8 -0
- package/dist/recipes/draft-compare/metadata.js +10 -0
- package/dist/recipes/draft-compare/schema.d.ts +44 -0
- package/dist/recipes/draft-compare/schema.js +16 -0
- package/dist/recipes/evidence-conflict/index.d.ts +5 -0
- package/dist/recipes/evidence-conflict/index.js +16 -0
- package/dist/recipes/evidence-conflict/metadata.d.ts +8 -0
- package/dist/recipes/evidence-conflict/metadata.js +10 -0
- package/dist/recipes/evidence-conflict/schema.d.ts +40 -0
- package/dist/recipes/evidence-conflict/schema.js +20 -0
- package/dist/recipes/evidence-novelty/index.d.ts +5 -0
- package/dist/recipes/evidence-novelty/index.js +16 -0
- package/dist/recipes/evidence-novelty/metadata.d.ts +8 -0
- package/dist/recipes/evidence-novelty/metadata.js +11 -0
- package/dist/recipes/evidence-novelty/schema.d.ts +43 -0
- package/dist/recipes/evidence-novelty/schema.js +20 -0
- package/dist/recipes/fact-stability/index.d.ts +5 -0
- package/dist/recipes/fact-stability/index.js +15 -0
- package/dist/recipes/fact-stability/metadata.d.ts +8 -0
- package/dist/recipes/fact-stability/metadata.js +10 -0
- package/dist/recipes/fact-stability/schema.d.ts +36 -0
- package/dist/recipes/fact-stability/schema.js +14 -0
- package/dist/recipes/failure-kind/index.d.ts +5 -0
- package/dist/recipes/failure-kind/index.js +7 -0
- package/dist/recipes/failure-kind/metadata.d.ts +8 -0
- package/dist/recipes/failure-kind/metadata.js +11 -0
- package/dist/recipes/failure-kind/schema.d.ts +36 -0
- package/dist/recipes/failure-kind/schema.js +9 -0
- package/dist/recipes/feedback-kind/index.d.ts +5 -0
- package/dist/recipes/feedback-kind/index.js +19 -0
- package/dist/recipes/feedback-kind/metadata.d.ts +8 -0
- package/dist/recipes/feedback-kind/metadata.js +10 -0
- package/dist/recipes/feedback-kind/schema.d.ts +48 -0
- package/dist/recipes/feedback-kind/schema.js +22 -0
- package/dist/recipes/field-select/index.d.ts +5 -0
- package/dist/recipes/field-select/index.js +7 -0
- package/dist/recipes/field-select/metadata.d.ts +8 -0
- package/dist/recipes/field-select/metadata.js +11 -0
- package/dist/recipes/field-select/schema.d.ts +36 -0
- package/dist/recipes/field-select/schema.js +9 -0
- package/dist/recipes/followup-link/index.d.ts +5 -0
- package/dist/recipes/followup-link/index.js +7 -0
- package/dist/recipes/followup-link/metadata.d.ts +8 -0
- package/dist/recipes/followup-link/metadata.js +11 -0
- package/dist/recipes/followup-link/schema.d.ts +36 -0
- package/dist/recipes/followup-link/schema.js +9 -0
- package/dist/recipes/freshness-needed/index.d.ts +5 -0
- package/dist/recipes/freshness-needed/index.js +15 -0
- package/dist/recipes/freshness-needed/metadata.d.ts +8 -0
- package/dist/recipes/freshness-needed/metadata.js +10 -0
- package/dist/recipes/freshness-needed/schema.d.ts +35 -0
- package/dist/recipes/freshness-needed/schema.js +13 -0
- package/dist/recipes/frustration-signal/index.d.ts +5 -0
- package/dist/recipes/frustration-signal/index.js +15 -0
- package/dist/recipes/frustration-signal/metadata.d.ts +8 -0
- package/dist/recipes/frustration-signal/metadata.js +10 -0
- package/dist/recipes/frustration-signal/schema.d.ts +36 -0
- package/dist/recipes/frustration-signal/schema.js +14 -0
- package/dist/recipes/handoff/index.js +16 -35
- package/dist/recipes/incident-match/index.d.ts +5 -0
- package/dist/recipes/incident-match/index.js +7 -0
- package/dist/recipes/incident-match/metadata.d.ts +8 -0
- package/dist/recipes/incident-match/metadata.js +11 -0
- package/dist/recipes/incident-match/schema.d.ts +36 -0
- package/dist/recipes/incident-match/schema.js +9 -0
- package/dist/recipes/instruction-fit/index.d.ts +5 -0
- package/dist/recipes/instruction-fit/index.js +15 -0
- package/dist/recipes/instruction-fit/metadata.d.ts +8 -0
- package/dist/recipes/instruction-fit/metadata.js +10 -0
- package/dist/recipes/instruction-fit/schema.d.ts +37 -0
- package/dist/recipes/instruction-fit/schema.js +15 -0
- package/dist/recipes/intent-change/index.d.ts +5 -0
- package/dist/recipes/intent-change/index.js +16 -0
- package/dist/recipes/intent-change/metadata.d.ts +8 -0
- package/dist/recipes/intent-change/metadata.js +10 -0
- package/dist/recipes/intent-change/schema.d.ts +40 -0
- package/dist/recipes/intent-change/schema.js +15 -0
- package/dist/recipes/issue-impact/index.d.ts +5 -0
- package/dist/recipes/issue-impact/index.js +16 -0
- package/dist/recipes/issue-impact/metadata.d.ts +8 -0
- package/dist/recipes/issue-impact/metadata.js +10 -0
- package/dist/recipes/issue-impact/schema.d.ts +39 -0
- package/dist/recipes/issue-impact/schema.js +14 -0
- package/dist/recipes/memory-relation/index.d.ts +5 -0
- package/dist/recipes/memory-relation/index.js +18 -0
- package/dist/recipes/memory-relation/metadata.d.ts +8 -0
- package/dist/recipes/memory-relation/metadata.js +10 -0
- package/dist/recipes/memory-relation/schema.d.ts +46 -0
- package/dist/recipes/memory-relation/schema.js +22 -0
- package/dist/recipes/memory-scope/index.d.ts +5 -0
- package/dist/recipes/memory-scope/index.js +17 -0
- package/dist/recipes/memory-scope/metadata.d.ts +8 -0
- package/dist/recipes/memory-scope/metadata.js +10 -0
- package/dist/recipes/memory-scope/schema.d.ts +42 -0
- package/dist/recipes/memory-scope/schema.js +14 -0
- package/dist/recipes/memory-value/index.d.ts +5 -0
- package/dist/recipes/memory-value/index.js +16 -0
- package/dist/recipes/memory-value/metadata.d.ts +8 -0
- package/dist/recipes/memory-value/metadata.js +10 -0
- package/dist/recipes/memory-value/schema.d.ts +40 -0
- package/dist/recipes/memory-value/schema.js +20 -0
- package/dist/recipes/passage-duplicate/index.d.ts +5 -0
- package/dist/recipes/passage-duplicate/index.js +16 -0
- package/dist/recipes/passage-duplicate/metadata.d.ts +8 -0
- package/dist/recipes/passage-duplicate/metadata.js +10 -0
- package/dist/recipes/passage-duplicate/schema.d.ts +39 -0
- package/dist/recipes/passage-duplicate/schema.js +19 -0
- package/dist/recipes/preference-kind/index.d.ts +5 -0
- package/dist/recipes/preference-kind/index.js +16 -0
- package/dist/recipes/preference-kind/metadata.d.ts +8 -0
- package/dist/recipes/preference-kind/metadata.js +10 -0
- package/dist/recipes/preference-kind/schema.d.ts +39 -0
- package/dist/recipes/preference-kind/schema.js +19 -0
- package/dist/recipes/promise-check/index.d.ts +5 -0
- package/dist/recipes/promise-check/index.js +15 -0
- package/dist/recipes/promise-check/metadata.d.ts +8 -0
- package/dist/recipes/promise-check/metadata.js +10 -0
- package/dist/recipes/promise-check/schema.d.ts +36 -0
- package/dist/recipes/promise-check/schema.js +14 -0
- package/dist/recipes/query-equivalence/index.d.ts +5 -0
- package/dist/recipes/query-equivalence/index.js +16 -0
- package/dist/recipes/query-equivalence/metadata.d.ts +8 -0
- package/dist/recipes/query-equivalence/metadata.js +10 -0
- package/dist/recipes/query-equivalence/schema.d.ts +40 -0
- package/dist/recipes/query-equivalence/schema.js +20 -0
- package/dist/recipes/query-specificity/index.d.ts +5 -0
- package/dist/recipes/query-specificity/index.js +15 -0
- package/dist/recipes/query-specificity/metadata.d.ts +8 -0
- package/dist/recipes/query-specificity/metadata.js +10 -0
- package/dist/recipes/query-specificity/schema.d.ts +36 -0
- package/dist/recipes/query-specificity/schema.js +14 -0
- package/dist/recipes/reference-resolve/index.d.ts +5 -0
- package/dist/recipes/reference-resolve/index.js +7 -0
- package/dist/recipes/reference-resolve/metadata.d.ts +8 -0
- package/dist/recipes/reference-resolve/metadata.js +11 -0
- package/dist/recipes/reference-resolve/schema.d.ts +37 -0
- package/dist/recipes/reference-resolve/schema.js +10 -0
- package/dist/recipes/repeated-attempt/index.d.ts +5 -0
- package/dist/recipes/repeated-attempt/index.js +15 -0
- package/dist/recipes/repeated-attempt/metadata.d.ts +8 -0
- package/dist/recipes/repeated-attempt/metadata.js +10 -0
- package/dist/recipes/repeated-attempt/schema.d.ts +37 -0
- package/dist/recipes/repeated-attempt/schema.js +19 -0
- package/dist/recipes/reply-template-match/index.d.ts +5 -0
- package/dist/recipes/reply-template-match/index.js +7 -0
- package/dist/recipes/reply-template-match/metadata.d.ts +8 -0
- package/dist/recipes/reply-template-match/metadata.js +11 -0
- package/dist/recipes/reply-template-match/schema.d.ts +36 -0
- package/dist/recipes/reply-template-match/schema.js +9 -0
- package/dist/recipes/rerank/index.js +7 -7
- package/dist/recipes/resolution-check/index.d.ts +5 -0
- package/dist/recipes/resolution-check/index.js +15 -0
- package/dist/recipes/resolution-check/metadata.d.ts +8 -0
- package/dist/recipes/resolution-check/metadata.js +10 -0
- package/dist/recipes/resolution-check/schema.d.ts +37 -0
- package/dist/recipes/resolution-check/schema.js +15 -0
- package/dist/recipes/response-needed/index.d.ts +5 -0
- package/dist/recipes/response-needed/index.js +15 -0
- package/dist/recipes/response-needed/metadata.d.ts +8 -0
- package/dist/recipes/response-needed/metadata.js +10 -0
- package/dist/recipes/response-needed/schema.d.ts +36 -0
- package/dist/recipes/response-needed/schema.js +14 -0
- package/dist/recipes/result-outcome/index.d.ts +5 -0
- package/dist/recipes/result-outcome/index.js +16 -0
- package/dist/recipes/result-outcome/metadata.d.ts +8 -0
- package/dist/recipes/result-outcome/metadata.js +10 -0
- package/dist/recipes/result-outcome/schema.d.ts +39 -0
- package/dist/recipes/result-outcome/schema.js +19 -0
- package/dist/recipes/result-usefulness/index.d.ts +5 -0
- package/dist/recipes/result-usefulness/index.js +16 -0
- package/dist/recipes/result-usefulness/metadata.d.ts +8 -0
- package/dist/recipes/result-usefulness/metadata.js +10 -0
- package/dist/recipes/result-usefulness/schema.d.ts +39 -0
- package/dist/recipes/result-usefulness/schema.js +19 -0
- package/dist/recipes/retrieval-needed/index.d.ts +5 -0
- package/dist/recipes/retrieval-needed/index.js +15 -0
- package/dist/recipes/retrieval-needed/metadata.d.ts +8 -0
- package/dist/recipes/retrieval-needed/metadata.js +10 -0
- package/dist/recipes/retrieval-needed/schema.d.ts +36 -0
- package/dist/recipes/retrieval-needed/schema.js +14 -0
- package/dist/recipes/route/index.js +12 -21
- package/dist/recipes/source-applicability/index.d.ts +5 -0
- package/dist/recipes/source-applicability/index.js +15 -0
- package/dist/recipes/source-applicability/metadata.d.ts +8 -0
- package/dist/recipes/source-applicability/metadata.js +10 -0
- package/dist/recipes/source-applicability/schema.d.ts +36 -0
- package/dist/recipes/source-applicability/schema.js +14 -0
- package/dist/recipes/step-complete/index.d.ts +5 -0
- package/dist/recipes/step-complete/index.js +15 -0
- package/dist/recipes/step-complete/metadata.d.ts +8 -0
- package/dist/recipes/step-complete/metadata.js +10 -0
- package/dist/recipes/step-complete/schema.d.ts +36 -0
- package/dist/recipes/step-complete/schema.js +14 -0
- package/dist/recipes/step-progress/index.d.ts +5 -0
- package/dist/recipes/step-progress/index.js +16 -0
- package/dist/recipes/step-progress/metadata.d.ts +8 -0
- package/dist/recipes/step-progress/metadata.js +10 -0
- package/dist/recipes/step-progress/schema.d.ts +40 -0
- package/dist/recipes/step-progress/schema.js +15 -0
- package/dist/recipes/summary-coverage/index.d.ts +5 -0
- package/dist/recipes/summary-coverage/index.js +22 -0
- package/dist/recipes/summary-coverage/metadata.d.ts +8 -0
- package/dist/recipes/summary-coverage/metadata.js +11 -0
- package/dist/recipes/summary-coverage/schema.d.ts +50 -0
- package/dist/recipes/summary-coverage/schema.js +22 -0
- package/dist/recipes/ticket-match/index.d.ts +5 -0
- package/dist/recipes/ticket-match/index.js +16 -0
- package/dist/recipes/ticket-match/metadata.d.ts +8 -0
- package/dist/recipes/ticket-match/metadata.js +10 -0
- package/dist/recipes/ticket-match/schema.d.ts +40 -0
- package/dist/recipes/ticket-match/schema.js +15 -0
- package/dist/recipes/tone-check/index.d.ts +5 -0
- package/dist/recipes/tone-check/index.js +21 -0
- package/dist/recipes/tone-check/metadata.d.ts +8 -0
- package/dist/recipes/tone-check/metadata.js +11 -0
- package/dist/recipes/tone-check/schema.d.ts +47 -0
- package/dist/recipes/tone-check/schema.js +22 -0
- package/dist/recipes/tool-fit/index.d.ts +5 -0
- package/dist/recipes/tool-fit/index.js +15 -0
- package/dist/recipes/tool-fit/metadata.d.ts +8 -0
- package/dist/recipes/tool-fit/metadata.js +10 -0
- package/dist/recipes/tool-fit/schema.d.ts +37 -0
- package/dist/recipes/tool-fit/schema.js +15 -0
- package/dist/recipes/topic-shift/index.d.ts +5 -0
- package/dist/recipes/topic-shift/index.js +16 -0
- package/dist/recipes/topic-shift/metadata.d.ts +8 -0
- package/dist/recipes/topic-shift/metadata.js +10 -0
- package/dist/recipes/topic-shift/schema.d.ts +40 -0
- package/dist/recipes/topic-shift/schema.js +15 -0
- package/dist/recipes/troubleshooting-fit/index.d.ts +5 -0
- package/dist/recipes/troubleshooting-fit/index.js +15 -0
- package/dist/recipes/troubleshooting-fit/metadata.d.ts +8 -0
- package/dist/recipes/troubleshooting-fit/metadata.js +10 -0
- package/dist/recipes/troubleshooting-fit/schema.d.ts +37 -0
- package/dist/recipes/troubleshooting-fit/schema.js +15 -0
- package/dist/recipes/turn-intent/index.d.ts +5 -0
- package/dist/recipes/turn-intent/index.js +19 -0
- package/dist/recipes/turn-intent/metadata.d.ts +8 -0
- package/dist/recipes/turn-intent/metadata.js +10 -0
- package/dist/recipes/turn-intent/schema.d.ts +48 -0
- package/dist/recipes/turn-intent/schema.js +22 -0
- package/dist/recipes/urgency-signal/index.d.ts +5 -0
- package/dist/recipes/urgency-signal/index.js +15 -0
- package/dist/recipes/urgency-signal/metadata.d.ts +8 -0
- package/dist/recipes/urgency-signal/metadata.js +10 -0
- package/dist/recipes/urgency-signal/schema.d.ts +36 -0
- package/dist/recipes/urgency-signal/schema.js +14 -0
- package/dist/recipes/verify/index.js +11 -31
- package/dist/recipes/workaround-fit/index.d.ts +5 -0
- package/dist/recipes/workaround-fit/index.js +15 -0
- package/dist/recipes/workaround-fit/metadata.d.ts +8 -0
- package/dist/recipes/workaround-fit/metadata.js +10 -0
- package/dist/recipes/workaround-fit/schema.d.ts +37 -0
- package/dist/recipes/workaround-fit/schema.js +15 -0
- package/dist/src/checks.d.ts +14 -0
- package/dist/src/checks.js +21 -0
- package/dist/src/decisions.d.ts +13 -0
- package/dist/src/decisions.js +26 -0
- package/dist/src/index.d.ts +120 -0
- package/dist/src/index.js +60 -0
- package/dist/src/schema.d.ts +48 -0
- package/dist/src/schema.js +30 -1
- package/dist/src/selection.d.ts +2 -0
- package/dist/src/selection.js +30 -0
- package/examples/support/README.md +1 -1
- package/package.json +254 -7
- package/recipes/README.md +128 -0
- package/recipes/action-scope/README.md +49 -0
- package/recipes/action-scope/demo.json +25 -0
- package/recipes/answer-consistency/README.md +50 -0
- package/recipes/answer-consistency/demo.json +26 -0
- package/recipes/answer-coverage/README.md +60 -0
- package/recipes/answer-coverage/demo.json +46 -0
- package/recipes/answer-invalidation/README.md +50 -0
- package/recipes/answer-invalidation/demo.json +26 -0
- package/recipes/answer-relevance/README.md +49 -0
- package/recipes/answer-relevance/demo.json +26 -0
- package/recipes/answerability/README.md +39 -14
- package/recipes/argument-fit/README.md +51 -0
- package/recipes/argument-fit/demo.json +26 -0
- package/recipes/attempted-step/README.md +48 -0
- package/recipes/attempted-step/demo.json +25 -0
- package/recipes/audience-fit/README.md +50 -0
- package/recipes/audience-fit/demo.json +26 -0
- package/recipes/cache-match/README.md +51 -0
- package/recipes/cache-match/demo.json +26 -0
- package/recipes/cancellation-check/README.md +50 -0
- package/recipes/cancellation-check/demo.json +26 -0
- package/recipes/certainty-match/README.md +49 -0
- package/recipes/certainty-match/demo.json +26 -0
- package/recipes/change-meaning/README.md +49 -0
- package/recipes/change-meaning/demo.json +25 -0
- package/recipes/citation-match/README.md +51 -0
- package/recipes/citation-match/demo.json +44 -0
- package/recipes/citation-needed/README.md +49 -0
- package/recipes/citation-needed/demo.json +25 -0
- package/recipes/clarify/README.md +42 -13
- package/recipes/confirmation-match/README.md +49 -0
- package/recipes/confirmation-match/demo.json +25 -0
- package/recipes/context-role/README.md +49 -0
- package/recipes/context-role/demo.json +26 -0
- package/recipes/correction-target/README.md +52 -0
- package/recipes/correction-target/demo.json +35 -0
- package/recipes/document-role/README.md +51 -0
- package/recipes/document-role/demo.json +28 -0
- package/recipes/draft-compare/README.md +54 -0
- package/recipes/draft-compare/demo.json +29 -0
- package/recipes/evidence-conflict/README.md +51 -0
- package/recipes/evidence-conflict/demo.json +27 -0
- package/recipes/evidence-novelty/README.md +56 -0
- package/recipes/evidence-novelty/demo.json +32 -0
- package/recipes/fact-stability/README.md +47 -0
- package/recipes/fact-stability/demo.json +24 -0
- package/recipes/failure-kind/README.md +52 -0
- package/recipes/failure-kind/demo.json +35 -0
- package/recipes/feedback-kind/README.md +51 -0
- package/recipes/feedback-kind/demo.json +28 -0
- package/recipes/field-select/README.md +53 -0
- package/recipes/field-select/demo.json +36 -0
- package/recipes/followup-link/README.md +52 -0
- package/recipes/followup-link/demo.json +35 -0
- package/recipes/freshness-needed/README.md +46 -0
- package/recipes/freshness-needed/demo.json +24 -0
- package/recipes/frustration-signal/README.md +47 -0
- package/recipes/frustration-signal/demo.json +24 -0
- package/recipes/handoff/README.md +34 -13
- package/recipes/incident-match/README.md +52 -0
- package/recipes/incident-match/demo.json +35 -0
- package/recipes/instruction-fit/README.md +49 -0
- package/recipes/instruction-fit/demo.json +25 -0
- package/recipes/intent-change/README.md +50 -0
- package/recipes/intent-change/demo.json +26 -0
- package/recipes/issue-impact/README.md +48 -0
- package/recipes/issue-impact/demo.json +25 -0
- package/recipes/memory-relation/README.md +52 -0
- package/recipes/memory-relation/demo.json +28 -0
- package/recipes/memory-scope/README.md +50 -0
- package/recipes/memory-scope/demo.json +27 -0
- package/recipes/memory-value/README.md +50 -0
- package/recipes/memory-value/demo.json +26 -0
- package/recipes/passage-duplicate/README.md +49 -0
- package/recipes/passage-duplicate/demo.json +26 -0
- package/recipes/preference-kind/README.md +48 -0
- package/recipes/preference-kind/demo.json +25 -0
- package/recipes/promise-check/README.md +48 -0
- package/recipes/promise-check/demo.json +25 -0
- package/recipes/query-equivalence/README.md +50 -0
- package/recipes/query-equivalence/demo.json +26 -0
- package/recipes/query-specificity/README.md +47 -0
- package/recipes/query-specificity/demo.json +24 -0
- package/recipes/reference-resolve/README.md +54 -0
- package/recipes/reference-resolve/demo.json +36 -0
- package/recipes/repeated-attempt/README.md +50 -0
- package/recipes/repeated-attempt/demo.json +26 -0
- package/recipes/reply-template-match/README.md +52 -0
- package/recipes/reply-template-match/demo.json +35 -0
- package/recipes/rerank/README.md +40 -10
- package/recipes/resolution-check/README.md +49 -0
- package/recipes/resolution-check/demo.json +25 -0
- package/recipes/response-needed/README.md +48 -0
- package/recipes/response-needed/demo.json +25 -0
- package/recipes/result-outcome/README.md +49 -0
- package/recipes/result-outcome/demo.json +26 -0
- package/recipes/result-usefulness/README.md +49 -0
- package/recipes/result-usefulness/demo.json +26 -0
- package/recipes/retrieval-needed/README.md +48 -0
- package/recipes/retrieval-needed/demo.json +25 -0
- package/recipes/route/README.md +30 -7
- package/recipes/source-applicability/README.md +48 -0
- package/recipes/source-applicability/demo.json +25 -0
- package/recipes/step-complete/README.md +48 -0
- package/recipes/step-complete/demo.json +25 -0
- package/recipes/step-progress/README.md +51 -0
- package/recipes/step-progress/demo.json +27 -0
- package/recipes/summary-coverage/README.md +60 -0
- package/recipes/summary-coverage/demo.json +46 -0
- package/recipes/ticket-match/README.md +50 -0
- package/recipes/ticket-match/demo.json +26 -0
- package/recipes/tone-check/README.md +55 -0
- package/recipes/tone-check/demo.json +30 -0
- package/recipes/tool-fit/README.md +49 -0
- package/recipes/tool-fit/demo.json +25 -0
- package/recipes/topic-shift/README.md +50 -0
- package/recipes/topic-shift/demo.json +26 -0
- package/recipes/troubleshooting-fit/README.md +49 -0
- package/recipes/troubleshooting-fit/demo.json +25 -0
- package/recipes/turn-intent/README.md +52 -0
- package/recipes/turn-intent/demo.json +29 -0
- package/recipes/urgency-signal/README.md +47 -0
- package/recipes/urgency-signal/demo.json +24 -0
- package/recipes/verify/README.md +37 -13
- package/recipes/workaround-fit/README.md +50 -0
- package/recipes/workaround-fit/demo.json +26 -0
package/dist/catalog/recipes.js
CHANGED
|
@@ -1,50 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { answerability, answerabilityInputSchema, answerabilityResultSchema, } from '../recipes/answerability/index.js';
|
|
8
|
-
import { metadata as answerabilityMetadata } from '../recipes/answerability/metadata.js';
|
|
9
|
-
import { clarify, clarifyInputSchema, clarifyResultSchema } from '../recipes/clarify/index.js';
|
|
10
|
-
import { metadata as clarifyMetadata } from '../recipes/clarify/metadata.js';
|
|
11
|
-
import { handoff, handoffInputSchema, handoffResultSchema } from '../recipes/handoff/index.js';
|
|
12
|
-
import { metadata as handoffMetadata } from '../recipes/handoff/metadata.js';
|
|
1
|
+
import { answersRecipes } from './groups/answers.js';
|
|
2
|
+
import { retrievalRecipes } from './groups/retrieval.js';
|
|
3
|
+
import { conversationRecipes } from './groups/conversation.js';
|
|
4
|
+
import { workflowRecipes } from './groups/workflow.js';
|
|
5
|
+
import { supportRecipes } from './groups/support.js';
|
|
6
|
+
import { knowledgeRecipes } from './groups/knowledge.js';
|
|
13
7
|
export const recipes = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
rerank: {
|
|
21
|
-
metadata: rerankMetadata,
|
|
22
|
-
inputSchema: rerankInputSchema,
|
|
23
|
-
resultSchema: rerankResultSchema,
|
|
24
|
-
run: (input, options) => rerank(rerankInputSchema.parse(input), options),
|
|
25
|
-
},
|
|
26
|
-
verify: {
|
|
27
|
-
metadata: verifyMetadata,
|
|
28
|
-
inputSchema: verifyInputSchema,
|
|
29
|
-
resultSchema: verifyResultSchema,
|
|
30
|
-
run: (input, options) => verify(verifyInputSchema.parse(input), options),
|
|
31
|
-
},
|
|
32
|
-
answerability: {
|
|
33
|
-
metadata: answerabilityMetadata,
|
|
34
|
-
inputSchema: answerabilityInputSchema,
|
|
35
|
-
resultSchema: answerabilityResultSchema,
|
|
36
|
-
run: (input, options) => answerability(answerabilityInputSchema.parse(input), options),
|
|
37
|
-
},
|
|
38
|
-
clarify: {
|
|
39
|
-
metadata: clarifyMetadata,
|
|
40
|
-
inputSchema: clarifyInputSchema,
|
|
41
|
-
resultSchema: clarifyResultSchema,
|
|
42
|
-
run: (input, options) => clarify(clarifyInputSchema.parse(input), options),
|
|
43
|
-
},
|
|
44
|
-
handoff: {
|
|
45
|
-
metadata: handoffMetadata,
|
|
46
|
-
inputSchema: handoffInputSchema,
|
|
47
|
-
resultSchema: handoffResultSchema,
|
|
48
|
-
run: (input, options) => handoff(handoffInputSchema.parse(input), options),
|
|
49
|
-
},
|
|
8
|
+
...answersRecipes,
|
|
9
|
+
...retrievalRecipes,
|
|
10
|
+
...conversationRecipes,
|
|
11
|
+
...workflowRecipes,
|
|
12
|
+
...supportRecipes,
|
|
13
|
+
...knowledgeRecipes,
|
|
50
14
|
};
|
package/dist/catalog/schema.d.ts
CHANGED
|
@@ -2,10 +2,70 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const recipeNameSchema: z.ZodEnum<{
|
|
3
3
|
route: "route";
|
|
4
4
|
answerability: "answerability";
|
|
5
|
-
|
|
5
|
+
"answer-coverage": "answer-coverage";
|
|
6
|
+
"answer-relevance": "answer-relevance";
|
|
7
|
+
"citation-match": "citation-match";
|
|
6
8
|
verify: "verify";
|
|
9
|
+
"citation-needed": "citation-needed";
|
|
10
|
+
"answer-consistency": "answer-consistency";
|
|
11
|
+
"summary-coverage": "summary-coverage";
|
|
12
|
+
"certainty-match": "certainty-match";
|
|
13
|
+
"promise-check": "promise-check";
|
|
14
|
+
"tone-check": "tone-check";
|
|
15
|
+
"draft-compare": "draft-compare";
|
|
16
|
+
rerank: "rerank";
|
|
17
|
+
"retrieval-needed": "retrieval-needed";
|
|
18
|
+
"freshness-needed": "freshness-needed";
|
|
19
|
+
"source-applicability": "source-applicability";
|
|
20
|
+
"evidence-conflict": "evidence-conflict";
|
|
21
|
+
"passage-duplicate": "passage-duplicate";
|
|
22
|
+
"evidence-novelty": "evidence-novelty";
|
|
23
|
+
"cache-match": "cache-match";
|
|
24
|
+
"query-equivalence": "query-equivalence";
|
|
25
|
+
"context-role": "context-role";
|
|
26
|
+
"query-specificity": "query-specificity";
|
|
7
27
|
clarify: "clarify";
|
|
28
|
+
"turn-intent": "turn-intent";
|
|
29
|
+
"followup-link": "followup-link";
|
|
30
|
+
"reference-resolve": "reference-resolve";
|
|
31
|
+
"intent-change": "intent-change";
|
|
32
|
+
"correction-target": "correction-target";
|
|
33
|
+
"confirmation-match": "confirmation-match";
|
|
34
|
+
"cancellation-check": "cancellation-check";
|
|
35
|
+
"topic-shift": "topic-shift";
|
|
36
|
+
"response-needed": "response-needed";
|
|
37
|
+
"resolution-check": "resolution-check";
|
|
8
38
|
handoff: "handoff";
|
|
39
|
+
"tool-fit": "tool-fit";
|
|
40
|
+
"argument-fit": "argument-fit";
|
|
41
|
+
"result-usefulness": "result-usefulness";
|
|
42
|
+
"result-outcome": "result-outcome";
|
|
43
|
+
"action-scope": "action-scope";
|
|
44
|
+
"step-progress": "step-progress";
|
|
45
|
+
"repeated-attempt": "repeated-attempt";
|
|
46
|
+
"step-complete": "step-complete";
|
|
47
|
+
"failure-kind": "failure-kind";
|
|
48
|
+
"instruction-fit": "instruction-fit";
|
|
49
|
+
"issue-impact": "issue-impact";
|
|
50
|
+
"attempted-step": "attempted-step";
|
|
51
|
+
"workaround-fit": "workaround-fit";
|
|
52
|
+
"ticket-match": "ticket-match";
|
|
53
|
+
"incident-match": "incident-match";
|
|
54
|
+
"troubleshooting-fit": "troubleshooting-fit";
|
|
55
|
+
"frustration-signal": "frustration-signal";
|
|
56
|
+
"urgency-signal": "urgency-signal";
|
|
57
|
+
"feedback-kind": "feedback-kind";
|
|
58
|
+
"reply-template-match": "reply-template-match";
|
|
59
|
+
"memory-value": "memory-value";
|
|
60
|
+
"memory-scope": "memory-scope";
|
|
61
|
+
"memory-relation": "memory-relation";
|
|
62
|
+
"preference-kind": "preference-kind";
|
|
63
|
+
"fact-stability": "fact-stability";
|
|
64
|
+
"document-role": "document-role";
|
|
65
|
+
"audience-fit": "audience-fit";
|
|
66
|
+
"change-meaning": "change-meaning";
|
|
67
|
+
"answer-invalidation": "answer-invalidation";
|
|
68
|
+
"field-select": "field-select";
|
|
9
69
|
}>;
|
|
10
70
|
export declare const recipeFiltersSchema: z.ZodObject<{
|
|
11
71
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -13,6 +73,10 @@ export declare const recipeFiltersSchema: z.ZodObject<{
|
|
|
13
73
|
retrieval: "retrieval";
|
|
14
74
|
conversation: "conversation";
|
|
15
75
|
workflow: "workflow";
|
|
76
|
+
"answer-quality": "answer-quality";
|
|
77
|
+
support: "support";
|
|
78
|
+
memory: "memory";
|
|
79
|
+
knowledge: "knowledge";
|
|
16
80
|
}>>;
|
|
17
81
|
}, z.core.$strip>;
|
|
18
82
|
export type RecipeName = z.infer<typeof recipeNameSchema>;
|
package/dist/cli/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function printHelp() {
|
|
|
42
42
|
jev-recipes run <recipe> <file|-> Run live with a JSON file or stdin
|
|
43
43
|
jev-recipes --version
|
|
44
44
|
|
|
45
|
-
Categories:
|
|
45
|
+
Categories: ${recipeCategorySchema.options.join(', ')}. Quote multi-word search queries.
|
|
46
46
|
Live runs send your input to TypeSafe and require TYPESAFE_API_KEY.
|
|
47
47
|
Output is JSON. Errors go to stderr and exit with code 1.
|
|
48
48
|
Review outcomes are successful evaluations; inspect status before acting.
|
package/dist/cli/schema.d.ts
CHANGED
|
@@ -6,34 +6,222 @@ export declare const commandArgumentsSchema: z.ZodUnion<readonly [z.ZodTuple<[z.
|
|
|
6
6
|
retrieval: "retrieval";
|
|
7
7
|
conversation: "conversation";
|
|
8
8
|
workflow: "workflow";
|
|
9
|
+
"answer-quality": "answer-quality";
|
|
10
|
+
support: "support";
|
|
11
|
+
memory: "memory";
|
|
12
|
+
knowledge: "knowledge";
|
|
9
13
|
}>], null>, z.ZodTuple<[z.ZodLiteral<"list">, z.ZodString, z.ZodLiteral<"--category">, z.ZodEnum<{
|
|
10
14
|
retrieval: "retrieval";
|
|
11
15
|
conversation: "conversation";
|
|
12
16
|
workflow: "workflow";
|
|
17
|
+
"answer-quality": "answer-quality";
|
|
18
|
+
support: "support";
|
|
19
|
+
memory: "memory";
|
|
20
|
+
knowledge: "knowledge";
|
|
13
21
|
}>], null>, z.ZodTuple<[z.ZodLiteral<"demo">, z.ZodUnion<readonly [z.ZodEnum<{
|
|
14
22
|
route: "route";
|
|
15
23
|
answerability: "answerability";
|
|
16
|
-
|
|
24
|
+
"answer-coverage": "answer-coverage";
|
|
25
|
+
"answer-relevance": "answer-relevance";
|
|
26
|
+
"citation-match": "citation-match";
|
|
17
27
|
verify: "verify";
|
|
28
|
+
"citation-needed": "citation-needed";
|
|
29
|
+
"answer-consistency": "answer-consistency";
|
|
30
|
+
"summary-coverage": "summary-coverage";
|
|
31
|
+
"certainty-match": "certainty-match";
|
|
32
|
+
"promise-check": "promise-check";
|
|
33
|
+
"tone-check": "tone-check";
|
|
34
|
+
"draft-compare": "draft-compare";
|
|
35
|
+
rerank: "rerank";
|
|
36
|
+
"retrieval-needed": "retrieval-needed";
|
|
37
|
+
"freshness-needed": "freshness-needed";
|
|
38
|
+
"source-applicability": "source-applicability";
|
|
39
|
+
"evidence-conflict": "evidence-conflict";
|
|
40
|
+
"passage-duplicate": "passage-duplicate";
|
|
41
|
+
"evidence-novelty": "evidence-novelty";
|
|
42
|
+
"cache-match": "cache-match";
|
|
43
|
+
"query-equivalence": "query-equivalence";
|
|
44
|
+
"context-role": "context-role";
|
|
45
|
+
"query-specificity": "query-specificity";
|
|
18
46
|
clarify: "clarify";
|
|
47
|
+
"turn-intent": "turn-intent";
|
|
48
|
+
"followup-link": "followup-link";
|
|
49
|
+
"reference-resolve": "reference-resolve";
|
|
50
|
+
"intent-change": "intent-change";
|
|
51
|
+
"correction-target": "correction-target";
|
|
52
|
+
"confirmation-match": "confirmation-match";
|
|
53
|
+
"cancellation-check": "cancellation-check";
|
|
54
|
+
"topic-shift": "topic-shift";
|
|
55
|
+
"response-needed": "response-needed";
|
|
56
|
+
"resolution-check": "resolution-check";
|
|
19
57
|
handoff: "handoff";
|
|
58
|
+
"tool-fit": "tool-fit";
|
|
59
|
+
"argument-fit": "argument-fit";
|
|
60
|
+
"result-usefulness": "result-usefulness";
|
|
61
|
+
"result-outcome": "result-outcome";
|
|
62
|
+
"action-scope": "action-scope";
|
|
63
|
+
"step-progress": "step-progress";
|
|
64
|
+
"repeated-attempt": "repeated-attempt";
|
|
65
|
+
"step-complete": "step-complete";
|
|
66
|
+
"failure-kind": "failure-kind";
|
|
67
|
+
"instruction-fit": "instruction-fit";
|
|
68
|
+
"issue-impact": "issue-impact";
|
|
69
|
+
"attempted-step": "attempted-step";
|
|
70
|
+
"workaround-fit": "workaround-fit";
|
|
71
|
+
"ticket-match": "ticket-match";
|
|
72
|
+
"incident-match": "incident-match";
|
|
73
|
+
"troubleshooting-fit": "troubleshooting-fit";
|
|
74
|
+
"frustration-signal": "frustration-signal";
|
|
75
|
+
"urgency-signal": "urgency-signal";
|
|
76
|
+
"feedback-kind": "feedback-kind";
|
|
77
|
+
"reply-template-match": "reply-template-match";
|
|
78
|
+
"memory-value": "memory-value";
|
|
79
|
+
"memory-scope": "memory-scope";
|
|
80
|
+
"memory-relation": "memory-relation";
|
|
81
|
+
"preference-kind": "preference-kind";
|
|
82
|
+
"fact-stability": "fact-stability";
|
|
83
|
+
"document-role": "document-role";
|
|
84
|
+
"audience-fit": "audience-fit";
|
|
85
|
+
"change-meaning": "change-meaning";
|
|
86
|
+
"answer-invalidation": "answer-invalidation";
|
|
87
|
+
"field-select": "field-select";
|
|
20
88
|
}>, z.ZodLiteral<"all">]>], null>, z.ZodTuple<[z.ZodEnum<{
|
|
21
89
|
example: "example";
|
|
22
90
|
describe: "describe";
|
|
23
91
|
}>, z.ZodEnum<{
|
|
24
92
|
route: "route";
|
|
25
93
|
answerability: "answerability";
|
|
26
|
-
|
|
94
|
+
"answer-coverage": "answer-coverage";
|
|
95
|
+
"answer-relevance": "answer-relevance";
|
|
96
|
+
"citation-match": "citation-match";
|
|
27
97
|
verify: "verify";
|
|
98
|
+
"citation-needed": "citation-needed";
|
|
99
|
+
"answer-consistency": "answer-consistency";
|
|
100
|
+
"summary-coverage": "summary-coverage";
|
|
101
|
+
"certainty-match": "certainty-match";
|
|
102
|
+
"promise-check": "promise-check";
|
|
103
|
+
"tone-check": "tone-check";
|
|
104
|
+
"draft-compare": "draft-compare";
|
|
105
|
+
rerank: "rerank";
|
|
106
|
+
"retrieval-needed": "retrieval-needed";
|
|
107
|
+
"freshness-needed": "freshness-needed";
|
|
108
|
+
"source-applicability": "source-applicability";
|
|
109
|
+
"evidence-conflict": "evidence-conflict";
|
|
110
|
+
"passage-duplicate": "passage-duplicate";
|
|
111
|
+
"evidence-novelty": "evidence-novelty";
|
|
112
|
+
"cache-match": "cache-match";
|
|
113
|
+
"query-equivalence": "query-equivalence";
|
|
114
|
+
"context-role": "context-role";
|
|
115
|
+
"query-specificity": "query-specificity";
|
|
28
116
|
clarify: "clarify";
|
|
117
|
+
"turn-intent": "turn-intent";
|
|
118
|
+
"followup-link": "followup-link";
|
|
119
|
+
"reference-resolve": "reference-resolve";
|
|
120
|
+
"intent-change": "intent-change";
|
|
121
|
+
"correction-target": "correction-target";
|
|
122
|
+
"confirmation-match": "confirmation-match";
|
|
123
|
+
"cancellation-check": "cancellation-check";
|
|
124
|
+
"topic-shift": "topic-shift";
|
|
125
|
+
"response-needed": "response-needed";
|
|
126
|
+
"resolution-check": "resolution-check";
|
|
29
127
|
handoff: "handoff";
|
|
128
|
+
"tool-fit": "tool-fit";
|
|
129
|
+
"argument-fit": "argument-fit";
|
|
130
|
+
"result-usefulness": "result-usefulness";
|
|
131
|
+
"result-outcome": "result-outcome";
|
|
132
|
+
"action-scope": "action-scope";
|
|
133
|
+
"step-progress": "step-progress";
|
|
134
|
+
"repeated-attempt": "repeated-attempt";
|
|
135
|
+
"step-complete": "step-complete";
|
|
136
|
+
"failure-kind": "failure-kind";
|
|
137
|
+
"instruction-fit": "instruction-fit";
|
|
138
|
+
"issue-impact": "issue-impact";
|
|
139
|
+
"attempted-step": "attempted-step";
|
|
140
|
+
"workaround-fit": "workaround-fit";
|
|
141
|
+
"ticket-match": "ticket-match";
|
|
142
|
+
"incident-match": "incident-match";
|
|
143
|
+
"troubleshooting-fit": "troubleshooting-fit";
|
|
144
|
+
"frustration-signal": "frustration-signal";
|
|
145
|
+
"urgency-signal": "urgency-signal";
|
|
146
|
+
"feedback-kind": "feedback-kind";
|
|
147
|
+
"reply-template-match": "reply-template-match";
|
|
148
|
+
"memory-value": "memory-value";
|
|
149
|
+
"memory-scope": "memory-scope";
|
|
150
|
+
"memory-relation": "memory-relation";
|
|
151
|
+
"preference-kind": "preference-kind";
|
|
152
|
+
"fact-stability": "fact-stability";
|
|
153
|
+
"document-role": "document-role";
|
|
154
|
+
"audience-fit": "audience-fit";
|
|
155
|
+
"change-meaning": "change-meaning";
|
|
156
|
+
"answer-invalidation": "answer-invalidation";
|
|
157
|
+
"field-select": "field-select";
|
|
30
158
|
}>], null>, z.ZodTuple<[z.ZodLiteral<"run">, z.ZodEnum<{
|
|
31
159
|
route: "route";
|
|
32
160
|
answerability: "answerability";
|
|
33
|
-
|
|
161
|
+
"answer-coverage": "answer-coverage";
|
|
162
|
+
"answer-relevance": "answer-relevance";
|
|
163
|
+
"citation-match": "citation-match";
|
|
34
164
|
verify: "verify";
|
|
165
|
+
"citation-needed": "citation-needed";
|
|
166
|
+
"answer-consistency": "answer-consistency";
|
|
167
|
+
"summary-coverage": "summary-coverage";
|
|
168
|
+
"certainty-match": "certainty-match";
|
|
169
|
+
"promise-check": "promise-check";
|
|
170
|
+
"tone-check": "tone-check";
|
|
171
|
+
"draft-compare": "draft-compare";
|
|
172
|
+
rerank: "rerank";
|
|
173
|
+
"retrieval-needed": "retrieval-needed";
|
|
174
|
+
"freshness-needed": "freshness-needed";
|
|
175
|
+
"source-applicability": "source-applicability";
|
|
176
|
+
"evidence-conflict": "evidence-conflict";
|
|
177
|
+
"passage-duplicate": "passage-duplicate";
|
|
178
|
+
"evidence-novelty": "evidence-novelty";
|
|
179
|
+
"cache-match": "cache-match";
|
|
180
|
+
"query-equivalence": "query-equivalence";
|
|
181
|
+
"context-role": "context-role";
|
|
182
|
+
"query-specificity": "query-specificity";
|
|
35
183
|
clarify: "clarify";
|
|
184
|
+
"turn-intent": "turn-intent";
|
|
185
|
+
"followup-link": "followup-link";
|
|
186
|
+
"reference-resolve": "reference-resolve";
|
|
187
|
+
"intent-change": "intent-change";
|
|
188
|
+
"correction-target": "correction-target";
|
|
189
|
+
"confirmation-match": "confirmation-match";
|
|
190
|
+
"cancellation-check": "cancellation-check";
|
|
191
|
+
"topic-shift": "topic-shift";
|
|
192
|
+
"response-needed": "response-needed";
|
|
193
|
+
"resolution-check": "resolution-check";
|
|
36
194
|
handoff: "handoff";
|
|
195
|
+
"tool-fit": "tool-fit";
|
|
196
|
+
"argument-fit": "argument-fit";
|
|
197
|
+
"result-usefulness": "result-usefulness";
|
|
198
|
+
"result-outcome": "result-outcome";
|
|
199
|
+
"action-scope": "action-scope";
|
|
200
|
+
"step-progress": "step-progress";
|
|
201
|
+
"repeated-attempt": "repeated-attempt";
|
|
202
|
+
"step-complete": "step-complete";
|
|
203
|
+
"failure-kind": "failure-kind";
|
|
204
|
+
"instruction-fit": "instruction-fit";
|
|
205
|
+
"issue-impact": "issue-impact";
|
|
206
|
+
"attempted-step": "attempted-step";
|
|
207
|
+
"workaround-fit": "workaround-fit";
|
|
208
|
+
"ticket-match": "ticket-match";
|
|
209
|
+
"incident-match": "incident-match";
|
|
210
|
+
"troubleshooting-fit": "troubleshooting-fit";
|
|
211
|
+
"frustration-signal": "frustration-signal";
|
|
212
|
+
"urgency-signal": "urgency-signal";
|
|
213
|
+
"feedback-kind": "feedback-kind";
|
|
214
|
+
"reply-template-match": "reply-template-match";
|
|
215
|
+
"memory-value": "memory-value";
|
|
216
|
+
"memory-scope": "memory-scope";
|
|
217
|
+
"memory-relation": "memory-relation";
|
|
218
|
+
"preference-kind": "preference-kind";
|
|
219
|
+
"fact-stability": "fact-stability";
|
|
220
|
+
"document-role": "document-role";
|
|
221
|
+
"audience-fit": "audience-fit";
|
|
222
|
+
"change-meaning": "change-meaning";
|
|
223
|
+
"answer-invalidation": "answer-invalidation";
|
|
224
|
+
"field-select": "field-select";
|
|
37
225
|
}>, z.ZodString], null>]>;
|
|
38
226
|
export declare const demoFixtureSchema: z.ZodObject<{
|
|
39
227
|
input: z.ZodUnknown;
|
|
@@ -92,15 +92,15 @@ export declare const supportDecisionsSchema: z.ZodObject<{
|
|
|
92
92
|
review: "review";
|
|
93
93
|
}>;
|
|
94
94
|
verdict: z.ZodEnum<{
|
|
95
|
+
ambiguous: "ambiguous";
|
|
95
96
|
present: "present";
|
|
96
97
|
missing: "missing";
|
|
97
|
-
ambiguous: "ambiguous";
|
|
98
98
|
}>;
|
|
99
99
|
confidence: z.ZodNumber;
|
|
100
100
|
probabilities: z.ZodRecord<z.ZodEnum<{
|
|
101
|
+
ambiguous: "ambiguous";
|
|
101
102
|
present: "present";
|
|
102
103
|
missing: "missing";
|
|
103
|
-
ambiguous: "ambiguous";
|
|
104
104
|
}>, z.ZodNumber>;
|
|
105
105
|
}, z.core.$strip>>;
|
|
106
106
|
}, z.core.$strip>>;
|
|
@@ -255,15 +255,15 @@ export declare const supportResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
255
255
|
review: "review";
|
|
256
256
|
}>;
|
|
257
257
|
verdict: z.ZodEnum<{
|
|
258
|
+
ambiguous: "ambiguous";
|
|
258
259
|
present: "present";
|
|
259
260
|
missing: "missing";
|
|
260
|
-
ambiguous: "ambiguous";
|
|
261
261
|
}>;
|
|
262
262
|
confidence: z.ZodNumber;
|
|
263
263
|
probabilities: z.ZodRecord<z.ZodEnum<{
|
|
264
|
+
ambiguous: "ambiguous";
|
|
264
265
|
present: "present";
|
|
265
266
|
missing: "missing";
|
|
266
|
-
ambiguous: "ambiguous";
|
|
267
267
|
}>, z.ZodNumber>;
|
|
268
268
|
}, z.core.$strip>>;
|
|
269
269
|
}, z.core.$strip>>;
|
|
@@ -363,8 +363,8 @@ export declare const supportResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
363
363
|
stage: z.ZodEnum<{
|
|
364
364
|
route: "route";
|
|
365
365
|
answerability: "answerability";
|
|
366
|
-
rerank: "rerank";
|
|
367
366
|
verify: "verify";
|
|
367
|
+
rerank: "rerank";
|
|
368
368
|
clarify: "clarify";
|
|
369
369
|
handoff: "handoff";
|
|
370
370
|
}>;
|
|
@@ -425,15 +425,15 @@ export declare const supportResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
425
425
|
review: "review";
|
|
426
426
|
}>;
|
|
427
427
|
verdict: z.ZodEnum<{
|
|
428
|
+
ambiguous: "ambiguous";
|
|
428
429
|
present: "present";
|
|
429
430
|
missing: "missing";
|
|
430
|
-
ambiguous: "ambiguous";
|
|
431
431
|
}>;
|
|
432
432
|
confidence: z.ZodNumber;
|
|
433
433
|
probabilities: z.ZodRecord<z.ZodEnum<{
|
|
434
|
+
ambiguous: "ambiguous";
|
|
434
435
|
present: "present";
|
|
435
436
|
missing: "missing";
|
|
436
|
-
ambiguous: "ambiguous";
|
|
437
437
|
}>, z.ZodNumber>;
|
|
438
438
|
}, z.core.$strip>>;
|
|
439
439
|
}, z.core.$strip>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RecipeOptions } from '../../src/schema.js';
|
|
2
|
+
import type { ActionScopeInput, ActionScopeResult } from './schema.js';
|
|
3
|
+
export declare function actionScope(input: ActionScopeInput, options?: RecipeOptions): Promise<ActionScopeResult>;
|
|
4
|
+
export { actionScopeInputSchema, actionScopeResultSchema, actionScopeVerdictSchema, } from './schema.js';
|
|
5
|
+
export type { ActionScopeInput, ActionScopeResult, ActionScopeVerdict } from './schema.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { evaluateChoice } from '../../src/decisions.js';
|
|
2
|
+
import { actionScopeInputSchema, actionScopeResultSchema } from './schema.js';
|
|
3
|
+
export async function actionScope(input, options = {}) {
|
|
4
|
+
const { minConfidence = 0.8, ...state } = actionScopeInputSchema.parse(input);
|
|
5
|
+
const decision = await evaluateChoice(state, 'Is proposedAction within the work requested in request and constraints? Do not treat a potentially helpful extra task as requested work. An explicit constraint overrides an implied convenience.', {
|
|
6
|
+
within_scope: 'The action is explicitly requested or directly necessary under the stated constraints.',
|
|
7
|
+
additional_work: 'The action introduces unrequested work, changes the requested outcome, or violates a stated scope constraint.',
|
|
8
|
+
unclear: 'The scope relationship cannot be established from the request.',
|
|
9
|
+
}, options);
|
|
10
|
+
return actionScopeResultSchema.parse({
|
|
11
|
+
...decision,
|
|
12
|
+
status: decision.confidence < minConfidence || decision.verdict === 'unclear' ? 'review' : 'ready',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export { actionScopeInputSchema, actionScopeResultSchema, actionScopeVerdictSchema, } from './schema.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const metadata = {
|
|
2
|
+
id: 'action-scope',
|
|
3
|
+
title: 'Check proposed action scope',
|
|
4
|
+
description: 'Is proposedAction within the work requested in request and constraints?',
|
|
5
|
+
category: 'workflow',
|
|
6
|
+
tags: ['workflow', 'action', 'scope'],
|
|
7
|
+
limitations: [
|
|
8
|
+
'Assesses semantic scope only. User authorization and access controls must be enforced by the application.',
|
|
9
|
+
],
|
|
10
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const actionScopeVerdictSchema: z.ZodEnum<{
|
|
3
|
+
unclear: "unclear";
|
|
4
|
+
within_scope: "within_scope";
|
|
5
|
+
additional_work: "additional_work";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const actionScopeInputSchema: z.ZodObject<{
|
|
8
|
+
request: z.ZodString;
|
|
9
|
+
proposedAction: z.ZodString;
|
|
10
|
+
constraints: z.ZodOptional<z.ZodString>;
|
|
11
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const actionScopeResultSchema: z.ZodObject<{
|
|
14
|
+
model: z.ZodString;
|
|
15
|
+
usage: z.ZodObject<{
|
|
16
|
+
input_tokens: z.ZodNumber;
|
|
17
|
+
output_tokens: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
status: z.ZodEnum<{
|
|
20
|
+
ready: "ready";
|
|
21
|
+
review: "review";
|
|
22
|
+
}>;
|
|
23
|
+
verdict: z.ZodEnum<{
|
|
24
|
+
unclear: "unclear";
|
|
25
|
+
within_scope: "within_scope";
|
|
26
|
+
additional_work: "additional_work";
|
|
27
|
+
}>;
|
|
28
|
+
confidence: z.ZodNumber;
|
|
29
|
+
probabilities: z.ZodRecord<z.ZodEnum<{
|
|
30
|
+
unclear: "unclear";
|
|
31
|
+
within_scope: "within_scope";
|
|
32
|
+
additional_work: "additional_work";
|
|
33
|
+
}>, z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type ActionScopeInput = z.infer<typeof actionScopeInputSchema>;
|
|
36
|
+
export type ActionScopeResult = z.infer<typeof actionScopeResultSchema>;
|
|
37
|
+
export type ActionScopeVerdict = z.infer<typeof actionScopeVerdictSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { decisionStatusSchema, nonEmptyText, probability, resultMetadataSchema, } from '../../src/schema.js';
|
|
3
|
+
export const actionScopeVerdictSchema = z.enum(['within_scope', 'additional_work', 'unclear']);
|
|
4
|
+
export const actionScopeInputSchema = z.object({
|
|
5
|
+
request: nonEmptyText,
|
|
6
|
+
proposedAction: nonEmptyText,
|
|
7
|
+
constraints: nonEmptyText.optional(),
|
|
8
|
+
minConfidence: probability.optional(),
|
|
9
|
+
});
|
|
10
|
+
export const actionScopeResultSchema = resultMetadataSchema.extend({
|
|
11
|
+
status: decisionStatusSchema,
|
|
12
|
+
verdict: actionScopeVerdictSchema,
|
|
13
|
+
confidence: probability,
|
|
14
|
+
probabilities: z.record(actionScopeVerdictSchema, probability),
|
|
15
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RecipeOptions } from '../../src/schema.js';
|
|
2
|
+
import type { AnswerConsistencyInput, AnswerConsistencyResult } from './schema.js';
|
|
3
|
+
export declare function answerConsistency(input: AnswerConsistencyInput, options?: RecipeOptions): Promise<AnswerConsistencyResult>;
|
|
4
|
+
export { answerConsistencyInputSchema, answerConsistencyResultSchema, answerConsistencyVerdictSchema, } from './schema.js';
|
|
5
|
+
export type { AnswerConsistencyInput, AnswerConsistencyResult, AnswerConsistencyVerdict, } from './schema.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { evaluateChoice } from '../../src/decisions.js';
|
|
2
|
+
import { answerConsistencyInputSchema, answerConsistencyResultSchema } from './schema.js';
|
|
3
|
+
export async function answerConsistency(input, options = {}) {
|
|
4
|
+
const { minConfidence = 0.8, ...state } = answerConsistencyInputSchema.parse(input);
|
|
5
|
+
const decision = await evaluateChoice(state, 'Do firstStatement and secondStatement make compatible claims about the same subject and circumstances? Distinguish different conditions from a contradiction.', {
|
|
6
|
+
consistent: 'Both statements concern the same subject and can hold under the supplied circumstances.',
|
|
7
|
+
conflicting: 'The statements concern the same circumstances and make mutually incompatible claims.',
|
|
8
|
+
unrelated: 'The statements concern different subjects or scopes that should not be compared.',
|
|
9
|
+
unclear: 'The supplied circumstances do not resolve whether the statements conflict.',
|
|
10
|
+
}, options);
|
|
11
|
+
return answerConsistencyResultSchema.parse({
|
|
12
|
+
...decision,
|
|
13
|
+
status: decision.confidence < minConfidence || decision.verdict === 'unclear' ? 'review' : 'ready',
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export { answerConsistencyInputSchema, answerConsistencyResultSchema, answerConsistencyVerdictSchema, } from './schema.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const metadata = {
|
|
2
|
+
id: 'answer-consistency',
|
|
3
|
+
title: 'Check answer consistency',
|
|
4
|
+
description: 'Do firstStatement and secondStatement make compatible claims about the same subject and circumstances?',
|
|
5
|
+
category: 'answer-quality',
|
|
6
|
+
tags: ['answer-quality', 'answer', 'consistency', 'rag', 'evidence'],
|
|
7
|
+
limitations: [
|
|
8
|
+
'Checks semantic consistency between two statements. Exact numeric and date comparisons belong in code.',
|
|
9
|
+
],
|
|
10
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const answerConsistencyVerdictSchema: z.ZodEnum<{
|
|
3
|
+
conflicting: "conflicting";
|
|
4
|
+
unclear: "unclear";
|
|
5
|
+
consistent: "consistent";
|
|
6
|
+
unrelated: "unrelated";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const answerConsistencyInputSchema: z.ZodObject<{
|
|
9
|
+
firstStatement: z.ZodString;
|
|
10
|
+
secondStatement: z.ZodString;
|
|
11
|
+
context: z.ZodOptional<z.ZodString>;
|
|
12
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const answerConsistencyResultSchema: z.ZodObject<{
|
|
15
|
+
model: z.ZodString;
|
|
16
|
+
usage: z.ZodObject<{
|
|
17
|
+
input_tokens: z.ZodNumber;
|
|
18
|
+
output_tokens: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
status: z.ZodEnum<{
|
|
21
|
+
ready: "ready";
|
|
22
|
+
review: "review";
|
|
23
|
+
}>;
|
|
24
|
+
verdict: z.ZodEnum<{
|
|
25
|
+
conflicting: "conflicting";
|
|
26
|
+
unclear: "unclear";
|
|
27
|
+
consistent: "consistent";
|
|
28
|
+
unrelated: "unrelated";
|
|
29
|
+
}>;
|
|
30
|
+
confidence: z.ZodNumber;
|
|
31
|
+
probabilities: z.ZodRecord<z.ZodEnum<{
|
|
32
|
+
conflicting: "conflicting";
|
|
33
|
+
unclear: "unclear";
|
|
34
|
+
consistent: "consistent";
|
|
35
|
+
unrelated: "unrelated";
|
|
36
|
+
}>, z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type AnswerConsistencyInput = z.infer<typeof answerConsistencyInputSchema>;
|
|
39
|
+
export type AnswerConsistencyResult = z.infer<typeof answerConsistencyResultSchema>;
|
|
40
|
+
export type AnswerConsistencyVerdict = z.infer<typeof answerConsistencyVerdictSchema>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { decisionStatusSchema, nonEmptyText, probability, resultMetadataSchema, } from '../../src/schema.js';
|
|
3
|
+
export const answerConsistencyVerdictSchema = z.enum([
|
|
4
|
+
'consistent',
|
|
5
|
+
'conflicting',
|
|
6
|
+
'unrelated',
|
|
7
|
+
'unclear',
|
|
8
|
+
]);
|
|
9
|
+
export const answerConsistencyInputSchema = z.object({
|
|
10
|
+
firstStatement: nonEmptyText,
|
|
11
|
+
secondStatement: nonEmptyText,
|
|
12
|
+
context: nonEmptyText.optional(),
|
|
13
|
+
minConfidence: probability.optional(),
|
|
14
|
+
});
|
|
15
|
+
export const answerConsistencyResultSchema = resultMetadataSchema.extend({
|
|
16
|
+
status: decisionStatusSchema,
|
|
17
|
+
verdict: answerConsistencyVerdictSchema,
|
|
18
|
+
confidence: probability,
|
|
19
|
+
probabilities: z.record(answerConsistencyVerdictSchema, probability),
|
|
20
|
+
});
|