MentorActionVerdict record
The MentorActionVerdict record of Novior.MentorAgent.Abstractions.Models: What IMentorActionPolicy.BeforeActionAsync answers for one call.
On this page
What IMentorActionPolicy.BeforeActionAsync answers for one call.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.
public sealed record MentorActionVerdict : IEquatable<MentorActionVerdict>
dotnet add package Novior.MentorAgent.AbstractionsConstructors
Section titled “Constructors”public MentorActionVerdict()
Properties
Section titled “Properties”public required MentorActionVerdictKind Kind { get; init; }
What the policy decided.
Proceed
Section titled “Proceed”public static MentorActionVerdict Proceed { get; }
No objection.
Reason
Section titled “Reason”public string? Reason { get; init; }
Why, in the application's words. The model reads it when the call is stopped, and the action observers receive it as MentorActionDecision.Detail. Never a secret: it reaches the model and the logs of whoever observes the actions.
Methods
Section titled “Methods”Confirm
Section titled “Confirm”public static MentorActionVerdict Confirm(string? reason = null)
Asks the user to confirm the call first; where nobody can confirm, the call is refused.
Parameters
reason: Why, in the application's words; optional.
public static MentorActionVerdict Stop(string reason)
Stops the call: the action does not run, and the model reads reason.
Parameters
reason: Why, in the application's words.
