J.
100 / 100

Workflow completion check

Publish approved article

Is the requested outcome complete?

Continue workflow86%
Complete10%
Ask owner4%
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "goal": "Publish approved article",
  "last_event": "Draft saved",
  "public_url": "none"
};

const decision = await evaluateDecision({
  state,
  question: "Is the requested outcome complete?",
  options: ["Continue workflow","Complete","Ask owner"],
});

// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Continue workflow"
    && decision.probability >= 0.85) {
  resumeIncompleteWorkflow(decision);
} else {
  queueForReview(decision);
}

Let the application continue workflow.