# Jev Explained: How TypeSafe's System One Model Fits into Your Agents

## Executive summary

Jev, a decision model from TypeSafe AI, offers a paradigm shift from generative LLMs by providing mathematically constrained, typed answers accompanied by a confidence score. This allows developers to build 'production-ready' systems (Build Prod, not God) by enabling deterministic, high-speed guardrails and complex decomposition of fuzzy problems within agent loops, significantly enhancing reliability and observability.

## Key takeaways

- Jev vs. LLMs: Reliability and Constraint: Unlike generative LLMs, Jev is designed to return answers that are mathematically constrained to a specified interface, and it provides an associated probability and confidence score, allowing developers to implement granular downstream logic based on certainty.
- Decomposition and System Design: Jev excels at taking fuzzy problems and breaking them down into smaller, sequential questions (decomposition), which is necessary for building robust, interpretable, and observable intelligent systems.
- Runtime Guardrails and Evals: Due to its speed and low cost, Jev can function as an actionable runtime guardrail, enabling real-time monitoring and decision-making across all traces, a capability that was previously limited by LLM latency.

## Technical details

- Agent Integration and Decision Points: Jev is used within the agent loop for critical functions such as model routing (selecting the right model complexity), tool/skill selection (e.g., choosing from 500 tools), permissioning checks, and argument validation.
- System Architecture (System One/Two): The philosophy suggests that Jev operates as 'System One' (instinct/fast decision), which complements 'System Two' (reasoning/code) to build a complete, reliable system.
- Multimodal Capabilities: Jev supports multimodal input and has introduced the 'box' type, which allows for bounding box output (e.g., locating objects in video frames).

## Practical implications

- Implement Jev calls as deterministic logic within agent middleware to enforce guardrails before a generative LLM is called.
- Use Jev for automated tool selection and argument validation to reduce LLM token usage and improve efficiency.
- Leverage Jev's confidence scores to implement cascading logic, routing uncertain decisions to more powerful (and slower) models.

## Topics

Decision Models, AI Agents, Reliability, Structured Output, LangChain, Guardrails, TypeSafe AI, Jev in LangSmith Evals, Building a Harness with Jev, LangSmith

Source: https://www.youtube.com/watch?v=0vz5slHWAp8
