Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
MentorConfirmationContext class
What MentorOptions.ConfirmationMessage gets to write the text of one confirmation banner.
On this page
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Options. Package: Novior.MentorAgent.
public sealed class MentorConfirmationContext
dotnet add package Novior.MentorAgentConstructors
Section titled “Constructors”public MentorConfirmationContext()
Properties
Section titled “Properties”Arguments
Section titled “Arguments”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.
DefaultMessage
Section titled “DefaultMessage”public required string DefaultMessage { get; init; }
The text MentorAgent shows when the function writes none: the description, then the arguments.
Description
Section titled “Description”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.
Language
Section titled “Language”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.
Services
Section titled “Services”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.
ToolName
Section titled “ToolName”public required string ToolName { get; init; }
The tool about to run, as the model calls it (cancel_order).
