jev-recipes 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -1
- package/README.md +74 -85
- package/dist/catalog/generated/details/action-scope.json +43 -0
- package/dist/catalog/generated/details/answer-consistency.json +46 -0
- package/dist/catalog/generated/details/answer-coverage.json +66 -0
- package/dist/catalog/generated/details/answer-invalidation.json +43 -0
- package/dist/catalog/generated/details/answer-relevance.json +45 -0
- package/dist/catalog/generated/details/answerability.json +55 -0
- package/dist/catalog/generated/details/argument-fit.json +41 -0
- package/dist/catalog/generated/details/attempted-step.json +39 -0
- package/dist/catalog/generated/details/audience-fit.json +45 -0
- package/dist/catalog/generated/details/cache-match.json +41 -0
- package/dist/catalog/generated/details/cancellation-check.json +40 -0
- package/dist/catalog/generated/details/certainty-match.json +45 -0
- package/dist/catalog/generated/details/change-meaning.json +43 -0
- package/dist/catalog/generated/details/citation-match.json +64 -0
- package/dist/catalog/generated/details/citation-needed.json +39 -0
- package/dist/catalog/generated/details/claim-stance.json +55 -0
- package/dist/catalog/generated/details/clarify.json +64 -0
- package/dist/catalog/generated/details/confirmation-match.json +40 -0
- package/dist/catalog/generated/details/constraint-strength.json +48 -0
- package/dist/catalog/generated/details/context-role.json +45 -0
- package/dist/catalog/generated/details/correction-target.json +68 -0
- package/dist/catalog/generated/details/document-role.json +68 -0
- package/dist/catalog/generated/details/draft-compare.json +44 -0
- package/dist/catalog/generated/details/evidence-conflict.json +46 -0
- package/dist/catalog/generated/details/evidence-novelty.json +55 -0
- package/dist/catalog/generated/details/fact-stability.json +39 -0
- package/dist/catalog/generated/details/failure-kind.json +68 -0
- package/dist/catalog/generated/details/feedback-kind.json +69 -0
- package/dist/catalog/generated/details/field-select.json +68 -0
- package/dist/catalog/generated/details/followup-link.json +68 -0
- package/dist/catalog/generated/details/freshness-needed.json +38 -0
- package/dist/catalog/generated/details/frustration-signal.json +39 -0
- package/dist/catalog/generated/details/handoff.json +75 -0
- package/dist/catalog/generated/details/incident-match.json +68 -0
- package/dist/catalog/generated/details/instruction-conflict.json +52 -0
- package/dist/catalog/generated/details/instruction-fit.json +40 -0
- package/dist/catalog/generated/details/intent-change.json +43 -0
- package/dist/catalog/generated/details/issue-impact.json +42 -0
- package/dist/catalog/generated/details/memory-relation.json +46 -0
- package/dist/catalog/generated/details/memory-scope.json +42 -0
- package/dist/catalog/generated/details/memory-value.json +46 -0
- package/dist/catalog/generated/details/passage-duplicate.json +42 -0
- package/dist/catalog/generated/details/preference-kind.json +45 -0
- package/dist/catalog/generated/details/promise-check.json +42 -0
- package/dist/catalog/generated/details/query-equivalence.json +43 -0
- package/dist/catalog/generated/details/query-specificity.json +39 -0
- package/dist/catalog/generated/details/reference-resolve.json +69 -0
- package/dist/catalog/generated/details/repeated-attempt.json +43 -0
- package/dist/catalog/generated/details/reply-template-match.json +68 -0
- package/dist/catalog/generated/details/requirement-testability.json +45 -0
- package/dist/catalog/generated/details/rerank.json +55 -0
- package/dist/catalog/generated/details/resolution-check.json +40 -0
- package/dist/catalog/generated/details/response-needed.json +42 -0
- package/dist/catalog/generated/details/result-outcome.json +42 -0
- package/dist/catalog/generated/details/result-usefulness.json +45 -0
- package/dist/catalog/generated/details/retrieval-needed.json +39 -0
- package/dist/catalog/generated/details/route.json +51 -0
- package/dist/catalog/generated/details/source-applicability.json +39 -0
- package/dist/catalog/generated/details/step-complete.json +39 -0
- package/dist/catalog/generated/details/step-progress.json +43 -0
- package/dist/catalog/generated/details/summary-coverage.json +66 -0
- package/dist/catalog/generated/details/task-dependency.json +61 -0
- package/dist/catalog/generated/details/task-duplicate.json +49 -0
- package/dist/catalog/generated/details/ticket-match.json +43 -0
- package/dist/catalog/generated/details/tone-check.json +63 -0
- package/dist/catalog/generated/details/tool-fit.json +40 -0
- package/dist/catalog/generated/details/topic-shift.json +43 -0
- package/dist/catalog/generated/details/troubleshooting-fit.json +40 -0
- package/dist/catalog/generated/details/turn-intent.json +69 -0
- package/dist/catalog/generated/details/urgency-signal.json +39 -0
- package/dist/catalog/generated/details/verify.json +66 -0
- package/dist/catalog/generated/details/workaround-fit.json +40 -0
- package/dist/catalog/generated/loaders.d.ts +3 -0
- package/dist/catalog/generated/loaders.js +74 -0
- package/dist/catalog/generated/metadata.d.ts +2 -0
- package/dist/catalog/generated/metadata.js +1286 -0
- package/dist/catalog/generated/names.d.ts +1 -0
- package/dist/catalog/generated/names.js +75 -0
- package/dist/catalog/index.d.ts +9 -1764
- package/dist/catalog/index.js +8 -24
- package/dist/catalog/runner.d.ts +4 -0
- package/dist/catalog/runner.js +5 -0
- package/dist/catalog/schema.d.ts +57 -50
- package/dist/catalog/schema.js +2 -2
- package/dist/catalog/search.d.ts +3 -0
- package/dist/catalog/search.js +60 -0
- package/dist/cli/index.js +17 -8
- package/dist/cli/schema.d.ts +169 -167
- package/dist/cli/schema.js +37 -4
- package/dist/recipes/action-scope/schema.d.ts +3 -3
- package/dist/recipes/answer-consistency/schema.d.ts +3 -3
- package/dist/recipes/answer-coverage/schema.d.ts +6 -6
- package/dist/recipes/answerability/schema.d.ts +6 -6
- package/dist/recipes/cancellation-check/schema.d.ts +3 -3
- package/dist/recipes/certainty-match/schema.d.ts +3 -3
- package/dist/recipes/citation-needed/schema.d.ts +3 -3
- package/dist/recipes/claim-stance/demo.json +27 -0
- package/dist/recipes/claim-stance/index.d.ts +5 -0
- package/dist/recipes/claim-stance/index.js +17 -0
- package/dist/recipes/claim-stance/schema.d.ts +43 -0
- package/dist/recipes/claim-stance/schema.js +23 -0
- package/dist/recipes/clarify/schema.d.ts +3 -3
- package/dist/recipes/constraint-strength/demo.json +25 -0
- package/dist/recipes/constraint-strength/index.d.ts +5 -0
- package/dist/recipes/constraint-strength/index.js +16 -0
- package/dist/recipes/constraint-strength/schema.d.ts +39 -0
- package/dist/recipes/constraint-strength/schema.js +21 -0
- package/dist/recipes/document-role/schema.d.ts +6 -6
- package/dist/recipes/evidence-conflict/schema.d.ts +6 -6
- package/dist/recipes/feedback-kind/schema.d.ts +3 -3
- package/dist/recipes/freshness-needed/schema.d.ts +3 -3
- package/dist/recipes/handoff/schema.d.ts +3 -3
- package/dist/recipes/instruction-conflict/demo.json +27 -0
- package/dist/recipes/instruction-conflict/index.d.ts +5 -0
- package/dist/recipes/instruction-conflict/index.js +16 -0
- package/dist/recipes/instruction-conflict/schema.d.ts +40 -0
- package/dist/recipes/instruction-conflict/schema.js +22 -0
- package/dist/recipes/passage-duplicate/schema.d.ts +3 -3
- package/dist/recipes/preference-kind/schema.d.ts +6 -6
- package/dist/recipes/promise-check/schema.d.ts +3 -3
- package/dist/recipes/query-equivalence/schema.d.ts +3 -3
- package/dist/recipes/requirement-testability/demo.json +24 -0
- package/dist/recipes/requirement-testability/index.d.ts +5 -0
- package/dist/recipes/requirement-testability/index.js +15 -0
- package/dist/recipes/requirement-testability/schema.d.ts +36 -0
- package/dist/recipes/requirement-testability/schema.js +16 -0
- package/dist/recipes/result-outcome/schema.d.ts +3 -3
- package/dist/recipes/retrieval-needed/schema.d.ts +3 -3
- package/dist/recipes/step-progress/schema.d.ts +3 -3
- package/dist/recipes/summary-coverage/schema.d.ts +3 -3
- package/dist/recipes/task-dependency/demo.json +28 -0
- package/dist/recipes/task-dependency/index.d.ts +5 -0
- package/dist/recipes/task-dependency/index.js +17 -0
- package/dist/recipes/task-dependency/schema.d.ts +43 -0
- package/dist/recipes/task-dependency/schema.js +23 -0
- package/dist/recipes/task-duplicate/demo.json +27 -0
- package/dist/recipes/task-duplicate/index.d.ts +5 -0
- package/dist/recipes/task-duplicate/index.js +16 -0
- package/dist/recipes/task-duplicate/schema.d.ts +40 -0
- package/dist/recipes/task-duplicate/schema.js +22 -0
- package/dist/recipes/ticket-match/schema.d.ts +3 -3
- package/dist/recipes/topic-shift/schema.d.ts +3 -3
- package/dist/recipes/turn-intent/schema.d.ts +12 -12
- package/dist/src/index.d.ts +129 -117
- package/dist/src/index.js +57 -50
- package/dist/src/schema.d.ts +5 -0
- package/dist/src/schema.js +2 -0
- package/package.json +221 -188
- package/dist/catalog/groups/answers.d.ts +0 -565
- package/dist/catalog/groups/answers.js +0 -82
- package/dist/catalog/groups/conversation.d.ts +0 -608
- package/dist/catalog/groups/conversation.js +0 -90
- package/dist/catalog/groups/knowledge.d.ts +0 -522
- package/dist/catalog/groups/knowledge.js +0 -82
- package/dist/catalog/groups/retrieval.d.ts +0 -664
- package/dist/catalog/groups/retrieval.js +0 -106
- package/dist/catalog/groups/support.d.ts +0 -522
- package/dist/catalog/groups/support.js +0 -82
- package/dist/catalog/groups/workflow.d.ts +0 -623
- package/dist/catalog/groups/workflow.js +0 -98
- package/dist/catalog/recipes.d.ts +0 -3488
- package/dist/catalog/recipes.js +0 -14
- package/dist/examples/support/index.d.ts +0 -1
- package/dist/examples/support/index.js +0 -37
- package/dist/examples/support/schema.d.ts +0 -566
- package/dist/examples/support/schema.js +0 -76
- package/dist/examples/support/workflow.d.ts +0 -3
- package/dist/examples/support/workflow.js +0 -85
- package/dist/recipes/action-scope/metadata.d.ts +0 -8
- package/dist/recipes/action-scope/metadata.js +0 -10
- package/dist/recipes/answer-consistency/metadata.d.ts +0 -8
- package/dist/recipes/answer-consistency/metadata.js +0 -10
- package/dist/recipes/answer-coverage/metadata.d.ts +0 -8
- package/dist/recipes/answer-coverage/metadata.js +0 -11
- package/dist/recipes/answer-invalidation/metadata.d.ts +0 -8
- package/dist/recipes/answer-invalidation/metadata.js +0 -10
- package/dist/recipes/answer-relevance/metadata.d.ts +0 -8
- package/dist/recipes/answer-relevance/metadata.js +0 -10
- package/dist/recipes/answerability/metadata.d.ts +0 -8
- package/dist/recipes/answerability/metadata.js +0 -11
- package/dist/recipes/argument-fit/metadata.d.ts +0 -8
- package/dist/recipes/argument-fit/metadata.js +0 -10
- package/dist/recipes/attempted-step/metadata.d.ts +0 -8
- package/dist/recipes/attempted-step/metadata.js +0 -10
- package/dist/recipes/audience-fit/metadata.d.ts +0 -8
- package/dist/recipes/audience-fit/metadata.js +0 -10
- package/dist/recipes/cache-match/metadata.d.ts +0 -8
- package/dist/recipes/cache-match/metadata.js +0 -10
- package/dist/recipes/cancellation-check/metadata.d.ts +0 -8
- package/dist/recipes/cancellation-check/metadata.js +0 -10
- package/dist/recipes/certainty-match/metadata.d.ts +0 -8
- package/dist/recipes/certainty-match/metadata.js +0 -10
- package/dist/recipes/change-meaning/metadata.d.ts +0 -8
- package/dist/recipes/change-meaning/metadata.js +0 -10
- package/dist/recipes/citation-match/metadata.d.ts +0 -9
- package/dist/recipes/citation-match/metadata.js +0 -12
- package/dist/recipes/citation-needed/metadata.d.ts +0 -8
- package/dist/recipes/citation-needed/metadata.js +0 -10
- package/dist/recipes/clarify/metadata.d.ts +0 -8
- package/dist/recipes/clarify/metadata.js +0 -11
- package/dist/recipes/confirmation-match/metadata.d.ts +0 -8
- package/dist/recipes/confirmation-match/metadata.js +0 -10
- package/dist/recipes/context-role/metadata.d.ts +0 -8
- package/dist/recipes/context-role/metadata.js +0 -10
- package/dist/recipes/correction-target/metadata.d.ts +0 -8
- package/dist/recipes/correction-target/metadata.js +0 -11
- package/dist/recipes/document-role/metadata.d.ts +0 -8
- package/dist/recipes/document-role/metadata.js +0 -10
- package/dist/recipes/draft-compare/metadata.d.ts +0 -8
- package/dist/recipes/draft-compare/metadata.js +0 -10
- package/dist/recipes/evidence-conflict/metadata.d.ts +0 -8
- package/dist/recipes/evidence-conflict/metadata.js +0 -10
- package/dist/recipes/evidence-novelty/metadata.d.ts +0 -8
- package/dist/recipes/evidence-novelty/metadata.js +0 -11
- package/dist/recipes/fact-stability/metadata.d.ts +0 -8
- package/dist/recipes/fact-stability/metadata.js +0 -10
- package/dist/recipes/failure-kind/metadata.d.ts +0 -8
- package/dist/recipes/failure-kind/metadata.js +0 -11
- package/dist/recipes/feedback-kind/metadata.d.ts +0 -8
- package/dist/recipes/feedback-kind/metadata.js +0 -10
- package/dist/recipes/field-select/metadata.d.ts +0 -8
- package/dist/recipes/field-select/metadata.js +0 -11
- package/dist/recipes/followup-link/metadata.d.ts +0 -8
- package/dist/recipes/followup-link/metadata.js +0 -11
- package/dist/recipes/freshness-needed/metadata.d.ts +0 -8
- package/dist/recipes/freshness-needed/metadata.js +0 -10
- package/dist/recipes/frustration-signal/metadata.d.ts +0 -8
- package/dist/recipes/frustration-signal/metadata.js +0 -10
- package/dist/recipes/handoff/metadata.d.ts +0 -8
- package/dist/recipes/handoff/metadata.js +0 -11
- package/dist/recipes/incident-match/metadata.d.ts +0 -8
- package/dist/recipes/incident-match/metadata.js +0 -11
- package/dist/recipes/instruction-fit/metadata.d.ts +0 -8
- package/dist/recipes/instruction-fit/metadata.js +0 -10
- package/dist/recipes/intent-change/metadata.d.ts +0 -8
- package/dist/recipes/intent-change/metadata.js +0 -10
- package/dist/recipes/issue-impact/metadata.d.ts +0 -8
- package/dist/recipes/issue-impact/metadata.js +0 -10
- package/dist/recipes/memory-relation/metadata.d.ts +0 -8
- package/dist/recipes/memory-relation/metadata.js +0 -10
- package/dist/recipes/memory-scope/metadata.d.ts +0 -8
- package/dist/recipes/memory-scope/metadata.js +0 -10
- package/dist/recipes/memory-value/metadata.d.ts +0 -8
- package/dist/recipes/memory-value/metadata.js +0 -10
- package/dist/recipes/passage-duplicate/metadata.d.ts +0 -8
- package/dist/recipes/passage-duplicate/metadata.js +0 -10
- package/dist/recipes/preference-kind/metadata.d.ts +0 -8
- package/dist/recipes/preference-kind/metadata.js +0 -10
- package/dist/recipes/promise-check/metadata.d.ts +0 -8
- package/dist/recipes/promise-check/metadata.js +0 -10
- package/dist/recipes/query-equivalence/metadata.d.ts +0 -8
- package/dist/recipes/query-equivalence/metadata.js +0 -10
- package/dist/recipes/query-specificity/metadata.d.ts +0 -8
- package/dist/recipes/query-specificity/metadata.js +0 -10
- package/dist/recipes/reference-resolve/metadata.d.ts +0 -8
- package/dist/recipes/reference-resolve/metadata.js +0 -11
- package/dist/recipes/repeated-attempt/metadata.d.ts +0 -8
- package/dist/recipes/repeated-attempt/metadata.js +0 -10
- package/dist/recipes/reply-template-match/metadata.d.ts +0 -8
- package/dist/recipes/reply-template-match/metadata.js +0 -11
- package/dist/recipes/rerank/metadata.d.ts +0 -8
- package/dist/recipes/rerank/metadata.js +0 -11
- package/dist/recipes/resolution-check/metadata.d.ts +0 -8
- package/dist/recipes/resolution-check/metadata.js +0 -10
- package/dist/recipes/response-needed/metadata.d.ts +0 -8
- package/dist/recipes/response-needed/metadata.js +0 -10
- package/dist/recipes/result-outcome/metadata.d.ts +0 -8
- package/dist/recipes/result-outcome/metadata.js +0 -10
- package/dist/recipes/result-usefulness/metadata.d.ts +0 -8
- package/dist/recipes/result-usefulness/metadata.js +0 -10
- package/dist/recipes/retrieval-needed/metadata.d.ts +0 -8
- package/dist/recipes/retrieval-needed/metadata.js +0 -10
- package/dist/recipes/route/metadata.d.ts +0 -8
- package/dist/recipes/route/metadata.js +0 -11
- package/dist/recipes/source-applicability/metadata.d.ts +0 -8
- package/dist/recipes/source-applicability/metadata.js +0 -10
- package/dist/recipes/step-complete/metadata.d.ts +0 -8
- package/dist/recipes/step-complete/metadata.js +0 -10
- package/dist/recipes/step-progress/metadata.d.ts +0 -8
- package/dist/recipes/step-progress/metadata.js +0 -10
- package/dist/recipes/summary-coverage/metadata.d.ts +0 -8
- package/dist/recipes/summary-coverage/metadata.js +0 -11
- package/dist/recipes/ticket-match/metadata.d.ts +0 -8
- package/dist/recipes/ticket-match/metadata.js +0 -10
- package/dist/recipes/tone-check/metadata.d.ts +0 -8
- package/dist/recipes/tone-check/metadata.js +0 -11
- package/dist/recipes/tool-fit/metadata.d.ts +0 -8
- package/dist/recipes/tool-fit/metadata.js +0 -10
- package/dist/recipes/topic-shift/metadata.d.ts +0 -8
- package/dist/recipes/topic-shift/metadata.js +0 -10
- package/dist/recipes/troubleshooting-fit/metadata.d.ts +0 -8
- package/dist/recipes/troubleshooting-fit/metadata.js +0 -10
- package/dist/recipes/turn-intent/metadata.d.ts +0 -8
- package/dist/recipes/turn-intent/metadata.js +0 -10
- package/dist/recipes/urgency-signal/metadata.d.ts +0 -8
- package/dist/recipes/urgency-signal/metadata.js +0 -10
- package/dist/recipes/verify/metadata.d.ts +0 -8
- package/dist/recipes/verify/metadata.js +0 -11
- package/dist/recipes/workaround-fit/metadata.d.ts +0 -8
- package/dist/recipes/workaround-fit/metadata.js +0 -10
- package/examples/support/README.md +0 -60
- package/examples/support/demo.json +0 -156
- package/recipes/README.md +0 -128
- package/recipes/action-scope/README.md +0 -49
- package/recipes/answer-consistency/README.md +0 -50
- package/recipes/answer-coverage/README.md +0 -60
- package/recipes/answer-invalidation/README.md +0 -50
- package/recipes/answer-relevance/README.md +0 -49
- package/recipes/answerability/README.md +0 -54
- package/recipes/argument-fit/README.md +0 -51
- package/recipes/attempted-step/README.md +0 -48
- package/recipes/audience-fit/README.md +0 -50
- package/recipes/cache-match/README.md +0 -51
- package/recipes/cancellation-check/README.md +0 -50
- package/recipes/certainty-match/README.md +0 -49
- package/recipes/change-meaning/README.md +0 -49
- package/recipes/citation-match/README.md +0 -51
- package/recipes/citation-needed/README.md +0 -49
- package/recipes/clarify/README.md +0 -61
- package/recipes/confirmation-match/README.md +0 -49
- package/recipes/context-role/README.md +0 -49
- package/recipes/correction-target/README.md +0 -52
- package/recipes/document-role/README.md +0 -51
- package/recipes/draft-compare/README.md +0 -54
- package/recipes/evidence-conflict/README.md +0 -51
- package/recipes/evidence-novelty/README.md +0 -56
- package/recipes/fact-stability/README.md +0 -47
- package/recipes/failure-kind/README.md +0 -52
- package/recipes/feedback-kind/README.md +0 -51
- package/recipes/field-select/README.md +0 -53
- package/recipes/followup-link/README.md +0 -52
- package/recipes/freshness-needed/README.md +0 -46
- package/recipes/frustration-signal/README.md +0 -47
- package/recipes/handoff/README.md +0 -56
- package/recipes/incident-match/README.md +0 -52
- package/recipes/instruction-fit/README.md +0 -49
- package/recipes/intent-change/README.md +0 -50
- package/recipes/issue-impact/README.md +0 -48
- package/recipes/memory-relation/README.md +0 -52
- package/recipes/memory-scope/README.md +0 -50
- package/recipes/memory-value/README.md +0 -50
- package/recipes/passage-duplicate/README.md +0 -49
- package/recipes/preference-kind/README.md +0 -48
- package/recipes/promise-check/README.md +0 -48
- package/recipes/query-equivalence/README.md +0 -50
- package/recipes/query-specificity/README.md +0 -47
- package/recipes/reference-resolve/README.md +0 -54
- package/recipes/repeated-attempt/README.md +0 -50
- package/recipes/reply-template-match/README.md +0 -52
- package/recipes/rerank/README.md +0 -55
- package/recipes/resolution-check/README.md +0 -49
- package/recipes/response-needed/README.md +0 -48
- package/recipes/result-outcome/README.md +0 -49
- package/recipes/result-usefulness/README.md +0 -49
- package/recipes/retrieval-needed/README.md +0 -48
- package/recipes/route/README.md +0 -47
- package/recipes/source-applicability/README.md +0 -48
- package/recipes/step-complete/README.md +0 -48
- package/recipes/step-progress/README.md +0 -51
- package/recipes/summary-coverage/README.md +0 -60
- package/recipes/ticket-match/README.md +0 -50
- package/recipes/tone-check/README.md +0 -55
- package/recipes/tool-fit/README.md +0 -49
- package/recipes/topic-shift/README.md +0 -50
- package/recipes/troubleshooting-fit/README.md +0 -49
- package/recipes/turn-intent/README.md +0 -52
- package/recipes/urgency-signal/README.md +0 -47
- package/recipes/verify/README.md +0 -54
- package/recipes/workaround-fit/README.md +0 -50
- /package/{recipes → dist/recipes}/action-scope/demo.json +0 -0
- /package/{recipes → dist/recipes}/answer-consistency/demo.json +0 -0
- /package/{recipes → dist/recipes}/answer-coverage/demo.json +0 -0
- /package/{recipes → dist/recipes}/answer-invalidation/demo.json +0 -0
- /package/{recipes → dist/recipes}/answer-relevance/demo.json +0 -0
- /package/{recipes → dist/recipes}/answerability/demo.json +0 -0
- /package/{recipes → dist/recipes}/argument-fit/demo.json +0 -0
- /package/{recipes → dist/recipes}/attempted-step/demo.json +0 -0
- /package/{recipes → dist/recipes}/audience-fit/demo.json +0 -0
- /package/{recipes → dist/recipes}/cache-match/demo.json +0 -0
- /package/{recipes → dist/recipes}/cancellation-check/demo.json +0 -0
- /package/{recipes → dist/recipes}/certainty-match/demo.json +0 -0
- /package/{recipes → dist/recipes}/change-meaning/demo.json +0 -0
- /package/{recipes → dist/recipes}/citation-match/demo.json +0 -0
- /package/{recipes → dist/recipes}/citation-needed/demo.json +0 -0
- /package/{recipes → dist/recipes}/clarify/demo.json +0 -0
- /package/{recipes → dist/recipes}/confirmation-match/demo.json +0 -0
- /package/{recipes → dist/recipes}/context-role/demo.json +0 -0
- /package/{recipes → dist/recipes}/correction-target/demo.json +0 -0
- /package/{recipes → dist/recipes}/document-role/demo.json +0 -0
- /package/{recipes → dist/recipes}/draft-compare/demo.json +0 -0
- /package/{recipes → dist/recipes}/evidence-conflict/demo.json +0 -0
- /package/{recipes → dist/recipes}/evidence-novelty/demo.json +0 -0
- /package/{recipes → dist/recipes}/fact-stability/demo.json +0 -0
- /package/{recipes → dist/recipes}/failure-kind/demo.json +0 -0
- /package/{recipes → dist/recipes}/feedback-kind/demo.json +0 -0
- /package/{recipes → dist/recipes}/field-select/demo.json +0 -0
- /package/{recipes → dist/recipes}/followup-link/demo.json +0 -0
- /package/{recipes → dist/recipes}/freshness-needed/demo.json +0 -0
- /package/{recipes → dist/recipes}/frustration-signal/demo.json +0 -0
- /package/{recipes → dist/recipes}/handoff/demo.json +0 -0
- /package/{recipes → dist/recipes}/incident-match/demo.json +0 -0
- /package/{recipes → dist/recipes}/instruction-fit/demo.json +0 -0
- /package/{recipes → dist/recipes}/intent-change/demo.json +0 -0
- /package/{recipes → dist/recipes}/issue-impact/demo.json +0 -0
- /package/{recipes → dist/recipes}/memory-relation/demo.json +0 -0
- /package/{recipes → dist/recipes}/memory-scope/demo.json +0 -0
- /package/{recipes → dist/recipes}/memory-value/demo.json +0 -0
- /package/{recipes → dist/recipes}/passage-duplicate/demo.json +0 -0
- /package/{recipes → dist/recipes}/preference-kind/demo.json +0 -0
- /package/{recipes → dist/recipes}/promise-check/demo.json +0 -0
- /package/{recipes → dist/recipes}/query-equivalence/demo.json +0 -0
- /package/{recipes → dist/recipes}/query-specificity/demo.json +0 -0
- /package/{recipes → dist/recipes}/reference-resolve/demo.json +0 -0
- /package/{recipes → dist/recipes}/repeated-attempt/demo.json +0 -0
- /package/{recipes → dist/recipes}/reply-template-match/demo.json +0 -0
- /package/{recipes → dist/recipes}/rerank/demo.json +0 -0
- /package/{recipes → dist/recipes}/resolution-check/demo.json +0 -0
- /package/{recipes → dist/recipes}/response-needed/demo.json +0 -0
- /package/{recipes → dist/recipes}/result-outcome/demo.json +0 -0
- /package/{recipes → dist/recipes}/result-usefulness/demo.json +0 -0
- /package/{recipes → dist/recipes}/retrieval-needed/demo.json +0 -0
- /package/{recipes → dist/recipes}/route/demo.json +0 -0
- /package/{recipes → dist/recipes}/source-applicability/demo.json +0 -0
- /package/{recipes → dist/recipes}/step-complete/demo.json +0 -0
- /package/{recipes → dist/recipes}/step-progress/demo.json +0 -0
- /package/{recipes → dist/recipes}/summary-coverage/demo.json +0 -0
- /package/{recipes → dist/recipes}/ticket-match/demo.json +0 -0
- /package/{recipes → dist/recipes}/tone-check/demo.json +0 -0
- /package/{recipes → dist/recipes}/tool-fit/demo.json +0 -0
- /package/{recipes → dist/recipes}/topic-shift/demo.json +0 -0
- /package/{recipes → dist/recipes}/troubleshooting-fit/demo.json +0 -0
- /package/{recipes → dist/recipes}/turn-intent/demo.json +0 -0
- /package/{recipes → dist/recipes}/urgency-signal/demo.json +0 -0
- /package/{recipes → dist/recipes}/verify/demo.json +0 -0
- /package/{recipes → dist/recipes}/workaround-fit/demo.json +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Assess a text revision
|
|
2
|
-
|
|
3
|
-
Does the revision from before to after change material meaning, conditions, or obligations? Rephrasing that preserves the same meaning is editorial only.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { changeMeaning } from 'jev-recipes/change-meaning';
|
|
7
|
-
|
|
8
|
-
const result = await changeMeaning({
|
|
9
|
-
before: 'Guests may export reports.',
|
|
10
|
-
after: 'Only workspace owners may export reports.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `before` | Non-empty text |
|
|
21
|
-
| `after` | Non-empty text |
|
|
22
|
-
| `context` | Optional non-empty text |
|
|
23
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
24
|
-
|
|
25
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
26
|
-
|
|
27
|
-
## Result
|
|
28
|
-
|
|
29
|
-
| Verdict | Meaning |
|
|
30
|
-
| ----------------- | ----------------------------------------------------------------------------------------------------- |
|
|
31
|
-
| `meaning_changed` | The revision changes a material fact, condition, instruction, or implication. |
|
|
32
|
-
| `editorial_only` | The revision preserves material meaning and changes only wording or presentation, or makes no change. |
|
|
33
|
-
| `unclear` | The material effect cannot be determined from the supplied text. |
|
|
34
|
-
|
|
35
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
36
|
-
|
|
37
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
38
|
-
|
|
39
|
-
## Reuse and calls
|
|
40
|
-
|
|
41
|
-
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
42
|
-
|
|
43
|
-
## Limits
|
|
44
|
-
|
|
45
|
-
Compares supplied passages. It does not parse a repository diff or perform exact numeric and date comparisons.
|
|
46
|
-
|
|
47
|
-
## Example input
|
|
48
|
-
|
|
49
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo change-meaning` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe change-meaning` shows the input and result schemas.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Match claims to citations
|
|
2
|
-
|
|
3
|
-
Find passages that support a supplied claim. Each passage is checked independently against the entire claim.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { citationMatch } from 'jev-recipes/citation-match';
|
|
7
|
-
|
|
8
|
-
const result = await citationMatch({
|
|
9
|
-
claim: 'Reset links expire after 30 minutes.',
|
|
10
|
-
passages: [
|
|
11
|
-
{
|
|
12
|
-
id: 'reset',
|
|
13
|
-
text: 'Password reset links expire after 30 minutes.',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 'billing',
|
|
17
|
-
text: 'Invoices are available on the Billing page.',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
console.log(result.status, result.passageIds);
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Input
|
|
26
|
-
|
|
27
|
-
| Field | Accepts |
|
|
28
|
-
| --------------- | -------------------------------------------- |
|
|
29
|
-
| `claim` | Non-empty text |
|
|
30
|
-
| `passages` | 1 to 50 `{ id, text }` items with unique IDs |
|
|
31
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
32
|
-
|
|
33
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
34
|
-
|
|
35
|
-
## Result
|
|
36
|
-
|
|
37
|
-
`passageIds` contains every passage that independently supports the entire claim at or above the confidence threshold. `checks` preserves the verification result for each passage. If any passage qualifies, overall status is `ready`, even if other checks need review. With no qualifying passage, uncertainty produces `review`; otherwise a confident no-match returns `ready` with an empty list.
|
|
38
|
-
|
|
39
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
40
|
-
|
|
41
|
-
## Reuse and calls
|
|
42
|
-
|
|
43
|
-
Uses the public [`verify`](../verify/README.md) recipe once, with one claim/evidence pair per passage. It adds selection of confidently supported passage IDs. A live invocation makes one logical Jev request; SDK retries can add transport attempts. All item questions are sent in that request.
|
|
44
|
-
|
|
45
|
-
## Limits
|
|
46
|
-
|
|
47
|
-
Returns passages that independently support the entire claim. Joint support across several individually incomplete passages is not assessed.
|
|
48
|
-
|
|
49
|
-
## Example input
|
|
50
|
-
|
|
51
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo citation-match` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe citation-match` shows the input and result schemas.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Check citation requirements
|
|
2
|
-
|
|
3
|
-
Do citationRules require evidence for statement? Apply the supplied rules rather than an unstated citation policy.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { citationNeeded } from 'jev-recipes/citation-needed';
|
|
7
|
-
|
|
8
|
-
const result = await citationNeeded({
|
|
9
|
-
statement: 'Reset links expire after 30 minutes.',
|
|
10
|
-
citationRules:
|
|
11
|
-
'Cite documentation for claims about product behavior. Greetings need no citations.',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
console.log(result.status, result.verdict);
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Input
|
|
18
|
-
|
|
19
|
-
| Field | Accepts |
|
|
20
|
-
| --------------- | -------------------------------------------- |
|
|
21
|
-
| `statement` | Non-empty text |
|
|
22
|
-
| `citationRules` | Non-empty text |
|
|
23
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
24
|
-
|
|
25
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
26
|
-
|
|
27
|
-
## Result
|
|
28
|
-
|
|
29
|
-
| Verdict | Meaning |
|
|
30
|
-
| ------------- | ------------------------------------------------------------------------------------------------ |
|
|
31
|
-
| `needed` | The statement falls within a category requiring citation under the supplied rules. |
|
|
32
|
-
| `unnecessary` | The supplied rules explicitly exempt this statement or clearly do not require a citation for it. |
|
|
33
|
-
| `unclear` | The rules or statement do not establish whether a citation is required. |
|
|
34
|
-
|
|
35
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
36
|
-
|
|
37
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
38
|
-
|
|
39
|
-
## Reuse and calls
|
|
40
|
-
|
|
41
|
-
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
42
|
-
|
|
43
|
-
## Limits
|
|
44
|
-
|
|
45
|
-
Assesses a supplied citation policy; does not find sources or determine whether a statement is true.
|
|
46
|
-
|
|
47
|
-
## Example input
|
|
48
|
-
|
|
49
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo citation-needed` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe citation-needed` shows the input and result schemas.
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Check required information
|
|
2
|
-
|
|
3
|
-
Identify which supplied requirements are present, missing, or ambiguous in a request and its context.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { clarify } from 'jev-recipes/clarify';
|
|
7
|
-
|
|
8
|
-
const result = await clarify({
|
|
9
|
-
request: 'Please cancel it.',
|
|
10
|
-
context: 'The customer has a storage subscription and a pending hardware order.',
|
|
11
|
-
requirements: [
|
|
12
|
-
{
|
|
13
|
-
id: 'target',
|
|
14
|
-
description: 'Which product or order should be changed',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: 'action',
|
|
18
|
-
description: 'What change the customer wants',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
console.log(result.canProceed);
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Input
|
|
27
|
-
|
|
28
|
-
| Field | Accepts |
|
|
29
|
-
| --------------- | ---------------------------------------------------------------------------------------- |
|
|
30
|
-
| `request` | Non-empty text containing the request |
|
|
31
|
-
| `context` | Optional non-empty conversation context or application facts |
|
|
32
|
-
| `requirements` | 1 to 50 `{ id, description }` items with unique non-empty IDs and non-empty descriptions |
|
|
33
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
34
|
-
|
|
35
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors. Types are inferred from this folder's Zod 4 schemas.
|
|
36
|
-
|
|
37
|
-
## Result
|
|
38
|
-
|
|
39
|
-
| Verdict | Meaning |
|
|
40
|
-
| ----------- | --------------------------------------------------------------------------- |
|
|
41
|
-
| `present` | The required information is explicit or unambiguously implied. |
|
|
42
|
-
| `missing` | The required information is absent. |
|
|
43
|
-
| `ambiguous` | Relevant information has multiple plausible meanings or conflicting values. |
|
|
44
|
-
|
|
45
|
-
`checks` preserves each requirement ID with its verdict, status, confidence, and probabilities. A check is ready when its confidence reaches `minConfidence`. Overall `status` is `review` if any check falls below the threshold.
|
|
46
|
-
|
|
47
|
-
`canProceed` is true only when every check is ready and present. `missing` and `ambiguous` contain confidently classified requirement IDs. A confident ambiguity assessment can be ready while `canProceed` remains false. Low-confidence checks also block proceeding, even if both ID lists are empty.
|
|
48
|
-
|
|
49
|
-
The result includes model and token usage. Inspect the outcome as well as its review status.
|
|
50
|
-
|
|
51
|
-
## Reuse and calls
|
|
52
|
-
|
|
53
|
-
Uses the shared item-check helper. This folder owns the requirement criteria, follow-up ID lists, and can-proceed decision. All requirement questions are sent in one request. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
54
|
-
|
|
55
|
-
## Limits
|
|
56
|
-
|
|
57
|
-
Your application supplies the requirements and maps their IDs to follow-up questions. The recipe does not discover requirements, generate questions, validate identity, or enforce exact field formats.
|
|
58
|
-
|
|
59
|
-
## Example input
|
|
60
|
-
|
|
61
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo clarify` shows an offline illustration, not an accuracy measurement. Use `npx jev-recipes describe clarify` to inspect the input and result schemas.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Interpret a confirmation
|
|
2
|
-
|
|
3
|
-
Does response clearly agree to or reject this exact proposal? Do not treat politeness, acknowledgment, a question, or agreement to only part of the proposal as full agreement.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { confirmationMatch } from 'jev-recipes/confirmation-match';
|
|
7
|
-
|
|
8
|
-
const result = await confirmationMatch({
|
|
9
|
-
proposal: 'Cancel the storage subscription now.',
|
|
10
|
-
response: 'How much would I save?',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `proposal` | Non-empty text |
|
|
21
|
-
| `response` | Non-empty text |
|
|
22
|
-
| `context` | Optional non-empty text |
|
|
23
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
24
|
-
|
|
25
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
26
|
-
|
|
27
|
-
## Result
|
|
28
|
-
|
|
29
|
-
| Verdict | Meaning |
|
|
30
|
-
| --------- | -------------------------------------------------------------------------------------- |
|
|
31
|
-
| `agrees` | The response clearly agrees to this complete proposal. |
|
|
32
|
-
| `rejects` | The response clearly rejects this proposal. |
|
|
33
|
-
| `unclear` | The response is conditional, partial, ambiguous, unrelated, or only an acknowledgment. |
|
|
34
|
-
|
|
35
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
36
|
-
|
|
37
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
38
|
-
|
|
39
|
-
## Reuse and calls
|
|
40
|
-
|
|
41
|
-
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
42
|
-
|
|
43
|
-
## Limits
|
|
44
|
-
|
|
45
|
-
Interprets language only. Approval identity, authority, scope, expiration, and action permissions remain application checks.
|
|
46
|
-
|
|
47
|
-
## Example input
|
|
48
|
-
|
|
49
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo confirmation-match` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe confirmation-match` shows the input and result schemas.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Identify a passage role
|
|
2
|
-
|
|
3
|
-
What role does passage play in answering question? Classify its contribution without establishing whether its claims are true.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { contextRole } from 'jev-recipes/context-role';
|
|
7
|
-
|
|
8
|
-
const result = await contextRole({
|
|
9
|
-
question: 'How do I reset my password?',
|
|
10
|
-
passage: 'Passwords help protect access to accounts.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `question` | Non-empty text |
|
|
21
|
-
| `passage` | Non-empty text |
|
|
22
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
23
|
-
|
|
24
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
25
|
-
|
|
26
|
-
## Result
|
|
27
|
-
|
|
28
|
-
| Verdict | Meaning |
|
|
29
|
-
| ----------------- | -------------------------------------------------------------------------------- |
|
|
30
|
-
| `direct_evidence` | The passage directly supplies information needed to answer the question. |
|
|
31
|
-
| `background` | The passage helps interpret the topic but does not directly answer the question. |
|
|
32
|
-
| `unrelated` | The passage contributes neither an answer nor useful background. |
|
|
33
|
-
| `unclear` | Its relationship to the question cannot be established. |
|
|
34
|
-
|
|
35
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
36
|
-
|
|
37
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
38
|
-
|
|
39
|
-
## Reuse and calls
|
|
40
|
-
|
|
41
|
-
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
42
|
-
|
|
43
|
-
## Limits
|
|
44
|
-
|
|
45
|
-
Classifies a passage contribution. It does not rank sources or prove the answer is supported.
|
|
46
|
-
|
|
47
|
-
## Example input
|
|
48
|
-
|
|
49
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo context-role` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe context-role` shows the input and result schemas.
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Locate a correction target
|
|
2
|
-
|
|
3
|
-
Which supplied field or statement is message correcting? Identify the target, not the replacement value. Use ambiguous when the message corrects multiple targets without a single primary target.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { correctionTarget } from 'jev-recipes/correction-target';
|
|
7
|
-
|
|
8
|
-
const result = await correctionTarget({
|
|
9
|
-
message: 'The billing email is finance@example.com, not support@example.com.',
|
|
10
|
-
targets: [
|
|
11
|
-
{
|
|
12
|
-
id: 'billing-email',
|
|
13
|
-
text: 'Billing email: support@example.com',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 'shipping-city',
|
|
17
|
-
text: 'Shipping city: Portland',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
console.log(result.status, result.selection);
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Input
|
|
26
|
-
|
|
27
|
-
| Field | Accepts |
|
|
28
|
-
| --------------- | -------------------------------------------- |
|
|
29
|
-
| `message` | Non-empty text |
|
|
30
|
-
| `targets` | 1 to 50 `{ id, text }` items with unique IDs |
|
|
31
|
-
| `context` | Optional non-empty text |
|
|
32
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
33
|
-
|
|
34
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
35
|
-
|
|
36
|
-
## Result
|
|
37
|
-
|
|
38
|
-
`verdict` is `matched`, `none`, or `ambiguous`. A confident match returns the original item ID in `selection`. A low-confidence match keeps that ID only in `suggestedSelection`. `none` returns a null selection and can be `ready`; `ambiguous` always requires review. Probabilities are grouped under `candidates` by your original IDs, plus `none` and `ambiguous`.
|
|
39
|
-
|
|
40
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
41
|
-
|
|
42
|
-
## Reuse and calls
|
|
43
|
-
|
|
44
|
-
Uses the shared candidate-selection helper. This folder owns its selection question and input schema. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
45
|
-
|
|
46
|
-
## Limits
|
|
47
|
-
|
|
48
|
-
Selects one correction target. It does not extract a replacement value or update a record.
|
|
49
|
-
|
|
50
|
-
## Example input
|
|
51
|
-
|
|
52
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo correction-target` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe correction-target` shows the input and result schemas.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Identify document purpose
|
|
2
|
-
|
|
3
|
-
What is the primary purpose of document? Judge the actual content rather than a title alone. Choose unclear if several purposes are equally central.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { documentRole } from 'jev-recipes/document-role';
|
|
7
|
-
|
|
8
|
-
const result = await documentRole({
|
|
9
|
-
document:
|
|
10
|
-
'New in this release: workspace exports now include archived reports. Fixed an invoice download error.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `document` | Non-empty text |
|
|
21
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
22
|
-
|
|
23
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
24
|
-
|
|
25
|
-
## Result
|
|
26
|
-
|
|
27
|
-
| Verdict | Meaning |
|
|
28
|
-
| ----------------- | -------------------------------------------------------------- |
|
|
29
|
-
| `policy` | Defines rules, permissions, requirements, or allowed behavior. |
|
|
30
|
-
| `tutorial` | Teaches a task through a guided sequence. |
|
|
31
|
-
| `reference` | Describes interfaces, features, or facts for lookup. |
|
|
32
|
-
| `troubleshooting` | Helps diagnose or resolve a described problem. |
|
|
33
|
-
| `release_note` | Describes changes in a release or update. |
|
|
34
|
-
| `other` | Has a clear purpose outside the listed roles. |
|
|
35
|
-
| `unclear` | The primary role cannot be established. |
|
|
36
|
-
|
|
37
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
38
|
-
|
|
39
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
40
|
-
|
|
41
|
-
## Reuse and calls
|
|
42
|
-
|
|
43
|
-
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
44
|
-
|
|
45
|
-
## Limits
|
|
46
|
-
|
|
47
|
-
Returns one primary role from the supplied text. It does not read files, split mixed documents, or create an index.
|
|
48
|
-
|
|
49
|
-
## Example input
|
|
50
|
-
|
|
51
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo document-role` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe document-role` shows the input and result schemas.
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Compare two drafts
|
|
2
|
-
|
|
3
|
-
Which draft better satisfies request under rubric? Evaluate only the supplied criteria. Treat presentation order as irrelevant and allow a tie or neither.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { draftCompare } from 'jev-recipes/draft-compare';
|
|
7
|
-
|
|
8
|
-
const result = await draftCompare({
|
|
9
|
-
request: 'Explain how to reset a password.',
|
|
10
|
-
firstDraft: 'Select Forgot password on the sign-in page.',
|
|
11
|
-
secondDraft: 'Contact billing to download an invoice.',
|
|
12
|
-
rubric: 'Prefer a direct answer to the requested task.',
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
console.log(result.status, result.verdict);
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Input
|
|
19
|
-
|
|
20
|
-
| Field | Accepts |
|
|
21
|
-
| --------------- | -------------------------------------------- |
|
|
22
|
-
| `request` | Non-empty text |
|
|
23
|
-
| `firstDraft` | Non-empty text |
|
|
24
|
-
| `secondDraft` | Non-empty text |
|
|
25
|
-
| `rubric` | Non-empty text |
|
|
26
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
27
|
-
|
|
28
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
29
|
-
|
|
30
|
-
## Result
|
|
31
|
-
|
|
32
|
-
| Verdict | Meaning |
|
|
33
|
-
| --------- | ----------------------------------------------------------------------------- |
|
|
34
|
-
| `first` | Only the first draft is suitable, or it clearly better satisfies the rubric. |
|
|
35
|
-
| `second` | Only the second draft is suitable, or it clearly better satisfies the rubric. |
|
|
36
|
-
| `tie` | Both drafts are suitable and neither is meaningfully better under the rubric. |
|
|
37
|
-
| `neither` | Neither draft satisfies the request and rubric. |
|
|
38
|
-
| `unclear` | There is insufficient information to make the comparison. |
|
|
39
|
-
|
|
40
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
41
|
-
|
|
42
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
43
|
-
|
|
44
|
-
## Reuse and calls
|
|
45
|
-
|
|
46
|
-
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
47
|
-
|
|
48
|
-
## Limits
|
|
49
|
-
|
|
50
|
-
Makes a relative judgment against your rubric. A preferred draft can still contain unsupported facts.
|
|
51
|
-
|
|
52
|
-
## Example input
|
|
53
|
-
|
|
54
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo draft-compare` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe draft-compare` shows the input and result schemas.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Compare evidence for conflicts
|
|
2
|
-
|
|
3
|
-
Do firstPassage and secondPassage give incompatible evidence relevant to question under the same conditions? Different scopes are not automatically contradictions.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { evidenceConflict } from 'jev-recipes/evidence-conflict';
|
|
7
|
-
|
|
8
|
-
const result = await evidenceConflict({
|
|
9
|
-
question: 'Can guests export reports?',
|
|
10
|
-
firstPassage: 'Guests can export reports.',
|
|
11
|
-
secondPassage: 'Guests cannot export reports.',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
console.log(result.status, result.verdict);
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Input
|
|
18
|
-
|
|
19
|
-
| Field | Accepts |
|
|
20
|
-
| --------------- | -------------------------------------------- |
|
|
21
|
-
| `firstPassage` | Non-empty text |
|
|
22
|
-
| `secondPassage` | Non-empty text |
|
|
23
|
-
| `question` | Non-empty text |
|
|
24
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
25
|
-
|
|
26
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
27
|
-
|
|
28
|
-
## Result
|
|
29
|
-
|
|
30
|
-
| Verdict | Meaning |
|
|
31
|
-
| ----------------- | ---------------------------------------------------------------------------------- |
|
|
32
|
-
| `compatible` | The passages address the same scope and can both be true. |
|
|
33
|
-
| `conflicting` | The passages address the same scope and make incompatible claims. |
|
|
34
|
-
| `different_scope` | The apparent comparison concerns different subjects, circumstances, or conditions. |
|
|
35
|
-
| `unclear` | The scope or meaning cannot be resolved from the supplied evidence. |
|
|
36
|
-
|
|
37
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
38
|
-
|
|
39
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
40
|
-
|
|
41
|
-
## Reuse and calls
|
|
42
|
-
|
|
43
|
-
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
44
|
-
|
|
45
|
-
## Limits
|
|
46
|
-
|
|
47
|
-
Does not decide which source is authoritative. Exact numbers, timestamps, and version ordering should be compared in code.
|
|
48
|
-
|
|
49
|
-
## Example input
|
|
50
|
-
|
|
51
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo evidence-conflict` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe evidence-conflict` shows the input and result schemas.
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# Check new evidence
|
|
2
|
-
|
|
3
|
-
Does passage add material information relevant to question beyond existingEvidence? New information may conflict with existing evidence; novelty alone is not correctness.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { evidenceNovelty } from 'jev-recipes/evidence-novelty';
|
|
7
|
-
|
|
8
|
-
const result = await evidenceNovelty({
|
|
9
|
-
question: 'How do I reset my password and when does the link expire?',
|
|
10
|
-
passage: 'Reset links expire after 30 minutes.',
|
|
11
|
-
existingEvidence: [
|
|
12
|
-
{
|
|
13
|
-
id: 'steps',
|
|
14
|
-
text: 'Select Forgot password to receive a reset link.',
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
console.log(result.status, result.verdict);
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Input
|
|
23
|
-
|
|
24
|
-
| Field | Accepts |
|
|
25
|
-
| ------------------ | -------------------------------------------- |
|
|
26
|
-
| `passage` | Non-empty text |
|
|
27
|
-
| `existingEvidence` | 1 to 50 `{ id, text }` items with unique IDs |
|
|
28
|
-
| `question` | Non-empty text |
|
|
29
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
30
|
-
|
|
31
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
32
|
-
|
|
33
|
-
## Result
|
|
34
|
-
|
|
35
|
-
| Verdict | Meaning |
|
|
36
|
-
| --------------------- | --------------------------------------------------------------------------------- |
|
|
37
|
-
| `adds_information` | The passage adds a material relevant fact or distinction not already represented. |
|
|
38
|
-
| `repeats_information` | It only repeats information already represented. |
|
|
39
|
-
| `irrelevant` | It contributes no information relevant to the question. |
|
|
40
|
-
| `unclear` | Its contribution cannot be determined from the supplied material. |
|
|
41
|
-
|
|
42
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
43
|
-
|
|
44
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
45
|
-
|
|
46
|
-
## Reuse and calls
|
|
47
|
-
|
|
48
|
-
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
49
|
-
|
|
50
|
-
## Limits
|
|
51
|
-
|
|
52
|
-
Assesses novelty within the supplied set. It does not establish correctness or decide when retrieval must stop.
|
|
53
|
-
|
|
54
|
-
## Example input
|
|
55
|
-
|
|
56
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo evidence-novelty` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe evidence-novelty` shows the input and result schemas.
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Assess fact stability
|
|
2
|
-
|
|
3
|
-
Is fact about an enduring or historical attribute, or a state that is expected to change? Classify the kind of information, not whether this particular fact is currently true.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { factStability } from 'jev-recipes/fact-stability';
|
|
7
|
-
|
|
8
|
-
const result = await factStability({
|
|
9
|
-
fact: 'The API is currently experiencing an outage.',
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
console.log(result.status, result.verdict);
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Input
|
|
16
|
-
|
|
17
|
-
| Field | Accepts |
|
|
18
|
-
| --------------- | -------------------------------------------- |
|
|
19
|
-
| `fact` | Non-empty text |
|
|
20
|
-
| `context` | Optional non-empty text |
|
|
21
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
22
|
-
|
|
23
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
24
|
-
|
|
25
|
-
## Result
|
|
26
|
-
|
|
27
|
-
| Verdict | Meaning |
|
|
28
|
-
| ------------ | -------------------------------------------------------------------------------------------------------------------- |
|
|
29
|
-
| `stable` | The fact describes a historical event, definition, or enduring attribute unlikely to change in the relevant context. |
|
|
30
|
-
| `changeable` | The fact describes a current state, preference, configuration, or other information that can change. |
|
|
31
|
-
| `unclear` | The kind or relevant timescale is not established. |
|
|
32
|
-
|
|
33
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
34
|
-
|
|
35
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
36
|
-
|
|
37
|
-
## Reuse and calls
|
|
38
|
-
|
|
39
|
-
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
40
|
-
|
|
41
|
-
## Limits
|
|
42
|
-
|
|
43
|
-
Does not establish truth, expiration times, or freshness. Refresh policies and timestamp comparisons belong in code.
|
|
44
|
-
|
|
45
|
-
## Example input
|
|
46
|
-
|
|
47
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo fact-stability` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe fact-stability` shows the input and result schemas.
|