Jev directory
CommunityJev Repos & SDKs
TypesafeSdk · nuget.org
.NET client for the TypeSafe System One API, version 1.1.0, with Noul, Choice and Score questions, experimental image and box questions, and validation that rejects malformed requests before sending.
- Reading time
- 2 min
- Published by
- Community
- Added
- Nov 23, 2026
This is one of several Jev listings for the same project. The canonical entry is TypeSafeSDK · nshkrdotcom.
Highlights
- Dotnet Typesafe SDK 1.1.0 is a .NET client for the TypeSafe API, targeting .NET 10.0.
- Supports NoulQuestion, ChoiceQuestion and ScoreQuestion, with answers read from Nouls, Choices and Scores collections.
- Image support is experimental and requires the TypeSafe-Danger-Zone-Images: true header; only PNG and JPEG are accepted.
- BoxQuestion locates a described region and returns Box edges as fractions of image height and width, using the jev-preview model.
- Requests are validated before sending, throwing TypeSafeException for missing questions or malformed criteria.
Questions about this entry
Short answers drawn from the linked project or page.
Run dotnet add package TypesafeSdk --version 1.1.0. The package targets .NET 10.0 and is compatible with that framework or higher. It can also be referenced through PackageReference, Central Package Management, Paket, or a #:package directive in C# file-based apps.
Set TYPESAFE_API_KEY in your environment, then construct a TypeSafeClient. The quickstart creates the client with no arguments and relies on that environment variable for the key.
NoulQuestion for boolean outcomes, ChoiceQuestion for picking among named criteria, and ScoreQuestion for scoring against an ordered list of criteria. Responses expose Nouls, Choices and Scores dictionaries keyed by the question name you supplied.
Image support is experimental and must be opted into with the TypeSafe-Danger-Zone-Images: true header, either per client or per call. Images must be PNG or JPEG; other formats are rejected with a TypeSafeBadRequestException, and requests carrying images are sent as multipart/form-data.
A BoxQuestion locates whatever its instructions describe inside an image. The answer's Box holds edges as fractions of the image height (Top, Bottom) and width (Left, Right), and Confidence is null when the API does not report one. The documentation uses the jev-preview model for this.
SystemOneAsync throws a TypeSafeException before sending when there are no questions, when a choice question has no criteria, when a score question has fewer than two criteria, or when a noul question has neither instructions nor a described outcome.
A plain interpolated string such as $"Compare {upload}" holds only the image's reference, so the call throws a TypeSafeException before sending unless that image is attached another way. Use TextWithAssets.Create or TextWithAssets.Join, or pass images in the assets dictionary under names used in plain strings.
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.