Decision Library
Example use cases for decision models
Decision models answer typed questions — noul, choice, score — instead of generating text. These are the usage examples from Liquid’s d1 docs and TypeSafe’s primitives docs. Start with Liquid’s d1-ultra pack or TypeSafe’s Jev pack.
Vendor packs
Browse by decision model
d1-ultra
NewUsage examples from Liquid’s d1 docs: noul, choice, score, and combining all three. Same questions and sample answers as the docs. Calls use `d1-ultra`.
Jev
NewUsage examples from TypeSafe’s primitives docs. The pack tracks Jev, not a version pin; examples call `jev-latest`.
Example use cases
All examples
Ask if a message is harmful
A Noul from Liquid’s usage examples: one probability you threshold in code.
Ask multiple questions together
TypeSafe’s combined primitives example: noul, choice, and score against the same ticket.
Classify a customer inquiry
A Choice from Liquid’s usage examples: closed labels, a distribution, and a confidence value.
Combine noul, choice, and score
Liquid’s combined usage example: classify, route, and prioritize one ticket in a single call.
Point questions at fields in state
TypeSafe’s structured-state example: two Nouls that name paths with backticks.
Route a shoe-store ticket
TypeSafe’s Choice example: which department should handle a wrong-size order.
Score a Safari crash
TypeSafe’s Score example: how severe a Safari-only export crash is on a three-level rubric.
Score support urgency
A Score from Liquid’s usage examples: a weighted position on a four-level rubric.