BoundaryML drops feelings for typed AI if-statements
BoundaryML has launched feelings, an open-source project demonstrating how semantic evaluations and typed AI if-statements can be implemented natively in BAML rather than requiring a bespoke language. By pairing BAML with TypeSafe AI's Jev classifier, the library introduces methods like .feels() and .matches<T>() for fast probabilistic routing while dispatching generative tasks to LLMs via .ask().
Probabilistic "AI if statements" do not need bespoke toy DSLs when robust type systems and dedicated classification models can simply turn vibes into first-class methods.
• Pragmatic language design: Rather than inventing a whole new programming language for fuzzy evaluation, feelings implements .feels() in roughly 20 lines of BAML through a blanket interface implementation over all types.
• Specialized compute routing: Offloading fast semantic classifications and routing decisions to TypeSafe AI's Jev while reserving heavyweight generative LLMs for .ask() dramatically lowers latency and token costs.
• First-class developer tooling: Developers gain static analysis, compile-time exhaustiveness checking on pattern matching, offline testing, and shell-friendly parallel streaming (such as semantic grep) out of the box.
• Strict runtime guardrails: The system explicitly restricts classifier return shapes to booleans, floats, enums, and structured classes, preventing malformed calls before any network requests occur.
DISCOVERED
1h ago
2026-09-19
PUBLISHED
1h ago
2026-09-19
RELEVANCE
AUTHOR
vaibcode