Skip to content
sanamhub edited this page Oct 7, 2026 · 3 revisions

TypeSafeSharp

Unofficial .NET client for TypeSafe AI's System One API and its Jev model. It targets netstandard2.0 and net10.0 and ports the official JS and Python SDK behaviour: retries, one exception per status, key handling, typed answers, dependency injection and OpenTelemetry tracing.

dotnet add package TypeSafeSharp
dotnet add package TypeSafeSharp.Extensions.DependencyInjection
using TypeSafeSharp;

using var client = new TypeSafeClient(new TypeSafeClientOptions());  // reads TYPESAFE_API_KEY

var response = await client.SystemOneAsync(
    "I was charged twice this month. Please fix it today.",
    new Dictionary<string, Question>
    {
        ["category"] = Question.Choice("What is this message about?", "billing", "technical", "other"),
    });

Console.WriteLine(response.GetChoice("category").Choice);

Pages

Not affiliated with or endorsed by TypeSafe AI.

Clone this wiki locally