J.

Jev Approval request classification Code Example

Select the correct approval chain from the actual request.

Buy a new laptop for the design team.

Request Buy a new laptop for the design team.
Amount 2200
Currency AUD

Which approval chain fits?

0% Equipment procurement.
Equipment procurement 88%
Travel 8%
Marketing spend 4%

Let the application equipment procurement.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "request": "Buy a new laptop for the design team.",
  "amount": 2200,
  "currency": "AUD"
};

const decision = await evaluateDecision({
  state,
  question: "Which approval chain fits?",
  options: ["Equipment procurement","Travel","Marketing spend"],
});

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

This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.