Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
Prerequisites
The versions of .NET, hosts, Agent Framework, and model provider packages that MentorAgent is tested with, and how to install it.
On this page
Check this page before you install MentorAgent. It lists the .NET version, the hosts and the package versions that MentorAgent 1.2.0 is tested with. It also says which model provider packages you add yourself, and which versions to avoid with Azure OpenAI.
In short, you need:
- the .NET 10 SDK;
- access to a model that supports tool calling, for example an OpenAI API key;
- the package of your model provider, which you add yourself. The Quickstart uses OpenAI.
The table lists the versions that MentorAgent 1.2.0 is tested with.
Requirements
Section titled “Requirements”| Item | Tested with |
|---|---|
| Platform | .NET 10 (LTS, supported until 14 November 2028) |
| Host | A Blazor Web App (Server or Auto interactivity), a .NET MAUI Blazor Hybrid app built for Android and Windows, a Blazor WebAssembly app, or any ASP.NET Core app. The package for each one is in Choose your packages |
| ASP.NET Core runtime | 10.0.13 or later, for Novior.MentorAgent.Server. The hub runs on the SignalR of the ASP.NET Core runtime, so the runtime brings its security fixes |
| Microsoft Agent Framework | Microsoft.Agents.AI and Microsoft.Agents.AI.Workflows 1.26.0 |
| Microsoft.Extensions.AI | 10.11.0 |
| Model Context Protocol (MCP) | Client: ModelContextProtocol 2.3.0, included in Novior.MentorAgent. Server: ModelContextProtocol.AspNetCore 2.3.0, included in Novior.MentorAgent.Server |
| Agent-to-Agent (A2A) | Client: A2A 1.0.0-preview3, included in Novior.MentorAgent. Agent: A2A.AspNetCore 1.0.0-preview3, included in Novior.MentorAgent.Server |
| Prerelease dependencies | A2A and A2A.AspNetCore are prereleases. Novior.MentorAgent.Declarative also depends on a prerelease of Microsoft.Agents.AI.Declarative |
| Model provider | Not included. You add the package of the provider you use: see Provider package versions |
| Model | A model that supports tool calling, used through a Microsoft.Extensions.AI IChatClient, or your own Agent Framework AIAgent: see Model providers |
Novior.MentorAgent and Novior.MentorAgent.Server bring the packages above with them, so you do not reference them yourself. The only exception is the package of your model provider, which you add yourself.
MentorAgent needs .NET 10: it does not run on .NET 8 or .NET 9. The .NET support policy (external site) lists when each version reaches the end of support.
Only the host needs .NET. You can use any front end: the Blazor widget, or your own user interface in React, Angular, Vue or a mobile app, over SignalR or HTTP. See Any front end.
Install
Section titled “Install”The command below installs Novior.MentorAgent 1.2.0, the latest stable version. This package is enough for a Blazor Server app. For other kinds of app, see Choose your packages. If you do not have a project yet, the Quickstart shows how to create one.
Run the command in your project folder:
dotnet add package Novior.MentorAgentProvider package versions
Section titled “Provider package versions”MentorAgent 1.2.0 does not include a model provider package. You add the package of the provider you use, at the version you choose. Model providers lists the packages for each provider.
Read the rest of this section only if you use Azure OpenAI with the Responses API, or a Foundry project. Other setups need no version limit.
Azure.AI.OpenAI2.9.0-beta.1 is the latest version published. It calls aResponsesClientconstructor thatOpenAI2.11 removed.- With
OpenAI2.11 or later,AzureOpenAIClient.GetResponsesClient()throws aMissingMethodExceptionwhen your code calls it. The build succeeds. - These packages bring
OpenAI2.11 or later:Microsoft.Extensions.AI.OpenAInewer than 10.6.0,Microsoft.Agents.AI.Foundrynewer than 1.17.0-preview.260804.1, and recent versions ofMicrosoft.Agents.AI.OpenAI.
To keep OpenAI at 2.10, pin these packages: give each one an exact version.
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="[10.6.0]" />
<!-- and, only if you use it: -->
<PackageReference Include="Microsoft.Agents.AI.Foundry"
Version="[1.17.0-preview.260804.1]" />Azure OpenAI with Chat Completions (GetChatClient), OpenAI directly and Ollama through its OpenAI endpoint need no limit. To see which version of OpenAI your project uses, run:
dotnet list package --include-transitiveThe full explanation is in the MentorAgent README on NuGet (external site).
If you use Foundry
Section titled “If you use Foundry”Agent Framework's Foundry package does not come with MentorAgent. You need it only if you use the AIProjectClient of a Foundry (external site) project, or FoundryEvals in an evaluation. In that case, add Microsoft.Agents.AI.Foundry to your project yourself.
If the same project also calls AzureOpenAIClient.GetResponsesClient(), pin Microsoft.Agents.AI.Foundry to one exact version, as in Provider package versions.
Vedi anche
Sezione “Vedi anche”- Choose your packages — Which MentorAgent package to install for Blazor, MAUI, or a backend for React, Angular, Vue and mobile apps, and what each one contains.
- Troubleshooting — Fix common problems with MentorAgent: startup errors, blocked requests, roles, confirmation, local models. And where to get help or report a bug.
