IntentSharp

Changelog

What is new and what changed in each IntentSharp release. Versions are numbered major.minor.patch, and a change that breaks existing code raises the major number.

1.1.0 (2026-11-13)

A fifth package and additions to the four existing ones. Nothing is removed or changed in meaning, so an application on 1.0 upgrades without code changes (Upgrading from 1.0 to 1.1).

Packages

  • IntentSharp.Specialist is new. It lets developers and programs define models per intent, so an application can use several models easily, within one context or across several. SpecialistRuntime obtains a model for a catalog intent from a specialist service you wire in (ISpecialistService): it sends the intent's definition and the context you choose, waits for an offer, judges whether it fits (a comparison in code by default, probe cases and an AI judge when you add them) and runs the intent on that model, with every answer checked as before. It keeps the specialist's name and the returned intent so a restarted application can use them again. It never trains, tunes or changes a model. It depends on exactly its own version of IntentSharp and IntentSharp.Catalog, and one license covers it with the other packages (Models per intent).

Added

  • IntentClientBuilder.AddProvider adds providers that are reachable only by name: through AIRequestOptions.Provider, an intent's provider or a role of the provider file that names them. They never become the primary or the fallback, and never join a chain the client makes up itself. Under dependency injection, services.AddNamedProvider does the same (Providers).
  • A provider can report the host of each request (IAIProvider.GetRequestHost), and the Request checkpoint's request.host reads it for each answer call. Providers that do not report one behave as before.
  • IntentFile.Read reads intent file text, JSON or YAML, into definitions and problems, with the checks the catalogs use, and IntentFile.Write writes definitions as JSON intent file text (Intent file reference).
  • An intent definition takes extensions, a map of data of your own or of another package, which is never sent to a model, and maxInputChars, the intent's input limit.
  • AIRequestOptions.MaxInputChars sets the input limit for one request, as a code value of client.maxInputChars: a settings document or a rule set still beats it. A longer input is still refused before any model call and never cut (Settings reference).
  • AIRequestOptions.Partition = CollectionPartition.ByItems lets AIMapAsync, AIFilterAsync and AIMapValuesAsync split a collection longer than the input limit into batches of whole items, each checked, and merge the results. The default, None, keeps one request (Collections).
  • IntentClientBuilder.AddSubject declares a subject beside AddSetting, and settings and subjects declared on the builder reach the rule files of WithGuardrailFiles, so a rule file can use them with nothing declared again. IntentClient.ResolveSettings reads every declared setting without a check or a model call (Guardrails).

1.0.1 (2026-11-06)

A package documentation and metadata update for all four IntentSharp packages. The runtime, public API and license terms are unchanged.

  • Package READMEs explain which package to choose, show complete examples, and distinguish native model providers from chat-client integrations. The Catalog, Guardrails and Extensions.AI examples run offline using scripted replies.
  • Package titles, descriptions and tags make it easier to find the right package for checked AI output, YAML or JSON intent files, rule files, or Microsoft.Extensions.AI integration.

See the IntentSharp packages on NuGet, or follow the quick start to try the offline sample.

1.0.0 (2026-10-28)

The first stable release of IntentSharp, in four packages. The core no longer has vendor helpers or a database API: the providers come from a provider file, and a database or any other technology is a target that your code connects. Rule sets check model calls, replies, tools and commands in your process, and the rule files, intent files, the settings file and the provider file are versioned documents that can change while the application runs.

Code written for 1.0.0-rc.3 needs changes before it compiles. Migrating from 1.0.0-rc.3 to 1.0.0 gives each removed or renamed member with its replacement, and the behavior that changed; Breaking changes has the short list.

Packages

  • IntentSharp.Guardrails is new. It reads rule sets from YAML or JSON rule files in a document store, adds the schema rule kind, and compiles, as an experimental step, rules written as intent into checks when you turn compilation on (Guardrails, Compiled rules).
  • Each add-on depends on the exact version of the IntentSharp packages it builds on, so the four packages move to a new version together (Upgrading).
  • The core no longer depends on Microsoft.Data.Sqlite (System requirements).

