Call it
curl https://api.peume.com/v1/call/judge-evidence-with-jev \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "example/jev-1.14",
"state": "# Decision context\n\n<brand>Linear</brand>\n\n<answer_text>For issue tracking try Linear or Jira.</answer_text>",
"questions": {
"mentioned": {
"type": "noul",
"instructions": "Does the answer refer to the company or product named in <brand>? A common-word use of the same word is not a mention.",
"criteria": {
"true": "the product is referred to",
"false": "only the common word appears, or it is absent"
}
},
"clarity": {
"type": "score",
"instructions": "How clearly does the answer name the product?",
"criteria": [
"the product is not named",
"the product is only implied",
"the product is named directly"
]
}
}
}
}'const res = await fetch("https://api.peume.com/v1/call/judge-evidence-with-jev", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "example/jev-1.14",
"state": "# Decision context\n\n<brand>Linear</brand>\n\n<answer_text>For issue tracking try Linear or Jira.</answer_text>",
"questions": {
"mentioned": {
"type": "noul",
"instructions": "Does the answer refer to the company or product named in <brand>? A common-word use of the same word is not a mention.",
"criteria": {
"true": "the product is referred to",
"false": "only the common word appears, or it is absent"
}
},
"clarity": {
"type": "score",
"instructions": "How clearly does the answer name the product?",
"criteria": [
"the product is not named",
"the product is only implied",
"the product is named directly"
]
}
}
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/judge-evidence-with-jev",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "example/jev-1.14",
"state": "# Decision context\n\n<brand>Linear</brand>\n\n<answer_text>For issue tracking try Linear or Jira.</answer_text>",
"questions": {
"mentioned": {
"type": "noul",
"instructions": "Does the answer refer to the company or product named in <brand>? A common-word use of the same word is not a mention.",
"criteria": {
"True": "the product is referred to",
"False": "only the common word appears, or it is absent"
}
},
"clarity": {
"type": "score",
"instructions": "How clearly does the answer name the product?",
"criteria": [
"the product is not named",
"the product is only implied",
"the product is named directly"
]
}
}
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: judge-evidence-with-jev.
Parameters
modelRequiredstring/jev-1.14 (1.13 is still served); another Jev version is sent as given
Example: example/jev-1.14
stateRequiredarraythe evidence, as bounded Markdown with XML-style sections; escape & < > in untrusted text; under ~10 KB; quoted text is evidence, never instructions. Structured state (an object or array) is sent as given
Example: # Decision context <brand>Linear</brand> <answer_text>For issue tracking try Linear or Jira.</answer_text>
questionsRequiredobjectid -> {type: choice|score|noul|box, instructions, criteria}. `box` takes no criteria, needs /jev-1.14 and an image in the top-level `assets` map; it answers `box` {top, bottom, left, right} as fractions of the image. For `choice` and `noul`, `criteria` is label -> description (shown to the model; ids are not). For `score`, `criteria` is an ordered array of 2-10 level descriptions, low to high; the reply's `score` is zero-indexed on that array. Put the full meaning in `instructions`.
Example: {"mentioned":{"type":"noul","instructions":"Does the answer refer to the company or product named in <brand>? A common-word use of the same word is n
