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…
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.
// 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")]Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Attributes. Package: Novior.MentorAgent.
public sealed class MentorPageAttribute : Attribute
dotnet add package Novior.MentorAgentConstructors
Section titled “Constructors”public MentorPageAttribute()
Properties
Section titled “Properties”Description
Section titled “Description”public string? Description { get; init; }
Optional description of the page's features.
HasUIActions
Section titled “HasUIActions”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.
ReadyTimeout
Section titled “ReadyTimeout”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"
