MentorAgent Docs
Menu

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

ReferencePackage: Novior.MentorAgent

MentorConfirmationContext class

What MentorOptions.ConfirmationMessage gets to write the text of one confirmation banner.

On this page

Namespace: Novior.MentorAgent.Options. Package: Novior.MentorAgent.

public sealed class MentorConfirmationContext

Terminal
dotnet add package Novior.MentorAgent

public MentorConfirmationContext()

public required IReadOnlyList<MentorConfirmationArgument> Arguments { get; init; }

The arguments the model is about to pass, as the default text shows them: in the order of the method's parameters, then any it does not declare; each value cleaned of control characters and cut at 200 characters; empty ones left out. An MCP tool's are in the order the model wrote them.

public required string DefaultMessage { get; init; }

The text MentorAgent shows when the function writes none: the description, then the arguments.

public required string Description { get; init; }

The action's description — its [MentorAction] or [Description] text, or the tool name made readable when it has none.

public required MentorLanguage Language { get; init; }

The language of the turn: the page's (ChatWidget.Language) when the widget has one, else MentorOptions.Language. The widget and the assistant speak it.

public required IServiceProvider Services { get; init; }

The services of the conversation's scope, for what the text needs: an IStringLocalizer, the application's own data. Empty when there is no scope to give.

public required string ToolName { get; init; }

The tool about to run, as the model calls it (cancel_order).