Small decisions. Interesting possibilities.Submit contentSubmit

How it uses Jev

The Swift bridge converts an Apple @Generable output schema into Jev questions and reconstructs a typed result. The sample nutrition-label app asks whether a product is safe, scores allergen risk and processing tier, and chooses a primary dietary flag.

What Jev decides

Nutrition-label dietary safetyExample answers · not a recorded Jev response · Source ↗
Question 1 · isSafe
YOUR APP
INSTRUCTION

Is the product fully compliant with the dietary restriction profile?

STATE

The nutrition scanner passes the product label and the user’s dietary restriction profile as the judgment context. Actual label values vary by scan.

JEV · NOUL
YesNo
Question 2 · allergenRisk
YOUR APP
INSTRUCTION

Rate allergen and cross-contamination risk.

STATE

The nutrition scanner passes the product label and the user’s dietary restriction profile as the judgment context. Actual label values vary by scan.

JEV · SCORE
03
Question 3 · processingTier
YOUR APP
INSTRUCTION

Classify NOVA processing tier.

STATE

The nutrition scanner passes the product label and the user’s dietary restriction profile as the judgment context. Actual label values vary by scan.

JEV · SCORE
03
Question 4 · primaryFlag
YOUR APP
INSTRUCTION

Choose the primary dietary conflict or nutritional warning.

STATE

The nutrition scanner passes the product label and the user’s dietary restriction profile as the judgment context. Actual label values vary by scan.

JEV · CHOICE
  1. none
  2. hiddenGluten
  3. dairyOrLactose
  4. seedOils
  5. highAddedSugar
  6. artificialSweeteners
  7. excessiveSodium
  8. animalDerivatives

App workflow

  1. Build a typed schema

    The app declares a DietarySafetyDecision @Generable type with Boolean, bounded integers, and a DietaryFlag enum.

  2. Translate and ask Jev

    The bridge maps constrained schema properties to Noul, Score, and Choice questions and sends the product context.

  3. Reconstruct the result

    The bridge decodes Jev answers back into the Swift typed decision for the nutrition scanner.

Why it is interesting

The bridge makes Jev usable behind Apple Foundation Models’ typed schema interface, while rejecting unbounded strings and carrying schema constraints into the Jev request.