# MentorRecipeRejection record

> The MentorRecipeRejection record of Novior.MentorAgent.Core: A recipe left out, and why.

- URL: https://docs.mentoragent.net/api/novior-mentoragent-core/mentorreciperejection
- Verified with: MentorAgent 1.5.0
- Last updated: 2026-11-26
- Packages: Novior.MentorAgent

A recipe left out, and why.

## Definition

Namespace: `Novior.MentorAgent.Core`. Package: `Novior.MentorAgent`.

`public sealed record MentorRecipeRejection : IEquatable<MentorRecipeRejection>`

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

## Constructors

`public MentorRecipeRejection(string Route, string Name, string ReasonCode, string? Detail)`

A recipe left out, and why.

**Parameters**

- `Route`: The recipe's route, as the source gave it; empty when it had none.
- `Name`: The recipe's name, as the source gave it; empty when it had none.
- `ReasonCode`: A [`MentorRecipeRejectionReasons`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorreciperejectionreasons) code.
- `Detail`: What to correct. Never an exception's message: for [`MentorRecipeRejectionReasons.SourceFailed`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorreciperejectionreasons#sourcefailed), only its type.

## Properties

### `Detail`

`public string? Detail { get; init; }`

What to correct. Never an exception's message: for [`MentorRecipeRejectionReasons.SourceFailed`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorreciperejectionreasons#sourcefailed), only its type.

### `Name`

`public string Name { get; init; }`

The recipe's name, as the source gave it; empty when it had none.

### `ReasonCode`

`public string ReasonCode { get; init; }`

A [`MentorRecipeRejectionReasons`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorreciperejectionreasons) code.

### `Route`

`public string Route { get; init; }`

The recipe's route, as the source gave it; empty when it had none.

---

- Previous: [MentorRecipePrecedence enum](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipeprecedence.md)
- Next: [MentorRecipeRejectionReasons class](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorreciperejectionreasons.md)
