# EvalRefusal enum

> A refusal the mentor shows instead of an answer: what EvalTurn.ExpectRefusal expects and MentorEvalResult.Refusal reports.

- URL: https://docs.mentoragent.net/api/novior-mentoragent-evaluation/evalrefusal
- Verified with: MentorAgent 1.4.0
- Last updated: 2026-11-18
- Packages: Novior.MentorAgent

## Definition

Namespace: `Novior.MentorAgent.Evaluation`. Package: `Novior.MentorAgent`.

`public enum EvalRefusal`

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

## Values

| Value | Number | Description |
|---|---|---|
| `Any` | 0 | Either refusal. Only for [`EvalTurn.ExpectRefusal`](https://docs.mentoragent.net/api/novior-mentoragent-evaluation/evalturn#expectrefusal): a result reports which one it was. |
| `OutOfScope` | 1 | The message is not about the application: [`MentorOptions.RefuseOutOfScope`](https://docs.mentoragent.net/api/novior-mentoragent-options/mentoroptions#refuseoutofscope). |
| `Guardrail` | 2 | The message was judged unsafe — by the safety check ([`MentorOptions.EnableSafetyCheck`](https://docs.mentoragent.net/api/novior-mentoragent-options/mentoroptions#enablesafetycheck)), by the host's [`MentorOptions.InputGuardrail`](https://docs.mentoragent.net/api/novior-mentoragent-options/mentoroptions#inputguardrail) — or the model itself refused to answer it. |

---

- Previous: [EvalConversation record](https://docs.mentoragent.net/api/novior-mentoragent-evaluation/evalconversation.md)
- Next: [EvalTurn record](https://docs.mentoragent.net/api/novior-mentoragent-evaluation/evalturn.md)
