Skip to content

Jev glossary

PrimitivesChoice question

Choice

Pick one option from a set you define; returns the selected option, a probability for every option, and confidence.
Category
Primitives
Also known as
Choice question
Reading time
1 min
Related terms
6
Directory entries
8
Docs
docs.typesafe.ai
Added
2026-09-24

Definition

A Choice question takes a map of options to rubric descriptions and returns the highest-probability option, the full probability distribution, and a 0-1 confidence. A Choice can hold up to 255 options, so large candidate sets need pre-filtering or multiple passes.

Option names and descriptions are both sent to the model; use null when a name speaks for itself. Choice fits answers that are one of a known set with no order between them (routing a ticket, classifying a document, detecting a language), and an explicit other or none-of-the-above option is recommended when the list might not cover every input.

Tagsprimitivesclassification

From the Jev directory

Directory entries that go deeper on this term.

Pick one option from a set you define. Returns the option, the full probability distribution, and 0-1 confidence, with up to 255 options and parallel questions that barely add latency.
Jev Practices & PatternsDocs#official#primitives#choice
Official
The three TypeSafe question types, the typed answers they return, how to choose between them, and how to ask several in a single call.
Jev Practices & PatternsDocs#official#primitives#choice
Official
Two browser games against a live Jev opponent: a first-person quick-scope arena and a neon survival challenge, where Jev picks tactics and authored code handles movement and physics.
Jev CookbooksPlayground#community#playground#games
Community
Four board games against Jev where the model picks the move and code keeps the rules: tic-tac-toe, Connect Four, Battleship, and Wordle.
Jev CookbooksPlayground#community#playground#games
Community
An autonomous Pac-Man recreation steered by Jev: before each junction the game sends the maze, actors, and legal directions as structured data, and Jev returns one direction with a probability per option.
Jev CookbooksPlayground#community#playground#games
Community
A playable Tetris where you can drop pieces yourself or let the TypeSafe Choice primitive pick every move.
Jev CookbooksPlayground#community#playground#games
Community

2 more matching entries in the full directory.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai