What it does
Handlers fill in missing choice probabilities, score legends and zero-token usage from the incoming request, and can simulate errors, rate limits, timeouts and retry sequences. It is a test-only mock, not a real Jev client.
SDKs & clients
Write deterministic tests for apps that call Jev by mocking its HTTP endpoint with MSW, so the official SDK still runs without real API calls or credits.
Only you can see your notes.
Saved in this browser only.
Screenshot unavailable. Open the experiment ↗
Handlers fill in missing choice probabilities, score legends and zero-token usage from the incoming request, and can simulate errors, rate limits, timeouts and retry sequences. It is a test-only mock, not a real Jev client.
Install jev-msw and msw as dev dependencies, then start an MSW server in your test setup.
Register a handler such as jev.choice("category", { choice: "billing", confidence: 0.96 }) and call the real @typesafe-ai/sdk client as usual.
Check the returned answer, or inspect jev.history to assert what requests were sent.