Jev directory
CommunityJev Repos & SDKs
PHP AI SDK TypeSafe Provider
Composer package that adds TypeSafe Jev decision models to the framework-agnostic PHP AI SDK, returning typed answers with provider-reported probabilities and confidence. MIT licensed.
- Reading time
- 1 min
- Published by
- Community
- Added
- Nov 23, 2026
Highlights
- Installed with composer require aisdk/typesafe.
- Reads a TYPESAFE_API_KEY value from the environment.
- Questions are declared with Question::predicate and read back with thresholds such as yes(0.9).
- The example selects the model with TypeSafe::model('jev-latest').
- Released under the MIT License.
Questions about this entry
Short answers drawn from the linked project or page.
Run composer require aisdk/typesafe. The package is published on Packagist under the name aisdk/typesafe and installs into any project already using the framework-agnostic PHP AI SDK.
Set TYPESAFE_API_KEY in your environment. The package reads that value to authenticate requests to TypeSafe Jev.
Call Generate::decision with your state array, chain model(TypeSafe::model('jev-latest')) and questions(Question::predicate('urgent', 'Does this need immediate attention?')), then run(). Read the result with $result->answer('urgent')->yes(0.9).
The usage example passes 'jev-latest' to TypeSafe::model, so that is the model name shown in the package documentation.
The package is released under the MIT License, and the repository includes a LICENSE file with the full text.
The PHP AI SDK documentation site carries a TypeSafe provider section covering configuration, supported features, and further examples. Contributing and support guidelines live in the phpaisdk organization repositories.
It returns typed answers to the questions you declare, with probabilities and confidence values reported by the provider, so callers can apply their own thresholds.
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.