Skip to content

Article

Jev in BAML v1

BAML maps function return types onto Jev questions: bool and float become Noul probabilities, enums and literal unions become Choice picks, and one class turns its fields into a single multi-question request.
Format
Article
Reading time
3 min
Published by
Community
Author
Sam Lijin
Last verified
Oct 2026

Highlights

  • Ships first in a nightly and targets BAML v1: run baml toolchain use nightly, then baml toolchain update, and pin projects with baml toolchain pin nightly.
  • bool returns true when the Noul probability is at least 0.5; float keeps the probability so NeedsPaging can compare it against 0.8.
  • An enum's @@description supplies the question, each variant's @description its criteria, @alias the model-visible choice key, and @skip excludes variants.
  • A class sends one request per field: TicketAssessment asks urgent, route, reply_within_hour, and mood together, while nested classes flatten into dotted ids.
  • There is no Score mapping: 1 | 2 | 3 | 4 | 5 returns one of five integers, not an interpolated score such as 3.1.

Watch out

A vendor announcement of an unreleased integration: it arrives only in the nightly containing the TypeSafe client implementation, not in earlier releases or the v0 syntax, and its example answers are illustrative. Choice-key collisions are undecided in this release, and free-form string returns are rejected before any request.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai