← All examples
17 / 100
Jev Model routing Code Example
Reserve deeper reasoning for the tasks that need it.
Compare three conflicting migration plans and their failure modes.
Task Compare three conflicting migration plans and their failure modes.
Context Pages 14
Which processing path fits this task?
0%
Deep reasoning.
Let the application deep reasoning.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"task": "Compare three conflicting migration plans and their failure modes.",
"context_pages": 14
};
const decision = await evaluateDecision({
state,
question: "Which processing path fits this task?",
options: ["Deep reasoning","Fast response","Deterministic code"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Deep reasoning"
&& decision.probability >= 0.85) {
routeModel(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.