Choice
Pick one option from a closed set.
Type
typesafe.choiceFolder
typesafeChannels
Any
Pipe
Value
Scope
Any
Choice picks one option from a list you write. Use it to route a ticket, classify a document, or name a category. The winning key is the one with the highest probability. Confidence tells you how clearly that option won. A split across options lowers confidence.
Add an option whose key is other when the list might not cover every input.
Configure
| Setting | Description |
|---|---|
| Model | jev-latest (default), jev-preview, or jev-1.13.0 |
| State | The text or JSON to judge |
| Instructions | What to decide. One specific question. |
| Options | 1 to 255 rows. Key is the value later blocks read. Description separates that option from the others. Leave the description empty when the key is already clear. |
Handles
| Handle | Role |
|---|---|
| In (target) | Incoming connection |
| Out (source) | Continues after the answer returns |
Pipe schema
The next block reads this on the data pipe (pipe.value).
| Key | Type | Description |
|---|---|---|
choice | text | Key of the winning option |
probabilities | object | Every option key and its probability. The values add up to 1. |
confidence | number | 0 to 1. How peaked the probabilities are. |
model | text | The Jev version that answered |
usage | object | input_tokens and output_tokens |
Use case
- Send a support message to billing, technical, or sales, and hand low confidence to a person.
- Prefer Evaluate when you also need a score or a yes/no on the same message.