Jev directory
CommunityJev Integrations & Adapters
AI SDK TypeSafe Provider
Official AI SDK provider package for TypeSafe AI. Through its decisionModel, used with the AI SDK's experimental_decide, it decides answers to Choice, Score, and Boolean questions using TypeSafe's System One models such as jev-latest.
- Reading time
- 1 min
- Published by
- Community
- Added
- Oct 2026
Highlights
- Install with npm i ai @ai-sdk/typesafe-ai
- Exposes typeSafeAi.decisionModel('jev-latest') for use with experimental_decide
- Questions are declared with choice, score, or boolean types plus instructions and criteria
- Decisions come back on result.answers
- Designed for deciding typed answers rather than generating text
Questions about this entry
Short answers drawn from the linked project or page.
Install it alongside the AI SDK itself: npm i ai @ai-sdk/typesafe-ai. You then import typeSafeAi from '@ai-sdk/typesafe-ai' and experimental_decide from 'ai'.
experimental_decide. You pass it a model, a state string, and a map of questions, and it returns typed answers for those questions.
The provider decides answers to Choice, Score, and Boolean questions. In the documented example a department question uses type 'choice' and a requestsRefund question uses type 'boolean'.
Pass a System One model to typeSafeAi.decisionModel, as in typeSafeAi.decisionModel('jev-latest') shown in the package's usage example.
The documented example logs result.answers, which holds the decided answers for each question named in the questions object.
Yes. Each question can carry instructions, and choice questions can carry a criteria map, such as billing for charges and refunds and support for other requests.
Yes. The install command brings in both ai and @ai-sdk/typesafe-ai, and the usage example imports experimental_decide from 'ai' alongside the typeSafeAi provider.
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.