J.

Jev Replacement compatibility Code Example

Check a suggested substitute against explicit requirements.

USB-C dock with two HDMI outputs

Requested USB-C dock with two HDMI outputs
Substitute USB-C hub with one HDMI output
Required Monitors 2

Does this substitute meet the requirement?

0% Incompatible.
Incompatible 88%
Compatible 8%
Need specifications 4%

Let the application incompatible.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "requested": "USB-C dock with two HDMI outputs",
  "substitute": "USB-C hub with one HDMI output",
  "required_monitors": 2
};

const decision = await evaluateDecision({
  state,
  question: "Does this substitute meet the requirement?",
  options: ["Incompatible","Compatible","Need specifications"],
});

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

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