Jev Cookbook
Fifteen practical recipes show how typed Jev answers drive routing, classification and evaluation.
Fifteen practical recipes show how typed Jev answers drive routing, classification and evaluation.
Recipe 01 sends each ticket message as state and asks for its department, urgency, frustration, and refund request in one call. The department is a Choice over five named teams. The script then uses department confidence, urgency, and frustration to route the ticket and assign a priority; its example data and result labels are also used for recipe evaluation.
Choose which team should handle the ticket message.
For each ticket, state contains its message. The department options and descriptions are fixed in the recipe; message contents vary per ticket. This is an illustrative request shape, not an observed answer.
The script reads its ticket collection from the recipe's tickets.json file.
It processes tickets with a concurrency limit of eight and asks the department Choice, urgency Noul, frustration Score, and refund Noul together.
Code routes using confidence thresholds of 0.8 and 0.5, then sets priority from urgency and frustration.
The script compares answers with the ticket labels, prints summary metrics, and saves the results for the recipe.
The recipe separates classification from action. Jev supplies typed answers, while ordinary code applies confidence bands, sets priority, checks the result against labels, and records metrics. This makes the routing policy visible and adjustable in code.