MentorAgent Docs
Menu

Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.

ReferencePackage: Novior.MentorAgent

MentorAutoMentorOptions class

The MentorAutoMentorOptions class of Novior.MentorAgent.Options: The AutoMentor's side in the application (MentorOptions.AutoMentor): whether MentorAgent…

On this page

The AutoMentor's side in the application (MentorOptions.AutoMentor): whether MentorAgent looks for methods that could become actions, its candidates, and the perimeter it looks in. The perimeter is the code's only: nothing outside it becomes an action, whatever a service or a document says. A candidate is an action of the coordinator that starts off and asks for a confirmation; an IMentorActionGovernor may turn it on. Read once, at startup. The rules are the candidate area of ACTION-RULES.md.

Example
options.AutoMentor.Enabled = true;
options.AutoMentor.Namespaces = ["Shop.Services"];

Namespace: Novior.MentorAgent.Options. Package: Novior.MentorAgent.

public sealed class MentorAutoMentorOptions

Terminal
dotnet add package Novior.MentorAgent

public MentorAutoMentorOptions()

public bool Enabled { get; set; }

Whether MentorAgent looks for candidates. Off by default: without it nothing is a candidate (candidate.opt-in).

public string[] Namespaces { get; set; }

The perimeter: the namespaces a candidate's class must be in, each with the namespaces under it (Shop.Services covers Shop.Services.Orders, not Shop.ServicesLegacy). Empty, the default, gives no candidate, and a warning in the log says so when MentorAutoMentorOptions.Enabled is on.

public Assembly[] Scan { get; set; }

The assemblies the candidates are taken from. Empty, the default, takes MentorOptions.ScanAssemblies.