Jev batch (many items)
jev_batchAsk the same independent questions across many tickets, comments, or records and get typed answers, counts, and per-item errors.
Instructions
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:
itemsholds 1 to 100 records, each with its ownstate. Give every item anid— the record's own id, such as a ticket number — so its results map back without counting positions; without ids, items are labelled by position from "0".questionsfollows the same rules as injev_ask, and every item is judged against all of them, independently.
Reading the result: counts gives the totals. answers[item id][question id] holds an answered item's answers, shaped as in jev_ask; confidence says how concentrated a distribution is, not how likely the answer is to be correct. errors[item id] holds an item that failed, with its code and whether it is retryable. When the call ends early — a rejected key, a rate limit it cannot wait out, several failures in a row, or its time budget — stopped says why and not_sent lists the items never sent. Send those, and any retryable errors, in a later call, after retry_after_ms when it is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The records to judge, 1 to 100 per call. Each is sent as its own request, with every question. | |
| model | No | Model alias. Omit to use the server default (`openjev`). | |
| questions | Yes | Question id to question definition, as in `jev_ask`. Non-empty. Every item is asked every question. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hints | No | Non-blocking advice about this request, when there is any. | |
| model | No | ||
| usage | No | Tokens summed over the answered items. | |
| counts | Yes | How many items were answered, failed, or never sent. | |
| errors | No | Item id to the failure of an item that was sent but not answered. | |
| answers | Yes | Item id to that item's answers, keyed by question id as in `jev_ask`. | |
| stopped | No | Present when the call ended before sending every item: why, and whether the unsent items can be sent again as they are. | |
| not_sent | No | Ids of the items never sent because the call stopped early. |