Added

  • The provider file, intentsharp.providers.json: each provider's kind, model, key reference and endpoint, and the roles that use them, such as answer, judge and embedding, each one provider or a fallback chain. The core ships the openai and anthropic kinds, and IntentSharp.Extensions.AI adds chat-client (Providers, Provider file).
  • Targets: commands against your database or another technology, through an ITarget you write. TargetRuntime asks the model for a command, has the target inspect it, checks it against your rule sets, and only then lets the target run it (Targets).
  • Guardrails: rule sets checked before a model call, after a reply, before an intent runs as a tool, before an embedding call, before a target runs a command, and when a change is found. The check runs in your process with no model call, and a refused operation does not run. Rule sets come from rule files or from code (Guardrails).
  • Settings: named values such as client.maxAttempts and data.allowWrites, set in a rule file, in the settings file intentsharp.settings.json or in code, where a file wins over code (Settings reference).
  • Versioned documents: InMemoryDocumentStore and FolderDocumentStore keep each document's versions with its history and revert, the folder store up to 100 unless you set another limit. Your code and a model propose an edit through one seam, client.Edits.SubmitAsync. An edit applies by default, a writer you wrap around the seam can hold it for review, and an edit that widens what a file allows is flagged. A candidate version can run side by side (experimental) with the running one (Documents and edits).
  • Change detection: when a target's schema, a document or the provider options change, the client records the change, runs the handlers you registered and checks the change at the Environment checkpoint (Change detection).
  • Compiled mappings: with MapByShapeAsync and MapManyByShapeAsync, the model compiles a mapping between two shapes once, and IntentSharp then runs the compiled steps on every later record of the same shapes and intent, in your process, with no model call (Compiled mappings).
  • The license notice is easier to see. A result carries it in Warnings, after "License: "; without a logger factory it goes to System.Diagnostics.Trace; and a project that uses IntentSharp prints a message with the license terms after each build, which the MSBuild property IntentSharpLicenseMessage set to false hides (Development and production).
  • IntentClientOptions.JudgeStrictness: FailClosed fails an attempt whose judge reply cannot be read as a verdict. FailOpen, the default, accepts it with a Warning, as before.
  • AIRequestOptions.FallbackModel, the model a fallback provider is asked for.
  • Size limits: a reply over 16 MB from the openai or anthropic kind fails the call (IntentClientOptions.MaxResponseBytes), a folder store does not read a document over 4 MB, and an edit over 4 MB is refused, unless you set other limits (Documents and edits).

Changed

  • The default judge asks the first provider of the judge role, or of the answer role when there is no judge role. In rc.3 it always asked the primary provider. A judge reply that the provider marks as a refusal, such as a content filter's, now fails the attempt whatever JudgeStrictness says.
  • The model a request names no longer reaches a fallback provider, which asks for the request's FallbackModel, else its entry's fallbackModel, else its own model.
  • A request ends at 5 minutes by default: IntentClientOptions.DefaultTimeout, or the setting client.timeout in a file. rc.3 had no default time budget.
  • An HTTP 408 reply is a transient error: it is retried, and then falls back, as a 5xx reply does.
  • The built-in providers follow no redirect, and never send a request to the BaseAddress of an HttpClient you supply: it goes to the provider entry's endpoint.
  • A provider exception's message names the provider, the status and the provider's error code, and no longer carries the provider's reply, which is on AIProviderException.Detail. An agent tool answers an exception with its type and a short reason, unless IntentToolOptions.IncludeErrorDetail is set.
  • Every request marks its input as data, so the request text differs from rc.3. A test that compares request text needs the new text, and a reply cached under rc.3 is not served.
  • Over a folder it can write, FileIntentCatalog keeps up to 100 versions of each intent file in a .intentsharp folder inside the catalog folder, and compares versions across restarts: an edit that kept or lowered an intent's version is reported even when it was made while the application was stopped. Leave that folder out of source control.
  • The model-call ceiling and the time budget end a request with an IssueSource.Constraint issue, where rc.3 used IssueSource.Guardrail.
  • The license is named the IntentSharp Commercial License 1.0. Its terms are unchanged (License).

Removed

  • UseOpenAI, UseAnthropic and their fallback forms, UseProvidersFromEnvironment, the public OpenAIProvider and AnthropicProvider, and the built-in model ids. Describe the providers in the provider file, and name each model in the file, the role or the call.
  • The IntentSharp.Data namespace, SemanticDatabase and DatabaseOptions among it. Connect a database as a target.
  • SqliteSemanticMemory. A memory that survives a restart is an ISemanticMemory of your own.
  • IntentClientOptions.JudgeModel. The judge role names the judge's model.
  • The old names of six renamed types: [AIGuardrail] is [AIConstraint], GuardrailType is ConstraintKind, IGuardrailValidator is IOutputValidator, AIGuardrailException is AIConstraintException, MemoryRequestCache is InMemoryRequestCache and HttpProviderSettings is HttpProviderOptions. IntentSharpException and AIConstraintException are in the IntentSharp namespace.

