Classify into one of your options
jev_classifyClassify your input into one of your predefined options. Returns the chosen option, probabilities for every option, confidence, and a recommended action triggered by confidence thresholds.
Instructions
Pick exactly one option from a set you define. Returns the chosen option, the probability of every option, a confidence value, and a recommended action gated on confidence. Use when the answer is one of a fixed set. The options must be supplied by you: Jev selects among them and cannot invent a new one. Up to 255 options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | The content to evaluate. A plain string for text, or an object/array for structured data such as a record, a diff, or a chat log. | |
| options | Yes | Map of option name to a description that separates it from the others. Both the name and the description are sent to the model, so keep names short and distinct. A description may be an object or array when structure clarifies it, or null to leave it undescribed. | |
| add_none | No | Add a no-match option meaning none of yours fits. Defaults to true. Turn off only when one option must always apply. If you already use the name 'none', the added option takes a different key and it is reported back as none_option. | |
| question | Yes | The judgment to make. A string, or an object/array when the question has several labelled parts. This is the only instruction Jev sees, so state it in full. | |
| act_above | No | Confidence at or above which the answer is marked 'act'. Default 0.8. Calibrate on your own data and the cost of being wrong. | |
| review_above | No | Confidence at or above which the answer is marked 'review' rather than 'abstain'. Default 0.5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| usage | Yes | ||
| action | Yes | ||
| choice | Yes | ||
| confidence | Yes | ||
| thresholds | Yes | ||
| none_option | Yes | The key carrying the no-match meaning, or null when none was added. | |
| probabilities | Yes |