# MentorRecipeLimits class

> The limits of a recipe, the same for every source, so that whoever approves recipes can refuse at once what MentorAgent would leave out.

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

## Definition

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

`public static class MentorRecipeLimits`

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

## Fields

### `MaxDescriptionLength`

`public const int MaxDescriptionLength = 1024`

The longest description, of a recipe or of a parameter.

### `MaxNameLength`

`public const int MaxNameLength = 64`

The longest name of a recipe or of a parameter.

### `MaxParameters`

`public const int MaxParameters = 10`

The most parameters of a recipe.

### `MaxRoleLength`

`public const int MaxRoleLength = 256`

The longest role.

### `MaxRoles`

`public const int MaxRoles = 20`

The most roles of a recipe.

### `MaxRouteLength`

`public const int MaxRouteLength = 256`

The longest route.

### `MaxSelectorLength`

`public const int MaxSelectorLength = 1024`

The longest selector, cell, target or filter of a step.

### `MaxSteps`

`public const int MaxSteps = 50`

The most steps of a recipe.

### `MaxValueLength`

`public const int MaxValueLength = 1024`

The longest value of a step, as written in the recipe.

---

- Previous: [MentorRecipeDefinition record](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipedefinition.md)
- Next: [MentorRecipeParameterDefinition record](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorrecipeparameterdefinition.md)