Fixed

  • A cached reply that fails a request's checks is withdrawn from the cache at once. Before, the next identical request could read it again until it expired.
  • A cached reply is no longer served once the intent file or the provider file it was made under has changed.
  • A provider's per-attempt timeout that ran out while the reply was being read is an AITimeoutException, which is not retried. Before, it was retried as a transport error.
  • An intent file whose schema has a reference that cannot be resolved inside the schema is a load problem that names the file and the reference. Before, it loaded and every reply failed. A schema too costly or too deeply nested to check, and a YAML file whose aliases repeat too much text, are refused when they load (Intent files and schemas).

1.0.0-rc.3 (2026-10-20)

The third release candidate of IntentSharp 1.0, and the first release on nuget.org. Install it with:

dotnet add package IntentSharp --version 1.0.0-rc.3

Installation covers IntentSharp.Catalog and IntentSharp.Extensions.AI, and the version to write in a project file.

Changed

  • The packages are on nuget.org. If your nuget.config maps the IntentSharp packages to a local folder, as 1.0.0-rc.2 needed, remove that source and its mapping. Until you do, NuGet looks for the packages only in that folder.
  • The Warning the built-in judge, ModelJudge, logs when it accepts an answer without a verdict now says the judge reply "could not be read as a verdict". It said "was not JSON", also for a reply that was JSON of another form. The rest of the message and its Provider and Intent values are unchanged. Update any log search or alert that matches the old text (The judge logs a Warning).
  • Every package carries release notes for its own version, with a link to this changelog. Until now only IntentSharp had them, and they described 1.0.0-rc.2.

Fixed

  • A judge verdict that rejects the answer without a list of problems (Problems is null), from the built-in judge or from your own IResultJudge, now fails the attempt with the finding "The judge rejected the output without listing problems.". The next attempt receives it, as with an empty list. TransformAsync threw a NullReferenceException. The built-in judge now returns an empty Problems list in place of null.
  • The check on each database statement now reads the tables a statement names in more forms of SQL, such as the second table in FROM a, b, and checks each one against AllowedTables, or against the tables the connection can see when AllowedTables is null. In those forms a statement could read a table outside the allowed tables; it is now refused. Some statements that ran before are refused too: a recursive CTE written without RECURSIVE, as SQL Server writes one; a CTE defined inside a subquery or after INSERT; and a CTE used with a different case or quoting from its definition. MySQL's ON DUPLICATE KEY UPDATE, a FOR UPDATE clause and PostgreSQL's and MySQL's LATERAL (SELECT ...) are no longer read as naming a table, so statements with them are no longer refused for that. The subquery after LATERAL is still checked. The check is still a guard, not a permission boundary (Targets).
  • A validator whose list of problems throws while it is read now fails the attempt with the finding "Validator threw: ...", and the next attempt receives it, as for a validator that throws when it is called. This applies to Validate<T> rules and named validators alike. A list can throw while it is read when the validator is written with yield return. TransformAsync, and IntentRuntime.RunAsync for a named validator, threw the exception. The problems listed before it threw are kept.

1.0.0-rc.2 (2026-10-14)

The second release candidate of IntentSharp 1.0, and the first build sent to evaluators. 1.0.0-rc.1 was never published; this release carries every change made since it. Its packages were not on nuget.org; 1.0.0-rc.3 is the first release there.

Added

  • The INTENTSHARP_LICENSE_KEY environment variable: the library reads the license key from it when no key is set in code or configuration, with IntentClientBuilder and with AddIntentSharp. A key set in code or configuration wins. The notice logged when no key is set names the variable as a third place for the key (Your license key).
  • IntentSharpJson.SerializerOptions: the JSON options IntentSharp reads and writes values with.
  • LicenseInfo.NoticeEventId: the event id of every license notice, 9100, named IntentSharp.License.
  • ReleaseInfo.IsLicenseeBuild: true when IntentSharp was built from licensee source, false for the packages.

