← All examples
13 / 100
Jev Ask or act Code Example
Resolve an ambiguous instruction before taking action.
Delete the old one.
Request Delete the old one.
Candidates three active projects
Confirmed Target No
Is the target clear enough to proceed?
0%
Ask for clarification.
Ask for what is needed before choosing ask for clarification.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"request": "Delete the old one.",
"candidates": "three active projects",
"confirmed_target": false
};
const decision = await evaluateDecision({
state,
question: "Is the target clear enough to proceed?",
options: ["Ask for clarification","Proceed","Decline"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Ask for clarification"
&& decision.probability >= 0.85) {
requestClarification(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.