# MentorAutoMentorOptions class

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

- URL: https://docs.mentoragent.net/api/novior-mentoragent-options/mentorautomentoroptions
- Verified with: MentorAgent 1.4.0
- Last updated: 2026-11-18
- Packages: Novior.MentorAgent

The AutoMentor's side in the application ([`MentorOptions.AutoMentor`](https://docs.mentoragent.net/api/novior-mentoragent-options/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.

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

## Definition

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

`public sealed class MentorAutoMentorOptions`

```shell
dotnet add package Novior.MentorAgent
```

## Constructors

`public MentorAutoMentorOptions()`

## Properties

### `Enabled`

`public bool Enabled { get; set; }`

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

### `Namespaces`

`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`](https://docs.mentoragent.net/api/novior-mentoragent-options/mentorautomentoroptions#enabled) is on.

### `Scan`

`public Assembly[] Scan { get; set; }`

The assemblies the candidates are taken from. Empty, the default, takes [`MentorOptions.ScanAssemblies`](https://docs.mentoragent.net/api/novior-mentoragent-options/mentoroptions#scanassemblies).

---

- Previous: [MentorAnonymousIdentity enum](https://docs.mentoragent.net/api/novior-mentoragent-options/mentoranonymousidentity.md)
- Next: [MentorConfirmationArgument record](https://docs.mentoragent.net/api/novior-mentoragent-options/mentorconfirmationargument.md)
