
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Most AI tutorials teach you to chat with an LLM model. But when your code needs a decision, a chat reply is the wrong tool. Your code then has to parse a paragraph, the format can change between runs, and nothing tells you how sure the model was.
Decision models like TypeSafe Jev work differently. You send a message and a few typed questions. The model sends back probabilities, not prose that the customer wants a refund, "billing" as the most likely team, an urgency level. Our Python code reads those numbers and decides what happens next. Kind of like an intelligent if else block.
This beginner course teaches you to use decision models from Python, step by step. Every example is real code you can run, with real outputs from the model.
What you'll learn
When to use a decision model instead of a chat LLM, and when not to
How to send a decision request with httpx and read the answers from the JSON reply
The three question types: yes/no, choice and score, and how to pick the right one
How to ask several questions in one request and turn the answers into if statements
How to use the official Python SDK with typed questions and answers
How to word questions well: score levels, an "out of scope" option, and structured state
Confidence routing: when to act automatically, when to review, and when to send a case to a person
How to pick thresholds from labelled examples
How to count, combine scores and extract values in code, where models are weak
Production skills: pydantic response models, HTTP status codes, retries with backoff, request cost, and pinning a model version