JevMade

Sign in
← Back to experiments

SDKs & clients

jev-msw

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.

Bookmark: jev-msw Keep this in your collection.
Leave a noteWhat would you try with this? : jev-msw

Only you can see your notes.

Source screenshot of jev-msw
SOURCE SCREENSHOTFull screenshot ↗

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.

How you can use it

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.

Your note

Only you can see this. Clear the text and save to remove it.

Keep what you save

Sign in to keep bookmarks and private notes on every device. We email you a link; there is no password, and the same link creates your account.