MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent

MentorPageAttribute class

The MentorPageAttribute class of Novior.MentorAgent.Attributes: Decorates a Blazor page or component to make it navigable by the Mentor AI. MentorAgent scans…

View as Markdown
On this page

Decorates a Blazor page or component to make it navigable by the Mentor AI. MentorAgent scans assemblies for this attribute during discovery — the page is registered without needing to be visited first.

Example
// Simple page — navigation only
@attribute [MentorPage("/orders", "Orders")]

// Page with UI actions — waits for SignalReady after navigation
@attribute [MentorPage("/orders-interactive", "Interactive Orders",
    HasUIActions  = true,
    ReadyTimeout  = 3000,
    Description   = "Order management with forms, filters and row highlighting")]

Namespace: Novior.MentorAgent.Attributes. Package: Novior.MentorAgent.

public sealed class MentorPageAttribute : Attribute

Terminal
dotnet add package Novior.MentorAgent

public MentorPageAttribute()

public string? Description { get; init; }

Optional description of the page's features.

public bool HasUIActions { get; init; }

If true, the Mentor waits for the page to call PageContext.SignalReady() before executing UI actions. Default: false

public required string Name { get; init; }

Human-readable page name. Used in the system prompt.

public int ReadyTimeout { get; init; }

Timeout in milliseconds for WaitForPageReadyAsync. Used only when HasUIActions = true. Default: 2000ms

public required string Url { get; init; }

The page URL. E.g.: "/orders-interactive"