JevMade

Sign in
← Back to guides

JevMade field notes / Written article

Get started with Jev in Python

Start with a lost-property question at a station desk, then use Jev to understand a visitor's words and choose where to send them.

Original by Philipp AcsanyGetting started

Listen to this guide

JevMade’s plain-English explanation

0:00 /

Our summary

Philipp Acsany's first Python script accepts only Y or N. A visitor who types anything else cannot get through it. The tutorial replaces that check with a question sent to Jev through OpenRouter, then extends the desk to handle several kinds of request.

The author's first question misunderstands a simple yes: it asks whether the visitor lost something without supplying the question the visitor answered. The example scores 0.31. Asking whether the reply is affirmative scores 0.98. A later call asks for a desk, urgency and staff assistance together.

Those outputs guide the script; they do not send the visitor anywhere by themselves. Describe the desks and urgency levels, and ask again when a reply is unclear. The setup needs Python 3.10 or later and OpenRouter credit. The displayed answers are example runs, so your results can differ.

Key takeaways

  1. A reply such as yes needs its question, or a narrower check of whether the reply is affirmative.
  2. Give the program a general-information destination when none of the specific desks fits.
  3. Keep the key outside the script. An OpenRouter key must go to OpenRouter's address, not TypeSafe's own address.

These notes cover the written Real Python tutorial, not its separate video course. September 24 is the update date; the original publication date was not established. The example probabilities are not a measured station-routing accuracy.

Real Python

Read the original guide Opens the author’s site in a new tab.

Keep this for later

Sign in to bookmark experiments, guides and videos, and keep notes only you can see.

Continue to sign in

We’ll bring you back to this listing.