# MentorConfirmationContext class

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

- URL: https://docs.mentoragent.net/api/novior-mentoragent-options/mentorconfirmationcontext
- Verified with: MentorAgent 1.2.0
- Last updated: 2026-10-27
- Packages: Novior.MentorAgent

## Definition

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

`public sealed class MentorConfirmationContext`

```shell
dotnet add package Novior.MentorAgent
```

## Constructors

`public MentorConfirmationContext()`

## Properties

### `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`

`public required string DefaultMessage { get; init; }`

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

### `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`

`public required MentorLanguage Language { get; init; }`

The language of the turn: the page's (`ChatWidget.Language`) when the widget has one, else [`MentorOptions.Language`](https://docs.mentoragent.net/api/novior-mentoragent-options/mentoroptions#language). The widget and the assistant speak it.

### `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`

`public required string ToolName { get; init; }`

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

---

- Previous: [MentorConfirmationArgument record](https://docs.mentoragent.net/api/novior-mentoragent-options/mentorconfirmationargument.md)
- Next: [MentorHitlMode enum](https://docs.mentoragent.net/api/novior-mentoragent-options/mentorhitlmode.md)
