SystemOne.Providers.Vercel 0.1.0

dotnet add package SystemOne.Providers.Vercel --version 0.1.0
                    
NuGet\Install-Package SystemOne.Providers.Vercel -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SystemOne.Providers.Vercel" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SystemOne.Providers.Vercel" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="SystemOne.Providers.Vercel" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SystemOne.Providers.Vercel --version 0.1.0
                    
#r "nuget: SystemOne.Providers.Vercel, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SystemOne.Providers.Vercel@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SystemOne.Providers.Vercel&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=SystemOne.Providers.Vercel&version=0.1.0
                    
Install as a Cake Tool

SystemOne

繁體中文

Typed .NET 10 client for System One decision models. Ask named questions about any text or JSON and get probabilities back: noul (yes/no), choice (one of up to 255 options), score (an ordered scale), box (a region of an image). No text generation and no third-party dependencies.

The same code runs against a self-hosted model (clef, Kev, laya-serve, Ollama), a hosted service (TypeSafe Jev, Cloudflare Workers AI, OpenRouter, Vercel AI Gateway) or an in-memory mock. Only the line that creates the provider changes.

Install

Packages are split by content; install only what you call.

Package Contents Depends on
SystemOne.Abstractions ISystemOne, the SystemOneProvider base, request and answer types, SystemOneException, the mount points —
SystemOne UseSelfHosted for any self-hosted /v1/systemone server, UseFallback Abstractions
SystemOne.Providers.Clef UseClef for a self-hosted clef server SystemOne
SystemOne.Providers.TypeSafe UseTypeSafeAi SystemOne
SystemOne.Providers.Cloudflare UseCloudflareWorkersAi SystemOne.Providers.Clef
SystemOne.Providers.OpenRouter UseOpenRouter SystemOne
SystemOne.Providers.Vercel UseVercelAiGateway SystemOne
SystemOne.Testing UseMock Abstractions
SystemOne.ModelSources.HuggingFace FromHuggingFace(...) for in-process providers Abstractions
dotnet add package SystemOne.Providers.Clef
dotnet add package SystemOne.Testing

Quick start

// no using needed: every type is in the global namespace and SystemOne is the root
var systemOne = SystemOne.Providers.UseClef(new Uri("http://localhost:8000"));

var request = SystemOne.Requests
    .Noul("large", "Is this a large purchase?")
    .Choice("category", "Merchant category", options => options
        .Option("grocery", "supermarkets")
        .Option("convenience", "convenience stores"))
    .Score("risk", "Fraud risk", "low", "medium", "high")
    .For(new { amount = 12000, merchant = "7-Eleven" });

var response = await systemOne.DecideAsync(request);

// 0.79
var large = response.GetNoul("large").Probability;
// "convenience"
var category = response.GetChoice("category").Option;
// 1.17: the expected level, 0-based
var risk = response.GetScore("risk").Level;

To call TypeSafe instead, replace the first line with SystemOne.Providers.UseTypeSafeAi(apiKey). To keep working when your own server is down, chain providers with SystemOne.Providers.UseFallback(...). In tests, use SystemOne.Providers.UseMock().

Documentation

Document For
docs/usage.md everyone: requests, responses, providers, errors, testing, model weights
docs/writing-providers.md authors of providers, request templates, factory helpers and weight sources
docs/agents/using-systemone.md coding agents writing code that uses SystemOne
docs/agents/extending-systemone.md coding agents writing providers and extensions
docs/adr/0001-object-creation.md why objects are created through mount points

Every package also contains the two agent guides under docs/agents/, so an agent can read the version that is installed at ~/.nuget/packages/<package-id>/<version>/docs/agents/.

Samples

The sample uses UseFallback(UseClef(...), UseMock()), so it runs on any machine. Set SYSTEMONE_CLEF_URL to use your own clef server (default http://localhost:8000). response.Model shows which provider answered.

  • dotnet run --project samples/SystemOne.Example: support-ticket triage.

tests/SystemOne.Tests/ZeroTrustTests.cs doubles as a zero-trust example: one policy written as a request template, five access scenarios from an ordinary office login to a Tor admin delete, and the actions each may get. It runs against clef when SYSTEMONE_CLEF_URL is set.

Development

dotnet build -c Release -warnaserror
dotnet test -c Release
bash tools/check-docs.sh

Integration tests call real endpoints and run only when their environment variables are set:

SYSTEMONE_CLEF_URL=http://host:8000 TYPESAFE_AI_API_KEY=… dotnet test --filter "IntegrationTests|ZeroTrustTests"

If TYPESAFE_AI_API_KEY is set globally on your machine, every local dotnet test makes paid TypeSafe calls; unset it for an offline run. Contributors and coding agents: see AGENTS.md.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 150 10/23/2026