Skip to content

typesafe-sdk-dotnet

Community .NET port of the official JavaScript TypeSafe SDK with aligned configuration, retries and typed questions.

Librarybeta

Overview

TypeSafe.AI.Sdk is a community .NET client that ports the official @typesafe-ai/sdk JavaScript SDK. It targets net10.0 and netstandard2.0 and aims to match the JavaScript SDK's behavior and TypeSafe's docs. Choice, Score and Noul questions are built with Question helpers, and independent questions are batched into one SystemOneAsync call.

Configuration follows the JavaScript precedence: explicit options, then environment variables, then defaults (base URL, default model jev-latest, log level, a 10 second per-attempt timeout and two retries with backoff and jitter). Retryable statuses include 408, 429 and 5xx. It is published on NuGet with CI and a documentation site. A documentation site accompanies the package, and the API key can also be passed directly to the constructor.

What the decision model decides

TypeQuestionAnswers
ChoiceWhat is this ticket about?billing · technical · other

How it works

  1. dotnet add package TypeSafe.AI.Sdk.
  2. Set TYPESAFE_API_KEY.
  3. Call SystemOneAsync with state and questions.
  4. Read typed answers.

Strengths

  • Mirrors the official JavaScript SDK.
  • Clear retry and timeout defaults.
  • Docs site and CI.

Caveats

  • Unofficial port.
  • Requires the .NET 10 SDK to build.

Getting started

dotnet add package TypeSafe.AI.Sdk

At a glance

Type
Library
Status
beta
Language
C#
Runtime
.NET library
Has code
yes
Has tests
yes

Use cases and integrations

How curated lists describe it

Frequently asked questions

What is it ported from?

The official JavaScript SDK, @typesafe-ai/sdk.

What are the retry defaults?

Two retries with 500 to 5000 ms backoff and 25 percent jitter.

Which frameworks are targeted?

net10.0 and netstandard2.0.

Related projects

  • Hack Club's lightweight LLM proxy, listed for adding a Jev forwarding endpoint behind its auth, limits and usage logging.

    MCP serverproductionTypeScript
  • Ax, a DSPy-style multi-language LLM framework, listed with a native TypeSafe provider for Boolean, Choice, Score and raw Jev questions.

    PluginproductionTypeScript
  • Effect TypeScript library whose @effect/ai-typesafe package maps classify, probability and rating operations to Jev questions.

    ProjectproductionTypeScript
  • PHP monorepo whose Polyglot module adds a TypeSafe driver for typed Noul, Choice and Score decisions alongside LLM inference.

    ProjectproductionPHP
  • Go MCP server giving any client typed Jev decisions via OpenRouter or TypeSafe, with validated answers and no paid retries.

    MCP serverproductionGo
  • Simon Willison's LLM plugin that adds Jev as a model for yes/no, choice and score questions from the command line.

    PluginproductionPython