MentorAgent Docs
Menu

Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.

ReferencePackage: Novior.MentorAgent.Abstractions

MentorActionOutcome enum

The decisions of the tool gate. A closed list: a new value comes only in a minor version, and the CHANGELOG says so.

On this page

A call goes through them in one of these orders, in Blocking and in Native mode alike: MentorActionOutcome.Allowed then MentorActionOutcome.Executed, MentorActionOutcome.Failed or MentorActionOutcome.Stopped; or MentorActionOutcome.Allowed, MentorActionOutcome.ConfirmationRequested, then MentorActionOutcome.Rejected, MentorActionOutcome.Stopped, or MentorActionOutcome.Confirmed followed by the outcome of the run (or MentorActionOutcome.Denied, for a role or a permission taken away while the confirmation waited); or MentorActionOutcome.Denied, MentorActionOutcome.Blocked or MentorActionOutcome.PolicyFailed alone. MentorActionOutcome.Allowed comes once the roles and every IMentorActionPolicy have let the call through.

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

public enum MentorActionOutcome

Terminal
dotnet add package Novior.MentorAgent.Abstractions
ValueNumberDescription
Allowed0The roles and every IMentorActionPolicy allow the call. The confirmation, when the action or a policy asks for one, comes next.
Denied1Refused: a role is missing, nobody is signed in, a policy does not allow the user this action, nobody can confirm, or the MCP server does not serve it.
ConfirmationRequested2The user is asked to confirm.
Confirmed3The user confirmed.
Rejected4The user said no, or nobody answered within ConfirmationTimeout.
Stopped5Stopped before it finished: Stop, the end of the session, or the end of the turn. A Stop that comes after the confirmation and before the action starts stops it too.
Blocked6Stopped by an IMentorActionPolicy before it ran: its reason is in MentorActionDecision.Detail.
PolicyFailed7Not run: an IMentorActionPolicy threw, or did not answer within ActionPolicyTimeout. The exception's type is in MentorActionDecision.ExceptionType.
Executed8The action ran.
Failed9The action threw.