๐ Try the demo: https://github.com/LM-Kit/lm-kit-net-samples/tree/main/console_net/ai-agents/agent-templates/agent_blueprints
Agent Blueprints for C# .NET Applications
๐ฏ Purpose of the Demo
An interactive console app that runs the three agent blueprints shipped with LM-Kit.NET. Each blueprint is one portable AgentDefinition (instructions, grounding rules, answer shape, tool budget) plus a starter evaluation suite, and becomes a working agent with a single AgentBuilder.WithDefinition call. The same definitions configure an LM-Kit One server.
All inference runs on-device.
๐ฅ Industry Target Audience
- Support teams answering customers from a help center, with a clean hand-off to people.
- Internal tooling teams giving employees answers grounded in company documents.
- Operations teams that want an agent to read systems freely and only propose changes.
- Engineering leads who need agents that are tested before they ship.
๐ Problem Solved
An empty agent form leaves every team to rediscover the same rules: answer only from the sources, cite them, say so when they hold nothing, hand off when a person is due, never act without approval. The blueprints encode those rules once, return answers an application can route on, and ship the cases that prove them.
๐ป Application Overview
Interactive menu (no command-line arguments):
| Option | What it does |
|---|---|
| Customer support | Answers from a small help center, cites it, and returns handoff_reason, needs_human, resolution_status and the reply. |
| Internal knowledge | Answers from a small handbook, citing each document; anything outside it is answered with the absence. |
| Bounded automation | Reads a temporary workspace with filesystem tools and proposes every change as a dry run, with a status and the proposed actions. |
| Evaluate | Runs each blueprint's starter suite with AgentEvaluator.RunAsync and prints the cases that pass and fail. |
โจ Key Features
AgentBlueprint:CustomerSupport,InternalKnowledge,BoundedAutomation, withCreateDefinition(name)andCreateStarterSuite(name).- Grounding through
AgentDefinition.Knowledgeand aRagEngineKnowledgeRetriever: citations required, abstention when nothing is found. - Structured answers through
AgentDefinition.OutputSchema, enforced while the model writes. - Dry runs through
AgentDefinition.SimulateTools: tools that only read run, tools that write are simulated and reported as proposals. - Consent by design: a blueprint names no source and grants no tool; the host binds both.
๐ง Models
qwen3.5:4banswers (about 3 GB of VRAM, tool calling).embeddinggemma-300mindexes the documents.
๐ ๏ธ Getting Started
๐ Prerequisites
- .NET 8.0 or later
โถ๏ธ Running the Application
git clone https://github.com/LM-Kit/lm-kit-net-samples
cd lm-kit-net-samples/console_net/ai-agents/agent-templates/agent_blueprints
dotnet run
Pick a blueprint, ask questions, and press Enter on an empty line to return to the menu.