MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent.Abstractions

MentorPageInfo record

The MentorPageInfo record of Novior.MentorAgent.Abstractions.Models: One page of the application as the AutoMentor knows it, from…

View as Markdown
On this page

One page of the application as the AutoMentor knows it, from IMentorActionCatalog.GetPages: its route, the component that serves it, what a scan read of it and what the widget observed of it in the users' browsers. Structure only, never what a page shows. More properties may be added.

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

public sealed record MentorPageInfo : IEquatable<MentorPageInfo>

Terminal
dotnet add package Novior.MentorAgent.Abstractions

public MentorPageInfo()

public string? Component { get; init; }

The full name of the component that serves the page; null for a page only the manifest has, such as one of a WebAssembly client that has not sent its pages yet.

public MentorPageCoverage Coverage { get; init; }

Whether a scan read the page, or else whether the widget observed it: MentorPageCoverage, an open list.

public IReadOnlyList<MentorPageElement> Elements { get; init; }

The elements the scan read, in the manifest's order, then those the widget observed that the scan did not read, each with its MentorPageElement.Coverage; empty when the page is to scan.

public required string Route { get; init; }

The route template, as the page's @page writes it (for example /orders/{id:int}): the page's key.

public DateTimeOffset? ScannedAt { get; init; }

When the scan read the page, as the manifest says; null when it is to scan, or the manifest does not say.