Loading Larkspur mini
Larkspur miniStatus as free text, up to 8 characters.
Chapter 5 of 7
Choices from a list
The answers are valid JSON now, but the free text inside them is odd. The order system only knows two statuses. The team gives the model a list instead of a blank.
This chapter: What changes when a field is a choice from a list instead of free text?
You will learn
- How an enum turns a free answer into a pick between allowed values
- That the pick follows the model’s own preference, shown live
- Why a draw can land on the other value
Words you’ll meet (2)
- Enum
- A field whose value must be one of a fixed list, like on time or delayed.
- Preference
- The share of probability the model gives each allowed value at the step where they part ways.
The picture on the left is live. Each step below asks you to do one thing in it; the story continues here as you go.
Step 1 of 4
The answers are valid JSON now. Here is the status field as free text, capped at 8 characters: the mask keeps the JSON in shape, but inside the quotes Larkspur mini writes whatever it finds likely. The order system knows two statuses, and this isn’t either.
Loading Larkspur mini…