Recipe catalog / response-needed
Check whether a reply is needed
response-needed is a Jev recipe from the jev-recipes TypeScript package. Does message require a substantive reply in context? Use it when you need to decide whether a message calls for a substantive reply.
Last updated .
Explore this recipe interactively · Source and implementation guide · Markdown version
How do I use response-needed in TypeScript?
Install with npm install jev-recipes. Requires Node.js 22.9 or newer and ES modules. Set TYPESAFE_API_KEY in your server environment for live calls, which send input to TypeSafe and use API quota. See the installation guide.
import { responseNeeded } from 'jev-recipes/response-needed';
const result = await responseNeeded({
"message": "Thanks, that solved it!",
"context": "The assistant provided password reset instructions."
});
console.log(result);
What input does response-needed take?
| Field | Type | Needed |
|---|---|---|
| message | string | Required |
| context | string | Optional |
| minConfidence | number | Optional |
Full input and result schemas
{
"input": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"message": {
"type": "string"
},
"context": {
"type": "string"
},
"minConfidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"message"
]
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"model": {
"type": "string"
},
"usage": {
"type": "object",
"properties": {
"input_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"input_tokens",
"output_tokens"
],
"additionalProperties": false
},
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"verdict": {
"type": "string",
"enum": [
"reply_needed",
"no_reply_needed",
"unclear"
]
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"probabilities": {
"type": "object",
"propertyNames": {
"type": "string",
"enum": [
"reply_needed",
"no_reply_needed",
"unclear"
]
},
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"required": [
"reply_needed",
"no_reply_needed",
"unclear"
]
}
},
"required": [
"model",
"usage",
"status",
"verdict",
"confidence",
"probabilities"
],
"additionalProperties": false
}
}What does a response-needed result look like?
This hand-authored response demonstrates the contract. It is not a model accuracy measurement. Run it without an API key: npx jev-recipes demo response-needed.
{
"model": "demo-fixture",
"usage": {
"input_tokens": 0,
"output_tokens": 0
},
"status": "ready",
"verdict": "no_reply_needed",
"confidence": 0.96,
"probabilities": {
"reply_needed": 0,
"no_reply_needed": 1,
"unclear": 0
}
}
Input
See shared options and behavior for client configuration, validation, and errors.
Result
| Verdict | Meaning |
|---|---|
reply_needed |
The message requests or requires substantive follow-through. |
no_reply_needed |
The message closes or acknowledges the exchange without an unresolved request. |
unclear |
The supplied context does not establish whether a response is expected. |
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.
Results include model and token usage. Decisions below minConfidence require review. Inspect the outcome as well as the status.
Reuse and calls
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.
Limits
Assesses conversational need. Channel-specific response obligations and customer service policies remain application rules.
Example input
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.
How accurate is response-needed?
jev-1.13.0 / 2026-10-04 / 60 development cases
Scoring revision 2.
60 ready decisions, with 100% accuracy among those decisions.
95% case-level interval: 94% to 100%. Related synthetic cases are correlated.
This measures the recorded dataset, not general readiness. Label sources: author-synthetic: AI-authored synthetic boundary cases for jev-recipes; labels have not had independent human review.
Use the evaluation guide to measure this decision on your own labeled cases.
What are the limits of response-needed?
- Assesses conversational need. Channel-specific response obligations and customer service policies remain application rules.
Which recipes are related to response-needed?
- turn-intent: Use turn-intent to classify the message purpose in more detail.