J.

Jev Expense category suggestion Code Example

Suggest a bookkeeping category from receipt text.

Rail service

Merchant Rail service
Receipt Return ticket to client workshop
Amount 46

Which expense category fits?

0% Business travel.
Business travel 88%
Software 8%
Office supplies 4%

Let the application business travel.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "merchant": "Rail service",
  "receipt": "Return ticket to client workshop",
  "amount": 46
};

const decision = await evaluateDecision({
  state,
  question: "Which expense category fits?",
  options: ["Business travel","Software","Office supplies"],
});

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

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