MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent.Abstractions

MentorActionVerdict record

The MentorActionVerdict record of Novior.MentorAgent.Abstractions.Models: What IMentorActionPolicy.BeforeActionAsync answers for one call.

View as Markdown
On this page

What IMentorActionPolicy.BeforeActionAsync answers for one call.

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

public sealed record MentorActionVerdict : IEquatable<MentorActionVerdict>

Terminal
dotnet add package Novior.MentorAgent.Abstractions

public MentorActionVerdict()

public required MentorActionVerdictKind Kind { get; init; }

What the policy decided.

public static MentorActionVerdict Proceed { get; }

No objection.

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.

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.