Skip to content

Jev directory

TypeSafeAI (tryAGI .NET SDK)

A NativeAOT-ready .NET SDK generated from TypeSafe's OpenAPI definition, with typed question sets, batching, dependency injection, and Microsoft.Extensions.AI integrations.
Stars
0
Language
C#
License
MIT
Reading time
3 min
Published by
Community
Author
tryAGI
Last verified
Sep 2026

About this project

TypeSafeAI First-class, NativeAOT-ready .NET SDK for TypeSafe AI: generated transport plus an ergonomic typed API. Generated transport, designed API The raw client is regenerated from the official OpenAPI definition ; typed questions, batching, routing, DI, and MEAI integrations are maintained as handwritten extensions. Complete ecosystem parity Includes the official JavaScript/Python examples plus the strongest .NET features from TypeSafeAI.Net, typesafe-sdk-dotnet, and Jev.Net.

Quoted from the project's README. Read the full README.

Highlights

  • The raw transport is regenerated from the official OpenAPI definition, while typed questions and MEAI wiring are handwritten extensions.
  • Structured state is sent without reflection, so the SDK works under NativeAOT and with source-generated serialization.
  • One of more than 200 .NET SDKs maintained with AutoSDK, with a continuous audit of regeneration, trimming, and public API visibility.
  • The generated RawTypeSafeClient stays public for direct OpenAPI-level access when the typed layer is too narrow.

Quickstart

csharp
using TypeSafeAI;

using var client = new TypeSafeClient(apiKey);
var questions = new QuestionSet();
var billing = questions.AddNoul("billing", new NoulQuestion("Is this about billing?"));
var urgency = questions.AddScore("urgency", ScoreQuestion.FromValues(
    ["Can wait", "This week", "Today"], "How urgent is it?"));

var result = await client.SystemOneAsync("I was charged twice. Please help today.", questions);

Watch out

MIT-licensed. Community SDK from tryAGI, not affiliated with TypeSafe; reads TYPESAFE_API_KEY from the environment.

Questions about this entry

Short answers drawn from the linked project or page.

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.

Follow @typesafeai