jev-recipes 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/README.md +62 -89
- 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/clarify.json +64 -0
- package/dist/catalog/generated/details/confirmation-match.json +40 -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-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/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/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 +68 -0
- package/dist/catalog/generated/metadata.d.ts +2 -0
- package/dist/catalog/generated/metadata.js +1115 -0
- package/dist/catalog/generated/names.d.ts +1 -0
- package/dist/catalog/generated/names.js +69 -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 +51 -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 +151 -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/clarify/schema.d.ts +3 -3
- package/dist/recipes/document-role/schema.d.ts +6 -6
- package/dist/recipes/evidence-conflict/schema.d.ts +3 -3
- 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/passage-duplicate/schema.d.ts +3 -3
- package/dist/recipes/preference-kind/schema.d.ts +3 -3
- package/dist/recipes/promise-check/schema.d.ts +3 -3
- package/dist/recipes/query-equivalence/schema.d.ts +3 -3
- 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/ticket-match/schema.d.ts +3 -3
- package/dist/recipes/turn-intent/schema.d.ts +12 -12
- package/dist/src/index.d.ts +117 -117
- package/dist/src/index.js +51 -50
- package/dist/src/schema.d.ts +5 -0
- package/dist/src/schema.js +2 -0
- package/package.json +200 -191
- 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
|
-
# Check proposed action scope
|
|
2
|
-
|
|
3
|
-
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.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { actionScope } from 'jev-recipes/action-scope';
|
|
7
|
-
|
|
8
|
-
const result = await actionScope({
|
|
9
|
-
request: 'Explain why this deployment failed.',
|
|
10
|
-
proposedAction: 'Deploy a replacement release to production.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| ---------------- | -------------------------------------------- |
|
|
20
|
-
| `request` | Non-empty text |
|
|
21
|
-
| `proposedAction` | Non-empty text |
|
|
22
|
-
| `constraints` | 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
|
-
| `within_scope` | The action is explicitly requested or directly necessary under the stated constraints. |
|
|
32
|
-
| `additional_work` | The action introduces unrequested work, changes the requested outcome, or violates a stated scope constraint. |
|
|
33
|
-
| `unclear` | The scope relationship cannot be established from the request. |
|
|
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 semantic scope only. User authorization and access controls must be enforced by the application.
|
|
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 action-scope` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe action-scope` shows the input and result schemas.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Check answer consistency
|
|
2
|
-
|
|
3
|
-
Do firstStatement and secondStatement make compatible claims about the same subject and circumstances? Distinguish different conditions from a contradiction.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { answerConsistency } from 'jev-recipes/answer-consistency';
|
|
7
|
-
|
|
8
|
-
const result = await answerConsistency({
|
|
9
|
-
firstStatement: 'Guests can export reports.',
|
|
10
|
-
secondStatement: 'Guests cannot export reports.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| ----------------- | -------------------------------------------- |
|
|
20
|
-
| `firstStatement` | Non-empty text |
|
|
21
|
-
| `secondStatement` | 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
|
-
| `consistent` | Both statements concern the same subject and can hold under the supplied circumstances. |
|
|
32
|
-
| `conflicting` | The statements concern the same circumstances and make mutually incompatible claims. |
|
|
33
|
-
| `unrelated` | The statements concern different subjects or scopes that should not be compared. |
|
|
34
|
-
| `unclear` | The supplied circumstances do not resolve whether the statements conflict. |
|
|
35
|
-
|
|
36
|
-
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.
|
|
37
|
-
|
|
38
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
39
|
-
|
|
40
|
-
## Reuse and calls
|
|
41
|
-
|
|
42
|
-
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.
|
|
43
|
-
|
|
44
|
-
## Limits
|
|
45
|
-
|
|
46
|
-
Checks semantic consistency between two statements. Exact numeric and date comparisons belong in code.
|
|
47
|
-
|
|
48
|
-
## Example input
|
|
49
|
-
|
|
50
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo answer-consistency` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe answer-consistency` shows the input and result schemas.
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Check answer coverage
|
|
2
|
-
|
|
3
|
-
Check whether a draft answers each supplied question.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { answerCoverage } from 'jev-recipes/answer-coverage';
|
|
7
|
-
|
|
8
|
-
const result = await answerCoverage({
|
|
9
|
-
draft: 'Select Forgot password on the sign-in page.',
|
|
10
|
-
questions: [
|
|
11
|
-
{
|
|
12
|
-
id: 'reset',
|
|
13
|
-
text: 'How do I reset my password?',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 'expiry',
|
|
17
|
-
text: 'When does the link expire?',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
console.log(result.status, result.checks);
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Input
|
|
26
|
-
|
|
27
|
-
| Field | Accepts |
|
|
28
|
-
| --------------- | -------------------------------------------- |
|
|
29
|
-
| `draft` | Non-empty text |
|
|
30
|
-
| `questions` | 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
|
-
`checks` contains the original ID, verdict, status, confidence, and probabilities for each item. `allAnswered` is true only when every check is ready and has verdict `answered`. Any uncertain check makes overall status `review`.
|
|
38
|
-
|
|
39
|
-
| Verdict | Meaning |
|
|
40
|
-
| ---------- | -------------------------------------------------------- |
|
|
41
|
-
| `answered` | Every material part of this question is answered. |
|
|
42
|
-
| `partial` | Some material parts are answered but others are missing. |
|
|
43
|
-
| `missing` | No substantive answer to this question appears. |
|
|
44
|
-
| `unclear` | The wording prevents a reliable coverage decision. |
|
|
45
|
-
|
|
46
|
-
`unclear` always requires review, even at high confidence. Other verdicts can be ready, including negative assessments.
|
|
47
|
-
|
|
48
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
49
|
-
|
|
50
|
-
## Reuse and calls
|
|
51
|
-
|
|
52
|
-
Uses the shared item-check helper. This folder owns its question, verdict criteria, and aggregate decision. A live invocation makes one logical Jev request; SDK retries can add transport attempts. All item questions are sent in that request.
|
|
53
|
-
|
|
54
|
-
## Limits
|
|
55
|
-
|
|
56
|
-
Checks supplied question IDs only. It does not extract questions or verify the draft against sources.
|
|
57
|
-
|
|
58
|
-
## Example input
|
|
59
|
-
|
|
60
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo answer-coverage` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe answer-coverage` shows the input and result schemas.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Check an answer after a source change
|
|
2
|
-
|
|
3
|
-
Does updatedEvidence still support the entire claim that was based on previousEvidence? Removing necessary support can invalidate the claim even without an explicit contradiction. Do not assume the claim was supported before.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { answerInvalidation } from 'jev-recipes/answer-invalidation';
|
|
7
|
-
|
|
8
|
-
const result = await answerInvalidation({
|
|
9
|
-
claim: 'Guests can export reports.',
|
|
10
|
-
previousEvidence: 'Guests can export reports.',
|
|
11
|
-
updatedEvidence: 'Exporting reports is restricted to workspace owners. Guests cannot export.',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
console.log(result.status, result.verdict);
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Input
|
|
18
|
-
|
|
19
|
-
| Field | Accepts |
|
|
20
|
-
| ------------------ | -------------------------------------------- |
|
|
21
|
-
| `claim` | Non-empty text |
|
|
22
|
-
| `previousEvidence` | Non-empty text |
|
|
23
|
-
| `updatedEvidence` | 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
|
-
| `still_supported` | The updated evidence supports the entire claim. |
|
|
33
|
-
| `invalidated` | The previous evidence supported the claim, but the updated evidence contradicts it or removes required support. |
|
|
34
|
-
| `unclear` | Previous support or the effect of the new evidence cannot be established. |
|
|
35
|
-
|
|
36
|
-
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.
|
|
37
|
-
|
|
38
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
39
|
-
|
|
40
|
-
## Reuse and calls
|
|
41
|
-
|
|
42
|
-
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.
|
|
43
|
-
|
|
44
|
-
## Limits
|
|
45
|
-
|
|
46
|
-
Assesses one supplied claim and source revision. It does not monitor changes, compare release dates, or invalidate a cache automatically.
|
|
47
|
-
|
|
48
|
-
## Example input
|
|
49
|
-
|
|
50
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo answer-invalidation` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe answer-invalidation` shows the input and result schemas.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Check answer relevance
|
|
2
|
-
|
|
3
|
-
How directly does draft address request? Judge alignment with the requested subject and task, not factual correctness or completeness.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { answerRelevance } from 'jev-recipes/answer-relevance';
|
|
7
|
-
|
|
8
|
-
const result = await answerRelevance({
|
|
9
|
-
request: 'How do I reset my password?',
|
|
10
|
-
draft: 'You can download invoices from the Billing page.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `request` | Non-empty text |
|
|
21
|
-
| `draft` | 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
|
-
| `relevant` | The draft directly addresses the requested subject and task. |
|
|
31
|
-
| `partly_relevant` | The draft mixes relevant content with a substantial unrelated tangent or addresses a neighboring task. |
|
|
32
|
-
| `off_topic` | The draft does not address the requested subject or task. |
|
|
33
|
-
| `unclear` | The request or draft is too ambiguous to assess alignment. |
|
|
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
|
-
Relevance does not establish correctness or complete coverage. Use answer-coverage and verify for those decisions.
|
|
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 answer-relevance` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe answer-relevance` shows the input and result schemas.
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Check answerability
|
|
2
|
-
|
|
3
|
-
Decide whether the supplied evidence can answer an entire question before drafting a response.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { answerability } from 'jev-recipes/answerability';
|
|
7
|
-
|
|
8
|
-
const result = await answerability({
|
|
9
|
-
question: 'How do I reset my password, and when does the link expire?',
|
|
10
|
-
evidence: [
|
|
11
|
-
{
|
|
12
|
-
id: 'reset',
|
|
13
|
-
text: 'Select Forgot password. Reset links expire after 30 minutes.',
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
console.log(result.canAnswer);
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Input
|
|
22
|
-
|
|
23
|
-
| Field | Accepts |
|
|
24
|
-
| --------------- | ---------------------------------------------------------------------------- |
|
|
25
|
-
| `question` | Non-empty text containing the question |
|
|
26
|
-
| `evidence` | 1 to 50 `{ id, text }` passages with unique non-empty IDs and non-empty text |
|
|
27
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
28
|
-
|
|
29
|
-
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.
|
|
30
|
-
|
|
31
|
-
## Result
|
|
32
|
-
|
|
33
|
-
| Verdict | Meaning |
|
|
34
|
-
| -------------- | --------------------------------------------------------- |
|
|
35
|
-
| `sufficient` | The evidence answers every material part of the question. |
|
|
36
|
-
| `partial` | Some material parts can be answered, but others cannot. |
|
|
37
|
-
| `insufficient` | No material part can be answered. |
|
|
38
|
-
| `conflicting` | Incompatible evidence prevents a consistent answer. |
|
|
39
|
-
|
|
40
|
-
`canAnswer` is true only when the verdict is `sufficient` and confidence reaches `minConfidence`. `status` is `ready` at or above that threshold, otherwise `review`. A ready assessment can still describe partial, insufficient, or conflicting evidence. The result includes confidence and all choice probabilities.
|
|
41
|
-
|
|
42
|
-
The result includes model and token usage. Inspect the outcome as well as its review status.
|
|
43
|
-
|
|
44
|
-
## Reuse and calls
|
|
45
|
-
|
|
46
|
-
Uses the shared choice helper. This folder owns the evidence-sufficiency criteria and the can-answer decision. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
47
|
-
|
|
48
|
-
## Limits
|
|
49
|
-
|
|
50
|
-
Handle empty retrieval in application code before calling. This recipe does not establish source truth, draft an answer, or guarantee a later draft uses the evidence correctly. Use verify on drafted claims and answer-coverage on supplied question parts.
|
|
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 answerability` shows an offline illustration, not an accuracy measurement. Use `npx jev-recipes describe answerability` to inspect the input and result schemas.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Check argument meaning
|
|
2
|
-
|
|
3
|
-
Does proposedValue for argument express the intended value in request and context? Assess meaning only; syntax and exact identity checks belong in code.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { argumentFit } from 'jev-recipes/argument-fit';
|
|
7
|
-
|
|
8
|
-
const result = await argumentFit({
|
|
9
|
-
request: 'Search closed incidents only.',
|
|
10
|
-
argument: 'Incident status filter',
|
|
11
|
-
proposedValue: 'open',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
console.log(result.status, result.verdict);
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Input
|
|
18
|
-
|
|
19
|
-
| Field | Accepts |
|
|
20
|
-
| --------------- | -------------------------------------------- |
|
|
21
|
-
| `request` | Non-empty text |
|
|
22
|
-
| `argument` | Non-empty text |
|
|
23
|
-
| `proposedValue` | Non-empty text |
|
|
24
|
-
| `context` | Optional non-empty text |
|
|
25
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
26
|
-
|
|
27
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
28
|
-
|
|
29
|
-
## Result
|
|
30
|
-
|
|
31
|
-
| Verdict | Meaning |
|
|
32
|
-
| ----------- | --------------------------------------------------------------- |
|
|
33
|
-
| `fits` | The proposed value matches the stated intent for this argument. |
|
|
34
|
-
| `conflicts` | The proposed value contradicts the stated intent. |
|
|
35
|
-
| `unclear` | The intended value is missing or ambiguous. |
|
|
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 validate schemas, compare identifiers, or enforce authorization. Check those deterministically before acting.
|
|
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 argument-fit` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe argument-fit` shows the input and result schemas.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Check a previously attempted step
|
|
2
|
-
|
|
3
|
-
Does conversation establish whether the customer already performed step? Being told to try it, planning to try it, and actually trying it are different. Do not infer not-tried merely from silence.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { attemptedStep } from 'jev-recipes/attempted-step';
|
|
7
|
-
|
|
8
|
-
const result = await attemptedStep({
|
|
9
|
-
step: 'Clear the browser cache and try again.',
|
|
10
|
-
conversation: 'I already cleared my browser cache and tried again. The error is still there.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `step` | Non-empty text |
|
|
21
|
-
| `conversation` | 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
|
-
| `tried` | The conversation explicitly states or unambiguously reports that this step was performed. |
|
|
31
|
-
| `not_tried` | The conversation explicitly establishes the step has not been performed. |
|
|
32
|
-
| `unclear` | There is no reliable statement of whether the step was performed. |
|
|
33
|
-
|
|
34
|
-
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.
|
|
35
|
-
|
|
36
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
37
|
-
|
|
38
|
-
## Reuse and calls
|
|
39
|
-
|
|
40
|
-
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.
|
|
41
|
-
|
|
42
|
-
## Limits
|
|
43
|
-
|
|
44
|
-
Interprets reports of an attempt. It does not verify that the step was completed correctly or repeat the action.
|
|
45
|
-
|
|
46
|
-
## Example input
|
|
47
|
-
|
|
48
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo attempted-step` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe attempted-step` shows the input and result schemas.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Check audience fit
|
|
2
|
-
|
|
3
|
-
Does the level of explanation in document fit the knowledge and needs explicitly described in audience? Do not infer ability from demographic traits.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { audienceFit } from 'jev-recipes/audience-fit';
|
|
7
|
-
|
|
8
|
-
const result = await audienceFit({
|
|
9
|
-
document: 'Rotate the OAuth refresh token and invalidate the active session grant.',
|
|
10
|
-
audience:
|
|
11
|
-
'A customer unfamiliar with authentication terminology who wants to sign out of all devices.',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
console.log(result.status, result.verdict);
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Input
|
|
18
|
-
|
|
19
|
-
| Field | Accepts |
|
|
20
|
-
| --------------- | -------------------------------------------- |
|
|
21
|
-
| `document` | Non-empty text |
|
|
22
|
-
| `audience` | 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
|
-
| `appropriate` | The terminology and explanation suit the described knowledge and needs. |
|
|
32
|
-
| `too_technical` | The document assumes knowledge the supplied audience description says is absent. |
|
|
33
|
-
| `too_basic` | The document spends its explanation below the stated needs without supplying the required depth. |
|
|
34
|
-
| `unclear` | The audience or explanation is not specified enough to judge. |
|
|
35
|
-
|
|
36
|
-
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.
|
|
37
|
-
|
|
38
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
39
|
-
|
|
40
|
-
## Reuse and calls
|
|
41
|
-
|
|
42
|
-
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.
|
|
43
|
-
|
|
44
|
-
## Limits
|
|
45
|
-
|
|
46
|
-
Uses only the supplied audience description. It does not infer ability from identity or rewrite the document.
|
|
47
|
-
|
|
48
|
-
## Example input
|
|
49
|
-
|
|
50
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo audience-fit` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe audience-fit` shows the input and result schemas.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Check a cached answer
|
|
2
|
-
|
|
3
|
-
Does cachedAnswer address question with the same relevant meaning and conditions as originalQuestion? Do not assume freshness, access, tenant, or product compatibility beyond the supplied facts.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { cacheMatch } from 'jev-recipes/cache-match';
|
|
7
|
-
|
|
8
|
-
const result = await cacheMatch({
|
|
9
|
-
question: 'Where can I get my invoices?',
|
|
10
|
-
originalQuestion: 'How do I download invoices?',
|
|
11
|
-
cachedAnswer: 'Open Billing and select Download invoice.',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
console.log(result.status, result.verdict);
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Input
|
|
18
|
-
|
|
19
|
-
| Field | Accepts |
|
|
20
|
-
| ------------------ | -------------------------------------------- |
|
|
21
|
-
| `question` | Non-empty text |
|
|
22
|
-
| `originalQuestion` | Non-empty text |
|
|
23
|
-
| `cachedAnswer` | Non-empty text |
|
|
24
|
-
| `context` | Optional non-empty text |
|
|
25
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
26
|
-
|
|
27
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
28
|
-
|
|
29
|
-
## Result
|
|
30
|
-
|
|
31
|
-
| Verdict | Meaning |
|
|
32
|
-
| ------------ | --------------------------------------------------------------------------------------------------------- |
|
|
33
|
-
| `reusable` | The cached answer addresses the new question without a material mismatch in meaning or stated conditions. |
|
|
34
|
-
| `unsuitable` | The cached answer leaves a material part unanswered or applies to a different stated condition. |
|
|
35
|
-
| `unclear` | Missing or ambiguous conditions prevent establishing a match. |
|
|
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
|
-
Enforce tenant, permissions, version, and freshness checks in code before calling. A semantic match does not verify the cached answer.
|
|
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 cache-match` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe cache-match` shows the input and result schemas.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Check cancellation intent
|
|
2
|
-
|
|
3
|
-
Does message ask to cancel, pause, or continue task? Resolve which task the instruction concerns. Pausing means stop temporarily; cancellation abandons the task.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { cancellationCheck } from 'jev-recipes/cancellation-check';
|
|
7
|
-
|
|
8
|
-
const result = await cancellationCheck({
|
|
9
|
-
task: 'Draft a response to the customer.',
|
|
10
|
-
message: 'Hold off until I send you the updated policy.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `task` | Non-empty text |
|
|
21
|
-
| `message` | 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
|
-
| `cancel` | The message clearly asks to abandon this task. |
|
|
32
|
-
| `pause` | The message clearly asks to suspend this task temporarily. |
|
|
33
|
-
| `continue` | The message clearly asks to proceed with this task. |
|
|
34
|
-
| `unclear` | The message does not clearly establish one of these instructions for this task. |
|
|
35
|
-
|
|
36
|
-
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.
|
|
37
|
-
|
|
38
|
-
Results include model and token usage. Decisions below `minConfidence` require review. Inspect the outcome as well as the status.
|
|
39
|
-
|
|
40
|
-
## Reuse and calls
|
|
41
|
-
|
|
42
|
-
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.
|
|
43
|
-
|
|
44
|
-
## Limits
|
|
45
|
-
|
|
46
|
-
Does not stop running work or infer permission to continue from silence. The caller applies the decision.
|
|
47
|
-
|
|
48
|
-
## Example input
|
|
49
|
-
|
|
50
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo cancellation-check` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe cancellation-check` shows the input and result schemas.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Check certainty wording
|
|
2
|
-
|
|
3
|
-
Does the certainty expressed in draft match assessment? Treat assessment as the supplied evidence assessment and do not independently re-evaluate its truth.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { certaintyMatch } from 'jev-recipes/certainty-match';
|
|
7
|
-
|
|
8
|
-
const result = await certaintyMatch({
|
|
9
|
-
draft: 'The outage was definitely caused by the deploy.',
|
|
10
|
-
assessment: 'The deploy is one possible cause; the cause has not been established.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `draft` | Non-empty text |
|
|
21
|
-
| `assessment` | 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
|
-
| `overstated` | The draft expresses stronger certainty than the assessment supports. |
|
|
31
|
-
| `appropriate` | The draft expresses a degree of certainty consistent with the assessment. |
|
|
32
|
-
| `understated` | The draft expresses materially weaker certainty than the assessment supports. |
|
|
33
|
-
| `unclear` | The certainty levels cannot be compared from the supplied wording. |
|
|
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 wording with a supplied assessment. It does not calibrate probabilities or establish the assessment itself.
|
|
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 certainty-match` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe certainty-match` shows the input and result schemas.
|