← All examples
16 / 100
Jev Plan readiness Code Example
Check that a proposed plan has its prerequisites.
Deploy migration to production.
Plan Deploy migration to production.
Backup No
Rollback not defined
Is this plan ready to execute?
0%
Request prerequisites.
Ask for what is needed before choosing request prerequisites.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"plan": "Deploy migration to production.",
"backup": false,
"rollback": "not defined"
};
const decision = await evaluateDecision({
state,
question: "Is this plan ready to execute?",
options: ["Request prerequisites","Ready","Needs clarification"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Request prerequisites"
&& decision.probability >= 0.85) {
blockPlanExecution(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.