typesafeainate/dspy-typesafeify
User repository on GitHub
Add a decorator for dspy Signatures that automatically uses TypeSafe where relevant
- Forks
- 3
- Last pushed
- Updated Oct 2026
Repo stats from the GitHub API, cached Oct 2026.
Jev directory
typesafeainate/dspy-typesafeify
User repository on GitHub
Add a decorator for dspy Signatures that automatically uses TypeSafe where relevant
Repo stats from the GitHub API, cached Oct 2026.
This is a deliberately stripped-down proof-of-concept fork of DSPy. It exists to test one idea in isolation: can a normal DSPy signature opt into Typesafe's typed inference path with one decorator, while application code keeps constructing and calling dspy.Predict exactly as before? The meaningful integration diff is intentionally tiny: The caller does not learn a new predictor API: @typesafeify(...) reads the signature's output annotations and builds a hybrid execution plan.
Quoted from the project's README. Read the full README.
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.
Short answers drawn from the linked project or page.
Original write-ups on what this entry is for.
Posts from builders shipping with Jev right now.