# MentorRecipeDefinition record

> The MentorRecipeDefinition record of Novior.MentorAgent.Core: A recipe as a source gives it. A recipe is known by its MentorRecipeDefinition.Route and its…

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

A recipe as a source gives it. A recipe is known by its [`MentorRecipeDefinition.Route`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipedefinition#route) and its [`MentorRecipeDefinition.Name`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipedefinition#name): two pages may each have a recipe of the same name. The limits are those of [`MentorRecipeLimits`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipelimits).

## Definition

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

`public sealed record MentorRecipeDefinition : IEquatable<MentorRecipeDefinition>`

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

## Constructors

`public MentorRecipeDefinition()`

## Properties

### `Description`

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

What the recipe does, for the model and for the user's confirmation. Required.

### `Name`

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

The name of the tool the model calls: 1 to 64 letters, digits, '\_' and '-'. Required.

### `Parameters`

`public IReadOnlyList<MentorRecipeParameterDefinition> Parameters { get; init; }`

The values the model gives, at most [`MentorRecipeLimits.MaxParameters`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipelimits#maxparameters).

### `RequiresConfirmation`

`public bool RequiresConfirmation { get; init; }`

Whether the user confirms it before it runs, with the values of its parameters shown.

### `Roles`

`public IReadOnlyList<string> Roles { get; init; }`

The roles a user needs to run it, any one of them; empty, anybody may run it.

### `Route`

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

The route of the page it runs on, as the router writes it: `/orders/{id:int}`. Required.

### `Steps`

`public required IReadOnlyList<MentorRecipeStepDefinition> Steps { get; init; }`

The steps, in order: 1 to [`MentorRecipeLimits.MaxSteps`](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipelimits#maxsteps).

---

- Previous: [MentorRateLimiter class](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorratelimiter.md)
- Next: [MentorRecipeLimits class](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipelimits.md)
