Documentation
Table of Contents

Docs & Support

IntentSharp adds real intelligence to the .NET applications you already have, one method at a time. Your code states an intent in plain words and passes a value. IntentSharp sends both to a model, checks the answer against your .NET type and your rules, sends the findings back for another attempt when a check fails, and returns an AIResult<T> that says whether the answer passed. It runs on .NET 8, 9 and 10, with OpenAI, Anthropic or any IChatClient.

IntentSharp is commercial software, not open source. You can evaluate it free for 30 days.

The five packages

Package What it adds When you need it
IntentSharp The client, typed calls on any value, the collection methods, your own rules, the providers a provider file names (OpenAI, Anthropic or one of your own), targets for the technologies you connect, rule sets written in code, the settings, versioned documents, memory, the request cache, rate limiting and AddIntentSharp Always
IntentSharp.Catalog Intents kept in YAML or JSON files, with their wording, result shape, rules and examples, reloaded while the application runs When intents live in files rather than in code
IntentSharp.Guardrails Rule sets kept as YAML or JSON rule files in a document store, the schema rule kind, and rules written as intent compiled into checks When rule sets live in files rather than in code
IntentSharp.Extensions.AI Any Microsoft.Extensions.AI IChatClient as the model, and intents as AIFunction tools for agents When you use IChatClient, or give intents to an agent
IntentSharp.Specialist Models defined per intent: a runtime that obtains a model for a catalog intent from a specialist service you wire in, judges what comes back and runs the intent on it, with every answer checked; it includes IntentSharp.Catalog When intents run on models a specialist service provides

One license covers every package. Installation shows how to add them.

Get started

  • System requirements: the .NET versions, the model providers and the packages IntentSharp depends on.
  • Installation: adding the packages and your model provider's API key.
  • Quick start: one console program, with a typed call, a collection filter and an intent from a file.

Understand a call

  • Overview: one checked call as a picture, from your value to the result.
  • How it works: what a call takes and returns, what is checked, what leaves your process, the limits and what a failure looks like.
  • For agents and other programs: the file formats, the catalog's snapshot, intents as an agent's tools, what an edit reports and the llms.txt files.

Build with it

  • Providers: the provider file, OpenAI, Anthropic, a fallback provider and a provider of your own.
  • Provider file: every key of the provider file, the roles, model aliases, the hosts a call may reach and a provider file with no file on disk.
  • Provider secrets: secret references, a resolver of your own, endpoints and plain http, and the edits of the provider file that are flagged.
  • Configuration and dependency injection: the builder, AddIntentSharp and every value of the IntentSharp configuration section.
  • Intent files: an intent's wording, rules and model in a file, edited while the app runs.
  • Intent file reference: every field, shape and rule of the file format.
  • Running intents from files: loading a folder of intent files and running them.
  • Collections: map, filter, sort, group, reduce and map values.
  • Input contracts: giving each call every fact it needs, a result the model may leave empty, and a check that refuses invented values.
  • Targets: commands against your database or another technology, planned by the model and run only when your rule files allow them.
  • Target limits: the data settings, writes, and the time and result limits a command runs under.
  • Guardrails: rule files that check model calls, replies, tools and commands in your process, with no model call.
  • Compiled rules: rules a rule file states in words, compiled into rules once you turn compilation on, and what a compile writes and refuses.
  • Evidence ledger: original facts that never change, later answers as records of their own, and which component may change what.
  • Documents and edits: the stores that version your rule files, intent files and settings, the edit seam, revert, and side-by-side runs of a candidate.
  • Change detection: what the client does when a schema, a document or the provider options change, and how rule sets that wait to be brought up to date hold operations.
  • Compiled mappings: one model call to compile a mapping, then every later record of the same shape mapped in your process with no model call.
  • Memory, cache and rate limiting: what each one does, and its defaults.
  • Microsoft.Extensions.AI: IChatClient and agent tools.
  • Models per intent: an intent run on a model a specialist service you wire in provides, with the offer judged before use and every answer checked.
  • Use cases: jobs .NET teams hand to a model, as the code you would write and as the IntentSharp version.

Run it in production

  • Logging and telemetry: the log categories, the license notice event and the trace activity.
  • Seeing every request: logging each request and reply yourself.
  • Testing: tests that run offline, with scripted replies and failures, and when a live run is still needed.
  • Long chains of calls: several calls in a row, with a budget on each, a deadline on the whole, and progress and checkpoints as your own code.
  • Common problems: provider errors, input that is too large, schema fallback and intent files that do not load.

Licensing

Upgrade

Reference

  • Settings reference: every setting, its values, its value when nothing sets it, the security settings and the edits that are flagged.
  • Packages and namespaces: every public type of the five packages, with its members.

Support

  • By email, at licensing@c2consultants.net. Support is part of a paid license.
  • Support policy: the response target for each edition and how to report a bug.
  • Contact: sales, licensing, support and security reports, at one address.
  • Security: the threats, what each checkpoint stops, what reaches the model, what you must do, what IntentSharp does not do, and how to report a problem.
  • Third-party notices: the packages IntentSharp depends on and their licenses.