Documentation for 1.5.0
MentorAgent documentation
Guides and reference for MentorAgent, the .NET library for AI agents that you govern like your application: your methods become their tools, under your rules.
Quickstart (15 min)What is MentorAgent?What's new in 1.5.0
Choose your path
New app
Build your first agentCreate a Blazor app whose agent calls your own C# methods and asks you before it changes data: a rule in your code, not in a prompt.
Existing app
Add MentorAgent to your appAdd the agent to a Blazor Web App you already have: register the services, mark the methods it may call and add the chat widget.
Governance
Govern what the agent can doWho may run each action, what needs a confirmation and which rules of your own apply: you declare it in C#, and the same checks hold in the widget, in your own front end and for other AI agents.
Channels
Take the agent where your users areThe browser, a phone, an AI assistant or another agent: connect React, Angular, Vue or a mobile app over SignalR or HTTP, and publish your actions over MCP and A2A with the same rules.
Explore the documentation
Get started
Learn what MentorAgent is and what is new in this version, then build your first agent or add one to the application you already have.
Concepts
Govern an agent like your application: the three agent levels, roles, confirmation and your policies, the pages it knows, and the channel for each client.
Configure
Take the agent from your systems to wherever your users are: the model provider, your front end, servers for other agents, endpoint security and production.
- Model providers
- Blazor Server
- Blazor WebAssembly and Auto
- .NET MAUI
- Any front end
- MCP server
- A2A server
- Register actions in code
- Commands and queries as actions
- Scan your pages
- Forms and grids
- Recipes
- Secure the endpoints
- Roles from your sign-in
- Search your documents
- Serve several tenants
- Test without a model
- Cost and latency
- Options at run time
- Show that the assistant is off
- Run a turn from your own code
- Production checklist
Reference
Look up every attribute and option, the policies and observers of the gate, the terms that these pages use, and the limits of the current version.
API reference
Every public type of the MentorAgent packages, generated from the 1.5.0 assemblies and their XML documentation: definition, members and package.
- Attributes namespace
- Core namespace
- Data namespace
- Evaluation namespace
- Extensions namespace
- Memory namespace
- Models namespace
- Observability namespace
- Options namespace
- Rag namespace
- Abstractions.Components namespace
- Abstractions.Core namespace
- Abstractions.Interfaces namespace
- Abstractions.Models namespace
- Server.Auth namespace
- Server.Endpoints namespace
- Server.Extensions namespace
- Server.Hubs namespace
- Blazor.Extensions namespace
- Blazor.Hub namespace
- Blazor.Models namespace
- Blazor.Services namespace
- Declarative namespace
- Scanner namespace
- Global namespace
Release notes
Every stable MentorAgent version, newest first, with its date and what it brings; how versions are numbered and supported, and how dependencies are followed.
Latest: 1.5.0, published on NuGet on (UTC) Release notes
