# MentorActionOrigins class

> The MentorActionOrigins class of Novior.MentorAgent.Abstractions.Models: How the application declares an action: the codes of MentorActionRegistration.Origin…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionorigins
- Verified with: MentorAgent 1.4.0
- Last updated: 2026-11-18
- Packages: Novior.MentorAgent.Abstractions

How the application declares an action: the codes of [`MentorActionRegistration.Origin`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionregistration#origin) and [`MentorActionInfo.Origin`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractioninfo#origin). A code stays the same from one version to the next. The list is open: a later version adds codes for other ways of declaring actions, so read an unknown one as it is.

## Definition

Namespace: `Novior.MentorAgent.Abstractions.Models`. Package: `Novior.MentorAgent.Abstractions`.

`public static class MentorActionOrigins`

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

## Fields

### `Attribute`

`public const string Attribute = "attribute"`

A method found in `ScanAssemblies` by its `[MentorAction]` or `[Description]` attribute.

### `Candidate`

`public const string Candidate = "candidate"`

A candidate of the AutoMentor: a public method of a service in the perimeter the code declares (`MentorOptions.AutoMentor`), with no attribute and no registration. It starts off and asks for a confirmation; an `IMentorActionGovernor` may turn it on.

### `Command`

`public const string Command = "command"`

A command registered in code with `MentorOptions.Actions.AddCommand`: a type of its own, run by its `IMentorCommandHandler`. Its registration's [`MentorActionRegistration.Source`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionregistration#source) is the command's type.

### `Endpoint`

`public const string Endpoint = "endpoint"`

An endpoint of the application, declared with `WithMentorAction` on a minimal API or with `[MentorAction]` on a controller's action (Novior.MentorAgent.Server). The action runs the endpoint itself, with its authorization first.

### `Fluent`

`public const string Fluent = "fluent"`

A method registered in code, with `MentorOptions.Actions`.

### `Page`

`public const string Page = "page"`

The UI actions a page declared in its page context, in Blazor or from the client's snapshot on the hub. A page's registration lists their names only, and they are not in `IMentorActionCatalog.GetActions()`.

### `Query`

`public const string Query = "query"`

A query registered in code with `MentorOptions.Actions.AddQuery`: a type of its own, answered by its `IMentorQueryHandler`, always read-only. Its registration's [`MentorActionRegistration.Source`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionregistration#source) is the query's type.

---

- Previous: [MentorActionKind enum](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionkind.md)
- Next: [MentorActionOutcome enum](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionoutcome.md)
