← All examples
75 / 100
Jev Accessible description review Code Example
Check an image’s supplied description against its intended role.
Chart showing monthly revenue rising
Image Context Chart showing monthly revenue rising
Alt chart.png
Decorative No
What does the alt text need?
0%
Describe the trend.
Let the application describe the trend.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"image_context": "Chart showing monthly revenue rising",
"alt": "chart.png",
"decorative": false
};
const decision = await evaluateDecision({
state,
question: "What does the alt text need?",
options: ["Describe the trend","Keep as is","Empty alt"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Describe the trend"
&& decision.probability >= 0.85) {
requestAltRevision(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.