Skip to content

Pydantic Jev Examples

Four small Pydantic AI demos that put a Jev question at a fixed hook, before the model runs, before a tool runs or after the run ends, and act on the number.

Stars
4
Language
Python
Published by
Community
Author
adtyavrdhn
Last verified
Oct 2026

Pydantic AI capabilities made stronger with Jev: small runnable demos, one file each

Forks
1
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

These are small, runnable examples of Pydantic AI agents where Jev makes the quick calls: is this prompt ok, should this command run, should the bird flap. Jev is not a chatbot. You do not talk to it, and it does not write anything back. You give it a situation and one question. The situation can be any JSON, like a prompt, a shell command, or the state of a game. The question has a fixed answer shape, and there are two of them: Yes or no. "Is this prompt harmful?" You get back a probability from 0 to 1.

Quoted from the project's README. Read the full README.

Highlights

  • Four folders, input_guard, shell_guard, flappy_bird and jev_judge, each holding one Jev file, a demo.py and a README.
  • A guard is a dataclass overriding one hook; the input guard raises SkipModelRequest once the probability reaches its threshold.
  • The tool guard lets a command run, blocks it, or defers to a human through DeferredToolRequests, all inside one question.
  • Each example lists its own keys: TypeSafe alone for the input guard, TypeSafe plus Anthropic for the shell guard.

Watch out

These are snippets to copy, not an installable integration: each guard is a short dataclass you lift into your own project, and the README reduces the design to three decisions, which hook, what state you pass, and what the question says. The latency and cost figures, a few hundred milliseconds and roughly a thousandth of a cent per call, are the author's claims rather than a published benchmark. The snippets import from pydantic_ai_harness, which the README does not explain installing, and they pass 'anthropic:claude-fable-5' as the model id, so expect to substitute a model your account can actually reach. Loop detection at the after_node_run hook is listed in the README as not implemented yet. The Flappy Bird example is the author shoehorning Jev into a game loop, which is the point about call frequency but not a realistic integration. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

25GitHub stars
Agent runtime with a terminal UI and a messaging gateway that keeps memory, self-built skills, session search, scheduling, and subagents across Telegram, Discord, Slack, WhatsApp, Signal, and CLI.
Jev Integrations & Adapters#community#jevbest#catalog-import
51GitHub stars
GraphRAG layer that runs a 4-phase ingest-to-answer pipeline over Neo4j, Memgraph, AGE or Kuzu using Laya or Jev decisions instead of per-hop LLM calls.
Jev Integrations & Adapters#community#jevbest#catalog-import
23GitHub stars
Memory-maintenance library that checks every stored memory against each new event with Jev yes-or-no votes, then marks stale facts superseded or contradicted instead of editing them.
Jev Integrations & Adapters#community#jevbest#catalog-import
5GitHub stars
Community Agent Zero plugin that exposes one typesafe_query tool for combined Choice, Noul, and Score questions over the same evidence, with probability cards in chat.
Jev Integrations & Adapters#community#jevbest#catalog-import
A Letta agent skill that wraps TypeSafe System One (Jev) as a cheap external judge for texts and decisions, plus a paragraph scanner that maps where a document argues, lists, asks, or admits uncertainty. The README is in Russian.
Jev Integrations & Adapters#community#jevbest#catalog-import
3GitHub stars
A Home Assistant Assist conversation agent that sends each command to Jev as one request with a speculative fan-out of questions, then hands the typed answers to Home Assistant's own intents to do the device control.
Jev Integrations & Adapters#community#jevbest#catalog-import
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai