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

TypeSafe AI SDK for PHP

An unofficial PHP client for the TypeSafe AI System One API with typed Noul, Choice, and Score responses, synchronous and Guzzle-promise calls, model discovery, retries, and PSR-3 logging.

Category
Repos & SDKs
Published by
Community
Author
Butochnikov
Added
2026-09-22
Tagscommunityphpsdkconfidence

Highlights

  • Noul returns the probability of a yes answer, not a boolean; Score returns a possibly fractional expected score on a zero-based rubric.
  • AsyncTypeSafeClient returns Guzzle promises with then(), rejection handlers, wait(), and cancel(); closing cancels pending operations and is idempotent.
  • RetryPolicy defaults to two retries for 408, 429, 5xx, connection errors, and timeouts, with per-call policies that do not mutate client state.
  • Failures map to typed exceptions such as TypeSafeRateLimitError and TypeSafeAuthenticationError; debug logs redact credentials, not bodies.
  • Requires PHP 8.2 or later, cURL and JSON extensions, Composer 2, and a TypeSafe API key; environment variables are read directly, not from .env files.

Quickstart

php
use TypeSafe\{Choice, Noul, Score, TypeSafeClient};

$client = new TypeSafeClient();
$result = $client->systemOne(
    state: ['document' => 'I was charged twice. Please help ASAP.'],
    questions: [
        'billing' => new Noul(instructions: 'Is this about billing?'),
        'urgency' => new Score(criteria: ['low', 'medium', 'high'], instructions: 'Urgency?'),
    ],
);
$client->close();

Watch out

MIT-licensed. Community-maintained and unofficial, not affiliated with TypeSafe AI; the default test suite is offline, and live API compatibility and exhaustive equivalence with the Python SDK have not been verified.

More like this

A Ruby client for TypeSafe's System One API that returns typed Noul, Choice, and Score answers, validates obvious input mistakes before spending a request, and pools HTTP connections across threads.
Repos & SDKs#community#ruby#sdk
Communitytypesafe-sdk
A dependency-free Swift 6 client for the TypeSafe AI System One API, ported from the official JavaScript and Python SDKs, with Choice, Score, and Noul questions, strict concurrency, and configurable retries.
Repos & SDKs#community#swift#sdk
An unofficial Laravel integration for the PHP TypeSafe SDK that keeps typed DTOs and promises while adding package discovery, scoped lazy DI, config, a facade, and a recording fake.
Repos & SDKs#community#php#sdk
Back to all resources

From the community

Posts from builders shipping with Jev right now.

Follow @typesafeai

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

Navigating Neo4j with Jev

Jev 这个 waitlist 还是很给力的,昨天申请,今天就能用上。 给已经拿到 API、但还不知道怎么玩的人整理了一份 Awesome Jev,目前我能确认到的 Jev 项目基本都在这里: 1. jev-ultrafast Browser Use 做的高速浏览器 Agent。Jev Show more

Image
思维怪怪
思维怪怪
@0xLogicrw

前 OpenAI 研究员 Diogo Almeida 创办的 TypeSafe AI 推出新模型 Jev。它有点像一个能读懂自然语言的超级分类器,不生成文本,只返回选项、分数和概率,专门给软件做判断。 普通大模型需要一个 token 一个 token 往外生成,Jev 则可以并行给出多个结果。TypeSafe 还用新的 RLCD

Reply