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,50 +0,0 @@
|
|
|
1
|
-
# Identify memory scope
|
|
2
|
-
|
|
3
|
-
What is the narrowest explicitly supported scope of fact in context? Do not generalize a one-off instruction into a lasting user preference.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { memoryScope } from 'jev-recipes/memory-scope';
|
|
7
|
-
|
|
8
|
-
const result = await memoryScope({
|
|
9
|
-
fact: 'Use two-space indentation in this repository.',
|
|
10
|
-
context: 'The user is describing the conventions for the billing service repository.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `fact` | Non-empty text |
|
|
21
|
-
| `context` | 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
|
-
| `user` | The fact explicitly applies to the user across projects or tasks. |
|
|
31
|
-
| `project` | The fact applies to the identified project across its tasks. |
|
|
32
|
-
| `task` | The fact applies to the current task only. |
|
|
33
|
-
| `session` | The fact applies to this conversation session across its immediate tasks. |
|
|
34
|
-
| `unclear` | The intended scope is not 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
|
-
Identifies semantic scope. It does not identify a storage tenant, establish consent, or persist a memory.
|
|
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 memory-scope` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe memory-scope` shows the input and result schemas.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Assess a candidate memory
|
|
2
|
-
|
|
3
|
-
How useful is fact for future work under purpose? Distinguish lasting relevance from a current-task detail. Use the supplied purpose rather than assuming every personal fact is worth retaining.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { memoryValue } from 'jev-recipes/memory-value';
|
|
7
|
-
|
|
8
|
-
const result = await memoryValue({
|
|
9
|
-
fact: 'The user prefers short, direct support replies.',
|
|
10
|
-
purpose: 'Help the user draft customer support replies across sessions.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `fact` | Non-empty text |
|
|
21
|
-
| `purpose` | 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
|
-
| `ongoing_value` | The fact has a clear recurring use for the supplied purpose beyond this task. |
|
|
32
|
-
| `task_only` | The fact helps the current task but has no established recurring use. |
|
|
33
|
-
| `incidental` | The fact has no clear use for the supplied purpose. |
|
|
34
|
-
| `unclear` | Its future usefulness 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 usefulness only. Storage consent, sensitive-data policy, retention, and deletion must be enforced separately.
|
|
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 memory-value` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe memory-value` shows the input and result schemas.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Compare passages for duplication
|
|
2
|
-
|
|
3
|
-
How much material information do firstPassage and secondPassage share? Different wording can express the same information. Shared subject matter alone does not make a duplicate.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { passageDuplicate } from 'jev-recipes/passage-duplicate';
|
|
7
|
-
|
|
8
|
-
const result = await passageDuplicate({
|
|
9
|
-
firstPassage: 'Select Forgot password to receive a reset email.',
|
|
10
|
-
secondPassage: 'Use Forgot password and we will email a reset link.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `firstPassage` | Non-empty text |
|
|
21
|
-
| `secondPassage` | 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
|
-
| `duplicate` | Both passages convey substantially the same material information. |
|
|
31
|
-
| `overlapping` | They share material information but at least one adds meaningful details. |
|
|
32
|
-
| `distinct` | They convey materially different information. |
|
|
33
|
-
| `unclear` | The meaning cannot be compared reliably. |
|
|
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 a supplied pair. It does not search a corpus, cluster documents, or remove content.
|
|
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 passage-duplicate` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe passage-duplicate` shows the input and result schemas.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Identify a stated preference
|
|
2
|
-
|
|
3
|
-
Does statement express an ongoing preference, a factual assertion, or a temporary request? Do not treat a task-specific instruction as a lasting preference without evidence of scope.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { preferenceKind } from 'jev-recipes/preference-kind';
|
|
7
|
-
|
|
8
|
-
const result = await preferenceKind({
|
|
9
|
-
statement: 'For this reply, please use bullet points.',
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
console.log(result.status, result.verdict);
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Input
|
|
16
|
-
|
|
17
|
-
| Field | Accepts |
|
|
18
|
-
| --------------- | -------------------------------------------- |
|
|
19
|
-
| `statement` | 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
|
-
| `preference` | The statement expresses an ongoing choice or preferred way of working. |
|
|
30
|
-
| `fact` | The statement asserts information without expressing a preference or requesting an action. |
|
|
31
|
-
| `temporary_request` | The statement asks for something in the current situation without establishing a lasting preference. |
|
|
32
|
-
| `unclear` | The intended kind cannot be established. |
|
|
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
|
-
Classifies a statement. It does not infer unexpressed preferences or grant permission to store personal information.
|
|
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 preference-kind` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe preference-kind` shows the input and result schemas.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Check reply commitments
|
|
2
|
-
|
|
3
|
-
Does reply promise actions or outcomes beyond allowedCommitments? A conditional possibility is not a guarantee. Judge the whole reply; one unsupported promise is enough.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { promiseCheck } from 'jev-recipes/promise-check';
|
|
7
|
-
|
|
8
|
-
const result = await promiseCheck({
|
|
9
|
-
reply: 'Your refund is guaranteed.',
|
|
10
|
-
allowedCommitments: 'We may promise to review a refund request. We cannot promise approval.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| -------------------- | -------------------------------------------- |
|
|
20
|
-
| `reply` | Non-empty text |
|
|
21
|
-
| `allowedCommitments` | 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
|
-
| `within_commitments` | Every promise is permitted by the supplied commitments, or the reply contains no promise. |
|
|
31
|
-
| `unsupported` | At least one promise exceeds or contradicts the supplied commitments. |
|
|
32
|
-
| `unclear` | The wording or allowed commitments leave a promise ambiguous. |
|
|
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
|
-
Reviews expressed promises. It does not approve refunds, establish contractual obligations, or execute actions.
|
|
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 promise-check` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe promise-check` shows the input and result schemas.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Compare question meaning
|
|
2
|
-
|
|
3
|
-
Do firstQuestion and secondQuestion request the same information under the same stated conditions? Shared vocabulary or topic alone is not equivalence.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { queryEquivalence } from 'jev-recipes/query-equivalence';
|
|
7
|
-
|
|
8
|
-
const result = await queryEquivalence({
|
|
9
|
-
firstQuestion: 'How can I reset my password?',
|
|
10
|
-
secondQuestion: 'What should I do if I forgot my password?',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| ---------------- | -------------------------------------------- |
|
|
20
|
-
| `firstQuestion` | Non-empty text |
|
|
21
|
-
| `secondQuestion` | 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
|
-
| `equivalent` | Both questions request the same information with compatible conditions. |
|
|
32
|
-
| `related` | They share a topic but differ in a material information need or condition. |
|
|
33
|
-
| `different` | They request different subjects or unrelated information. |
|
|
34
|
-
| `unclear` | The intended meanings cannot be resolved. |
|
|
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
|
-
Compares supplied questions. It does not rewrite them or establish that an existing answer is still valid.
|
|
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 query-equivalence` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe query-equivalence` shows the input and result schemas.
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Check question specificity
|
|
2
|
-
|
|
3
|
-
Does question, interpreted with context, identify a focused information need? A broad but clear request differs from an ambiguous reference or missing subject.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { querySpecificity } from 'jev-recipes/query-specificity';
|
|
7
|
-
|
|
8
|
-
const result = await querySpecificity({
|
|
9
|
-
question: 'Tell me everything about software.',
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
console.log(result.status, result.verdict);
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Input
|
|
16
|
-
|
|
17
|
-
| Field | Accepts |
|
|
18
|
-
| --------------- | -------------------------------------------- |
|
|
19
|
-
| `question` | 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
|
-
| `specific` | The subject and requested information are sufficiently clear and focused. |
|
|
30
|
-
| `too_broad` | The intended subject is clear but the request spans an open-ended range of information. |
|
|
31
|
-
| `ambiguous` | The subject, reference, or intended information has multiple unresolved meanings. |
|
|
32
|
-
|
|
33
|
-
The result includes `verdict`, `confidence`, and all choice `probabilities`. `ambiguous` 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
|
-
Assesses focus only. Use clarify when the application has explicit required fields to check.
|
|
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 query-specificity` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe query-specificity` shows the input and result schemas.
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Resolve a reference
|
|
2
|
-
|
|
3
|
-
Which supplied candidate does reference refer to in message and context? Resolve only this reference. Do not invent an entity or break a genuine tie.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { referenceResolve } from 'jev-recipes/reference-resolve';
|
|
7
|
-
|
|
8
|
-
const result = await referenceResolve({
|
|
9
|
-
message: 'Please cancel the hardware order, not my subscription.',
|
|
10
|
-
reference: 'the hardware order',
|
|
11
|
-
candidates: [
|
|
12
|
-
{
|
|
13
|
-
id: 'order',
|
|
14
|
-
text: 'A pending hardware order.',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: 'subscription',
|
|
18
|
-
text: 'An active monthly storage subscription.',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
console.log(result.status, result.selection);
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Input
|
|
27
|
-
|
|
28
|
-
| Field | Accepts |
|
|
29
|
-
| --------------- | -------------------------------------------- |
|
|
30
|
-
| `message` | Non-empty text |
|
|
31
|
-
| `reference` | Non-empty text |
|
|
32
|
-
| `candidates` | 1 to 50 `{ id, text }` items with unique IDs |
|
|
33
|
-
| `context` | Optional non-empty text |
|
|
34
|
-
| `minConfidence` | Optional number from 0 to 1; defaults to 0.8 |
|
|
35
|
-
|
|
36
|
-
See [shared options and behavior](../README.md#shared-options-and-behavior) for client configuration, validation, and errors.
|
|
37
|
-
|
|
38
|
-
## Result
|
|
39
|
-
|
|
40
|
-
`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`.
|
|
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 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.
|
|
47
|
-
|
|
48
|
-
## Limits
|
|
49
|
-
|
|
50
|
-
Resolves a supplied reference among candidates. It does not extract references, verify identity, or authorize changes.
|
|
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 reference-resolve` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe reference-resolve` shows the input and result schemas.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Compare attempted approaches
|
|
2
|
-
|
|
3
|
-
Does proposedAttempt use essentially the same approach as previousAttempt for objective? Rewording the same query without a material strategy change counts as the same approach.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { repeatedAttempt } from 'jev-recipes/repeated-attempt';
|
|
7
|
-
|
|
8
|
-
const result = await repeatedAttempt({
|
|
9
|
-
objective: 'Find reset documentation.',
|
|
10
|
-
previousAttempt: 'Search the help center for password reset.',
|
|
11
|
-
proposedAttempt: 'Search the same help center for reset password.',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
console.log(result.status, result.verdict);
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Input
|
|
18
|
-
|
|
19
|
-
| Field | Accepts |
|
|
20
|
-
| ----------------- | -------------------------------------------- |
|
|
21
|
-
| `objective` | Non-empty text |
|
|
22
|
-
| `previousAttempt` | Non-empty text |
|
|
23
|
-
| `proposedAttempt` | 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
|
-
| `same_approach` | The proposed attempt repeats the material method and relevant assumptions. |
|
|
33
|
-
| `different_approach` | The proposed attempt changes a material method, source, or assumption. |
|
|
34
|
-
| `unclear` | The attempts are not described precisely enough to compare. |
|
|
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
|
-
Compares two attempts only. Counting repeats, deciding whether a retry is justified, and stopping loops belong in application 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 repeated-attempt` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe repeated-attempt` shows the input and result schemas.
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Select a reply template
|
|
2
|
-
|
|
3
|
-
Which supplied approved template applies to request and context? Match any stated template conditions and do not select a template that promises unsupported actions.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { replyTemplateMatch } from 'jev-recipes/reply-template-match';
|
|
7
|
-
|
|
8
|
-
const result = await replyTemplateMatch({
|
|
9
|
-
request: 'How do I reset my password?',
|
|
10
|
-
templates: [
|
|
11
|
-
{
|
|
12
|
-
id: 'reset',
|
|
13
|
-
text: 'For password reset requests: Select Forgot password on the sign-in page.',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 'invoice',
|
|
17
|
-
text: 'For invoice requests: Open Billing and select Download invoice.',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
console.log(result.status, result.selection);
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Input
|
|
26
|
-
|
|
27
|
-
| Field | Accepts |
|
|
28
|
-
| --------------- | -------------------------------------------- |
|
|
29
|
-
| `request` | Non-empty text |
|
|
30
|
-
| `templates` | 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 a supplied template. It does not fill placeholders, approve its content, personalize it, or send a response.
|
|
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 reply-template-match` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe reply-template-match` shows the input and result schemas.
|
package/recipes/rerank/README.md
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# Rerank evidence
|
|
2
|
-
|
|
3
|
-
Select supplied passages by how directly they help answer a query, then order them by relevance.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { rerank } from 'jev-recipes/rerank';
|
|
7
|
-
|
|
8
|
-
const result = await rerank({
|
|
9
|
-
query: 'How do I reset my password?',
|
|
10
|
-
items: [
|
|
11
|
-
{
|
|
12
|
-
id: 'billing',
|
|
13
|
-
text: 'Invoices appear on the Billing page.',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 'reset',
|
|
17
|
-
text: 'Select Forgot password to receive a reset link.',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
topK: 1,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
console.log(result.items);
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Input
|
|
27
|
-
|
|
28
|
-
| Field | Accepts |
|
|
29
|
-
| -------------- | -------------------------------------------------------------------------- |
|
|
30
|
-
| `query` | Non-empty text describing the information needed |
|
|
31
|
-
| `items` | 1 to 100 `{ id, text }` items with unique non-empty IDs and non-empty text |
|
|
32
|
-
| `topK` | Optional integer from 1 to 100; defaults to 5 |
|
|
33
|
-
| `minRelevance` | Optional number from 0 to 1; defaults to 0.5 |
|
|
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
|
-
`items` contains passages at or above `minRelevance`, ordered from highest relevance to lowest and limited to `topK`. Each item keeps its ID and text and adds `relevance`. Equal values preserve input order. The input array is not changed.
|
|
40
|
-
|
|
41
|
-
`status` is `ready` when at least one passage qualifies, otherwise `review`. `evaluated` reports the number of supplied items. Relevance comes from independent yes/no questions, so values do not sum to 1 and have no separate confidence field.
|
|
42
|
-
|
|
43
|
-
The result includes model and token usage. Inspect the outcome as well as its review status.
|
|
44
|
-
|
|
45
|
-
## Reuse and calls
|
|
46
|
-
|
|
47
|
-
Uses shared input preparation, instruction handling, the SDK client, and yes/no answer parsing. This folder owns the relevance question, filtering, and ordering. All item questions are sent in one request. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
|
|
48
|
-
|
|
49
|
-
## Limits
|
|
50
|
-
|
|
51
|
-
Relevance does not establish that a passage is true or sufficient to answer the entire query. Use answerability to assess the selected evidence. This recipe does not retrieve documents or generate an answer.
|
|
52
|
-
|
|
53
|
-
## Example input
|
|
54
|
-
|
|
55
|
-
[demo.json](demo.json) contains editable input and a hand-authored response. After installing `jev-recipes`, `npx jev-recipes demo rerank` shows an offline illustration, not an accuracy measurement. Use `npx jev-recipes describe rerank` to inspect the input and result schemas.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Check reported resolution
|
|
2
|
-
|
|
3
|
-
Does message establish that the customer reports issue as resolved? Courtesy or thanks without a resolution statement is not enough. Assess the reported state, not the actual system state.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { resolutionCheck } from 'jev-recipes/resolution-check';
|
|
7
|
-
|
|
8
|
-
const result = await resolutionCheck({
|
|
9
|
-
issue: 'The customer cannot sign in.',
|
|
10
|
-
message: 'The reset worked. I can sign in now.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `issue` | 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
|
-
| `resolved` | The customer clearly reports this issue is solved or the desired outcome now works. |
|
|
32
|
-
| `unresolved` | The customer clearly reports this issue persists or the attempted fix failed. |
|
|
33
|
-
| `unclear` | The message does not establish whether this issue is resolved. |
|
|
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 the customer report. It does not verify the system state, close a ticket, or treat courtesy alone as resolution.
|
|
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 resolution-check` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe resolution-check` shows the input and result schemas.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Check whether a reply is needed
|
|
2
|
-
|
|
3
|
-
Does message require a substantive reply in context? A question, request, correction needing follow-through, or unresolved issue requires a reply. A simple closing acknowledgment does not.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
import { responseNeeded } from 'jev-recipes/response-needed';
|
|
7
|
-
|
|
8
|
-
const result = await responseNeeded({
|
|
9
|
-
message: 'Thanks, that solved it!',
|
|
10
|
-
context: 'The assistant provided password reset instructions.',
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
console.log(result.status, result.verdict);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Input
|
|
17
|
-
|
|
18
|
-
| Field | Accepts |
|
|
19
|
-
| --------------- | -------------------------------------------- |
|
|
20
|
-
| `message` | Non-empty text |
|
|
21
|
-
| `context` | Optional 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
|
-
| `reply_needed` | The message requests or requires substantive follow-through. |
|
|
31
|
-
| `no_reply_needed` | The message closes or acknowledges the exchange without an unresolved request. |
|
|
32
|
-
| `unclear` | The supplied context does not establish whether a response is expected. |
|
|
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
|
-
Assesses conversational need. Channel-specific response obligations and customer service policies remain application rules.
|
|
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 response-needed` shows the result offline. The fixture is an illustration, not an accuracy measurement. `npx jev-recipes describe response-needed` shows the input and result schemas.
|