Changed

  • The version is 1.0.0-rc.2, released on 2026-10-14. A paid key whose maintenance date is earlier than 2026-10-14 does not cover this release; it needs a renewed key (License behaviour).
  • The LicenseInfo values are read-only properties instead of constants. Their values are unchanged.
  • Every public type and member has XML documentation, and IntelliSense shows only the members your code can use.
  • Each package carries its own short readme, with the command that installs it. While the version is a release candidate, that command includes --prerelease.
  • The package descriptions say in plain words what each package does, and that business and production use need a paid license after the free 30-day evaluation.
  • The packages and their assemblies carry no source repository information, and no symbol packages are published.
  • The commercial model changed on 14 October 2026: Developer and Business are priced per developer, Enterprise is one price per year for unlimited developers in one legal entity and its controlled affiliates, and the Team edition is no longer sold. Licenses bought before 14 October 2026 renew at the price and terms they were bought with until notice under rule 9. The pricing page has the prices and the rules; Licensing says how to buy.

Removed

  • Types and members that were part of the implementation, the license key checking types among them, are no longer public. Breaking changes says what to use instead.

1.0.0-rc.1 (2026-10-12)

The first release candidate of IntentSharp 1.0, the first public release line; version 1.0.0 follows it. Its packages were not on nuget.org.

Packages

  • IntentSharp: the client, typed calls, collection operations, natural-language database queries, memory, a request cache, rate limiting, and the OpenAI and Anthropic providers.
  • IntentSharp.Catalog: intents as data, in JSON or YAML files that reload while the application runs.
  • IntentSharp.Extensions.AI: runs a client on any Microsoft.Extensions.AI IChatClient, and offers catalog intents as tools for Agent Framework agents.

All three target .NET 8, .NET 9 and .NET 10, and ship with symbols packages.

Added

  • IntentClient, built with IntentClientBuilder or registered with services.AddIntentSharp(...). There is no static or process-wide client.
  • Typed calls: TransformAsync<T> and the AIAsync<T> extension return an AIResult<T> with Success, Value, Issues, Attempts and Usage. Every answer is checked against the result type before it is returned, and a failed check goes back to the model on the next attempt.
  • Rules of your own with Validate<T> and Require<T>, worked examples (AIRequestOptions.Examples), and an optional judge step (UseJudge).
  • Result shapes known only at run time: TransformAsync(input, intent, outputSchema) takes a JSON schema as a JsonNode and returns an AIResult<JsonNode>. The reply is checked to be JSON; the schema's own rules are checked for a catalog intent with a schema shape, or by a check you add.
  • Limits per request: attempts, model calls, output tokens and a time budget. An out-of-range limit throws before any model call.
  • Methods marked with [AIIntent] and [AIGuardrail], run with ExecuteIntentAsync<T>.
  • Collection operations: AIMapAsync, AIFilterAsync, AISortAsync, AIGroupAsync, AIReduceAsync and AIMapValuesAsync, plus AIClassifyAsync<TEnum> and AIConvertAsync<T>. Filter, sort and group hand back your original objects.
  • Natural-language database queries: read-only by default, limited to the tables you allow, with parameters only, a row cap and a dry run. ExecutePlanAsync runs a plan you have reviewed, and UpsertAsync writes. Tested on SQLite.
  • Memory (in process or in SQLite), an in-process request cache and a rate limiter, wired into the client.
  • The ambient client: client.AsAmbient() makes a client available, for one async flow, to the extension methods that take no client parameter.
  • The intent catalog: intent definitions with a name, version, owner, intent text, result shape, rules, named validators, examples and limits. FileIntentCatalog watches a folder of *.intent.json, *.intent.yaml and *.intent.yml files, reloads when they change, and keeps the last good definitions of a file that fails to load. IntentRuntime runs a named intent and tags every run with the intent's name, version and source. AddIntentCatalog, AddIntentRuntime, AddIntentValidator and AddIntentType<T> register them with dependency injection.
  • Microsoft.Extensions.AI: UseChatClient and UseChatClientAsFallback on the builder run the client on any IChatClient. AsAIFunction and AsAIFunctions offer catalog intents as AIFunction tools, which answer with checked JSON, or with success: false and the reason, and never throw into the agent loop.
  • Providers: OpenAI and Anthropic, with a fallback provider that is used only when the primary fails with a transient error. The default models are claude-opus-5-5 for Anthropic and gpt-4.1 for OpenAI.
  • ScriptedProvider, in IntentSharp.Testing, for tests that never call a model.
  • Licensing: set your license key with WithLicenseKey or in configuration. See Licensing.

Tested

  • Against live OpenAI and Anthropic models on .NET 8 and .NET 10, and with a local model through Ollama.

Security

  • The core package depends on Microsoft.Data.Sqlite 10.0.12 on every target framework. It brings in SQLitePCLRaw 2.1.12 rather than 2.1.10, which NuGet's audit flags with a high-severity advisory (GHSA-2m69-gcr7-jv3q).