Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
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…
In questa pagina
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.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Core. Package: Novior.MentorAgent.
public sealed record MentorRecipeDefinition : IEquatable<MentorRecipeDefinition>
dotnet add package Novior.MentorAgentConstructors
Section titled “Constructors”public MentorRecipeDefinition()
Properties
Section titled “Properties”Description
Section titled “Description”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.
Parameters
Section titled “Parameters”public IReadOnlyList<MentorRecipeParameterDefinition> Parameters { get; init; }
The values the model gives, at most MentorRecipeLimits.MaxParameters.
RequiresConfirmation
Section titled “RequiresConfirmation”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.
