OpenJEV
v0.2.0Typed AI judgments for agents: choice, score, and yes/no probabilities instead of prose.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
jev_ask Ask Jev (several questions)
Send one shared context and one or more independent questions to Jev (TypeSafe System One) and get typed judgments back — not prose. How to design the call: - `state` carries the text and facts; `instructions` carries the judgment, in the question's own words. - Every question is answered independently against the same state. Order is not a sequence, and no question can use another's answer. Ask independent questions together in one call, including conditional ones whose answers you may ignore; make a second call only when an answer decides what to fetch or ask next. - One call judges one s…
| Parameter | Type | Description |
|---|---|---|
questions * | object | Question id to question definition. Non-empty. Ids label the answers for your code. |
state * | The content the questions are judged against: text, an object of named fields, or an array of records. The state is judged as one whole, so an array of tickets gets one blended answer rather than one… | |
model | string | Model alias. Omit to use the server default (`openjev`). |
jev_choice Jev choice
Ask one question whose answer is exactly one of a set of options you define. Use for a category, a route, or a selection from a closed list — not for a degree and not for a yes/no. Write the judgment in `instructions`, and put the boundaries in the option descriptions: what each option covers and excludes. Include an option named "other" or "none" when the list may not cover every input. A choice returns exactly one option, so ask separate noul questions (together in `jev_ask`) when several labels can apply at once. Returns the selected option, the full probability distribution, and `confi…
| Parameter | Type | Description |
|---|---|---|
criteria * | The options. An object maps each option name to a description of what it covers and excludes; an array of names is shorthand for options that need no description. Include an option named "other" or "n… | |
instructions * | The judgment to make, written out in full. A clear specific string is usually enough; use an object or array when the judgment, its scope, and its constraints belong together. The question id is not s… | |
state * | The content the questions are judged against: text, an object of named fields, or an array of records. The state is judged as one whole, so an array of tickets gets one blended answer rather than one… | |
model | string | Model alias. Omit to use the server default (`openjev`). |
question_id | string | Label for this question in the response. Defaults to the primitive name. |
jev_score Jev score
Ask one question whose answer is a position on an ordered scale you define. Use for degree, severity, or intensity. `criteria` lists the levels from lowest to highest; a three-level scale returns a score from 0 to 2, and values between integers are positions between levels — the score is the probability-weighted mean of level numbers, not a percentage or a category id. Give every level a self-contained description ("no deadline expressed", "wants a response soon", "explicit deadline"), never a relative one like "more urgent than the level below". Returns the score, the `legend` mapping lev…
| Parameter | Type | Description |
|---|---|---|
criteria * | array | The ordered levels, lowest first. Each level is a self-contained description (a string, or an object/array holding meaning and examples). A three-level scale returns a score from 0 to 2; fractional sc… |
instructions * | The judgment to make, written out in full. A clear specific string is usually enough; use an object or array when the judgment, its scope, and its constraints belong together. The question id is not s… | |
state * | The content the questions are judged against: text, an object of named fields, or an array of records. The state is judged as one whole, so an array of tickets gets one blended answer rather than one… | |
model | string | Model alias. Omit to use the server default (`openjev`). |
question_id | string | Label for this question in the response. Defaults to the primitive name. |
jev_noul Jev noul
Ask one yes/no question and get its probability. Use when the condition either holds or does not, and the probability is more useful than a category. Name the condition precisely in `instructions`; optionally describe the two outcomes in `criteria.true` and `criteria.false`, or omit `criteria` when the instructions already define both. Returns a value between 0 and 1: near 1 yes, near 0 no, near 0.5 uncertain. It measures probability, not intensity, and there is no separate confidence field — a confident no is near 0, not near 0.5, so read low values as evidence against rather than as low…
| Parameter | Type | Description |
|---|---|---|
instructions * | The judgment to make, written out in full. A clear specific string is usually enough; use an object or array when the judgment, its scope, and its constraints belong together. The question id is not s… | |
state * | The content the questions are judged against: text, an object of named fields, or an array of records. The state is judged as one whole, so an array of tickets gets one blended answer rather than one… | |
criteria | object | Optional descriptions of the two outcomes. Omit when `instructions` already defines both. |
model | string | Model alias. Omit to use the server default (`openjev`). |
question_id | string | Label for this question in the response. Defaults to the primitive name. |
jev_batch Jev batch (many items)
Put the same independent questions to each of many items — a queue of tickets, a page of comments, rows of records — and get typed answers per item. How it runs: each item is its own request to Jev, carrying its state and every question, so an item costs what a `jev_ask` call with those questions costs. Requests go out a few at a time and are paced to the key's rate limit. Use `jev_ask` for a single item. How to design the call: - `items` holds 1 to 100 records, each with its own `state`. Give every item an `id` — the record's own id, such as a ticket number — so its results map back…
| Parameter | Type | Description |
|---|---|---|
items * | array | The records to judge, 1 to 100 per call. Each is sent as its own request, with every question. |
questions * | object | Question id to question definition, as in `jev_ask`. Non-empty. Every item is asked every question. |
model | string | Model alias. Omit to use the server default (`openjev`). |