J.

Jev Runbook selection Code Example

Choose a response guide from a compact incident snapshot.

Queue age increasing; workers healthy; upstream throttled.

Symptom Queue age increasing; workers healthy; upstream throttled.
Runbooks backpressure, restart workers, database recovery

Which runbook should the operator inspect first?

0% Backpressure.
Backpressure 72%
Restart workers 20%
Database recovery 8%

Let the application backpressure.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "symptom": "Queue age increasing; workers healthy; upstream throttled.",
  "runbooks": "backpressure, restart workers, database recovery"
};

const decision = await evaluateDecision({
  state,
  question: "Which runbook should the operator inspect first?",
  options: ["Backpressure","Restart workers","Database recovery"],
});

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

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