J.
11 / 100

Tool selection

Find orders placed yesterday.

Which tool should run next?

Order search94%
Web search4%
Calculator2%
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "task": "Find orders placed yesterday.",
  "tools": "order_search, web_search, calculator"
};

const decision = await evaluateDecision({
  state,
  question: "Which tool should run next?",
  options: ["Order search","Web search","Calculator"],
});

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

Let the application order search.