MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent.Abstractions

MentorActionConfirmation record

The MentorActionConfirmation record of Novior.MentorAgent.Abstractions.Models: The confirmation of the action that is running: who confirmed it and when, for…

View as Markdown
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.

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

public sealed record MentorActionConfirmation : IEquatable<MentorActionConfirmation>

Terminal
dotnet add package Novior.MentorAgent.Abstractions

public MentorActionConfirmation()

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.

public required DateTimeOffset ConfirmedAt { get; init; }

When the user confirmed, in UTC.

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.

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.

public required string ToolName { get; init; }

The tool's technical name, as the model called it.