# IMentorAssistantStatus interface

> The IMentorAssistantStatus interface of Novior.MentorAgent.Abstractions.Interfaces: Whether the application's assistant is on: the chat widget reads it, and…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/imentorassistantstatus
- Verified with: MentorAgent 1.5.0
- Last updated: 2026-11-26
- Packages: Novior.MentorAgent.Abstractions

Whether the application's assistant is on: the chat widget reads it, and while it is off the input and the send button are disabled and a sentence says the assistant was turned off, before anyone writes. An application that turns its assistant off from somewhere else — a console, a switch of its own — registers one; without one the assistant is on.

## Definition

Namespace: `Novior.MentorAgent.Abstractions.Interfaces`. Package: `Novior.MentorAgent.Abstractions`.

`public interface IMentorAssistantStatus`

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

## Remarks

Only on or off: no reason, no author. Off means that the switch refuses the requests to the model, not that a budget is used up: MentorAgent does not refuse them because of this service.

[`IMentorAssistantStatus.Changed`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/imentorassistantstatus#changed) is raised only when [`IMentorAssistantStatus.IsOn`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/imentorassistantstatus#ison) changes, with the service as the sender and `EventArgs.Empty`, and may be raised on a background thread: a Blazor component re-renders through `InvokeAsync(StateHasChanged)`. A handler reads [`IMentorAssistantStatus.IsOn`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/imentorassistantstatus#ison) again and returns at once; one that throws must not stop the service or the other handlers.

Register it as a singleton.

## Properties

### `IsOn`

`bool IsOn { get; }`

Whether the assistant is on. `true` unless the application turned it off.

## Events

### `Changed`

`event EventHandler? Changed`

Raised when [`IMentorAssistantStatus.IsOn`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/imentorassistantstatus#ison) changes, possibly on a background thread.

---

- Previous: [IMentorAgent interface](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/imentoragent.md)
- Next: [IMentorCommandHandler<TCommand> interface](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/imentorcommandhandler-1.md)
