Jev directory
CommunityJev Guides & Articles
Jev TypeSafe AI Tutorial
Small Python tutorial project that classifies a user's reply with the TypeSafe SDK and routes the response on the lost_something score: above 0.8 to the counter, below 0.2 to a new question, otherwise a clarification prompt.
- Stars
- 0
- Reading time
- 1 min
- Published by
- Community
- Added
- Oct 2026
Highlights
- Python tutorial that classifies a user's reply with the TypeSafe SDK and routes on the lost_something score.
- Scores above 0.8 send the user to the lost-and-found counter.
- Scores below 0.2 ask what else the user needs help with.
- Scores from 0.2 through 0.8 inclusive trigger a clarification prompt.
- Requires Python 3.13 or newer and uv for dependency management.
Questions about this entry
Short answers drawn from the linked project or page.
From the project root, run uv sync. The dependencies are declared in pyproject.toml and installed by uv.
From the project root, run uv run python src/jev_typesafe_ai/lost_found.py, enter a response when prompted, and type exit or press Ctrl+C to quit.
Create a .env file in the project root with TYPESAFE_API_KEY, TYPESAFE_DEFAULT_MODEL, and TYPESAFE_BASE_URL. Keep the API key private and do not commit the .env file.
The project requires Python 3.13 or newer and uv for managing the project and its dependencies. The declared dependencies are typesafe-sdk and python-dotenv.
The response is routed to direct the user to the lost-and-found counter.
Scores from 0.2 through 0.8, inclusive, cause the example to ask the user to clarify.
No. The top-level main.py is a separate starter stub that prints a greeting and does not launch the interactive example. Run it with uv run python main.py.
From the Jev guides
Original write-ups on what this entry is for.
From the Jev AI model community
Posts from builders shipping with Jev right now.