MentorActionConfirmation record
The MentorActionConfirmation record of Novior.MentorAgent.Abstractions.Models: The confirmation of the action that is running: who confirmed it and when, for…
On this page
The confirmation of the action that is running: who confirmed it and when, for the action's own code — a ledger of the writes, for one. Read MentorActionConfirmation.Current inside the method of a [MentorAction(RequiresConfirmation = true)]. More properties may be added.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.
public sealed record MentorActionConfirmation : IEquatable<MentorActionConfirmation>
dotnet add package Novior.MentorAgent.AbstractionsConstructors
Section titled “Constructors”public MentorActionConfirmation()
Properties
Section titled “Properties”ConfirmationId
Section titled “ConfirmationId”public required Guid ConfirmationId { get; init; }
The confirmation's id: the ConfirmationRequest.ActionId the banner carried, and the MentorActionDecision.ConfirmationId of the gate's decisions about this call.
ConfirmedAt
Section titled “ConfirmedAt”public required DateTimeOffset ConfirmedAt { get; init; }
When the user confirmed, in UTC.
ConfirmedBy
Section titled “ConfirmedBy”public ClaimsPrincipal? ConfirmedBy { get; init; }
Who confirmed: the caller of POST /mentor/approve; in a circuit and in the MAUI app, the session's signed-in user. null when nobody is signed in.
Current
Section titled “Current”public static MentorActionConfirmation? Current { get; }
The confirmation of the action running on this call, or null when nobody confirmed it: the action asks for no confirmation, an auto-approval rule let it run (Native mode), or it was called over the MCP server. Set by MentorAgent's gate for the time the action runs, in Blocking and in Native mode alike.
ToolName
Section titled “ToolName”public required string ToolName { get; init; }
The tool's technical name, as the model called it.
