MentorPageActionLimits class
The MentorPageActionLimits class of Novior.MentorAgent.Abstractions.Models: The limits of the trace of the pages' actions, the registrations of origin…
On this page
The limits of the trace of the pages' actions, the registrations of origin MentorActionOrigins.Page in IMentorActionCatalog.GetRegistrations. A page declares its UI actions from the browser, so what it declares is not trusted: the trace keeps only names, and only within these limits. What goes beyond them is in the page's MentorActionRegistration.Rejected, by its rule in ACTION-RULES.md. The limits apply to the trace only: the actions a page offers the model are not cut by them.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.
public static class MentorPageActionLimits
dotnet add package Novior.MentorAgent.AbstractionsFields
Section titled “Fields”MaxActionNameLength
Section titled “MaxActionNameLength”public const int MaxActionNameLength = 64
The longest action name the trace lists, as a model's tool name (page.name-shape): letters A-Z and a-z, digits, _ and -, from 1 to 64 of them. A name rejected is written in MentorActionRejection.Name cut to this length.
MaxActionsPerPage
Section titled “MaxActionsPerPage”public const int MaxActionsPerPage = 64
The most actions one page lists (page.limit). A page's 65th action and those after it are in its MentorActionRegistration.Rejected.
MaxPageNameLength
Section titled “MaxPageNameLength”public const int MaxPageNameLength = 128
The longest page name the trace lists (page.name-shape). A page name has from 1 to 128 characters, spaces included, is not made of white space only, and has no control or format character (Unicode category C, so no line break or tab either). A page without a name, or with another one, is not in the trace.
MaxPages
Section titled “MaxPages”public const int MaxPages = 200
The most pages the trace lists (page.limit). A page that comes after the 200th is not in the trace, and a warning in the log says so once.
MaxRejectedPerPage
Section titled “MaxRejectedPerPage”public const int MaxRejectedPerPage = 64
The most things one page lists in its MentorActionRegistration.Rejected; past it, what a page declares beyond the limits is not written down.
