MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent

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…

View as Markdown
On this page

A recipe as a source gives it. A recipe is known by its MentorRecipeDefinition.Route and its MentorRecipeDefinition.Name: two pages may each have a recipe of the same name. The limits are those of MentorRecipeLimits.

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

public sealed record MentorRecipeDefinition : IEquatable<MentorRecipeDefinition>

Terminal
dotnet add package Novior.MentorAgent

public MentorRecipeDefinition()

public required string Description { get; init; }

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

public required string Name { get; init; }

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

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

The values the model gives, at most MentorRecipeLimits.MaxParameters.

public bool RequiresConfirmation { get; init; }

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

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

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

public required string Route { get; init; }

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

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

The steps, in order: 1 to MentorRecipeLimits.MaxSteps.