← All examples
48 / 100
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.
Let the application business travel.
Code
// 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.