Skip to content
JevDirectory.org
CommunityRepos & SDKs61 starsVerified 2026-09-22

typesafeify (DSPy decorator)

A DSPy fork whose @typesafeify decorator routes decision-shaped signature fields to Jev, so bool, Literal, and scored outputs come back typed while freeform fields still use the LM.

Category
Repos & SDKs
Published by
Community
Author
typesafeainate
Added
2026-09-22
Tagscommunitypythonsdkintegrationagents

Highlights

  • One decorator turns bool, Literal, and configured score fields into a single Jev request, while string fields stay with DSPy's LM.
  • Across three observed tickets the decorated run averaged 1.958s versus 2.329s for plain DSPy, 15.9% faster.
  • Modeled cost fell from $0.000377 to $0.000263 per ticket, a 30.1% reduction.
  • The demo checks field and instruction parity between the baseline and decorated signatures before either request runs.

Quickstart

python
from typesafe_dspy import typesafeify

@typesafeify(score_fields={"severity_score": [1, 5]})
class SupportTicketTriage(dspy.Signature):
    ticket: dict = dspy.InputField()
    customer_impacting: bool = dspy.OutputField()
    owner_team: Literal["api-platform", "billing"] = dspy.OutputField()
    severity_score: float = dspy.OutputField()

Watch out

MIT-licensed, but a deliberately stripped-down proof-of-concept fork rather than a replacement for upstream DSPy; needs both OpenAI and TypeSafe keys.

More like this

An async LangGraph workflow that sends a mocked email to Jev, receives a typed Choice between invoice and general, and routes it to a demo handler, with confidence and both label probabilities printed for inspection.
Repos & SDKs#community#python#agents
5.3kGitHub stars
A filesystem-first framework for durable AI agents whose auto model router defaults to Jev through Vercel AI Gateway and whose evaluate helper asks typed Choice, Score, and Boolean questions inside tools.
Repos & SDKs#community#typescript#agents
Communityeve
475GitHub stars
A local server and Python package that runs open models with Hugging Face Transformers or PyTorch and returns Choice, Score, and Noul answers read from next-token logits instead of generated JSON.
Repos & SDKs#community#python#open-models
Communitysimple-jev
Back to all resources

From the community

Posts from builders shipping with Jev right now.

Follow @typesafeai

Classifying rows in DuckDB

A playable 16-judgment demo

AI multiple choice, not essay writing

Screening agent actions with Jev

Tested TypeSafe’s Jev (no-text, probability-only model) as an AI agent safety monitor. Checking each action first worked well caught most attacks with almost no false blocks, and much faster than Gemini.

Image
Image
Image
Diogo Almeida
Diogo Almeida
TypeSafe AI
@CompleteSkeptic

After co-inventing ChatGPT, I kept asking myself: why have superhuman chat models not led to AGI? I’ve spent the last 2 years in stealth building a new way to train models (RLCD), and a new type of frontier AI model that we are releasing today: Jev • 20-200x faster • 40-400x

Reply

Cua's small System One models

A 706K-parameter form filler

cua open sourced a 706k param model that fills a whole form in one 50ms pass the llm agent doing the same form took 23 turns and 39.6 seconds the specialists are going to eat the generalists from the bottom

Cua
Cua
@trycua

1/ Introducing CUA-S1: a family of System One Models, small, specialized, and built for computer use. Today we're open-sourcing CUA-S1-FORMS, the first in the family: github.com/trycua/cua

Image
Reply