MentorAgent Docs
Menu

Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.

RiferimentoPacchetto: Novior.MentorAgent

IMentorRecipeSource interface

The IMentorRecipeSource interface of Novior.MentorAgent.Core: Gives the application recipes that are not written in its code: sequences of steps on one page…

In questa pagina

Gives the application recipes that are not written in its code: sequences of steps on one page that the widget runs in the user's browser, offered to the model as one of that page's actions — from a console that approves them, from any store. Asked once for each session, when the session builds its tools: an open conversation keeps the recipes it started with. Register it with AddMentorRecipeSource<T>(); every source registered is asked.

A recipe clicks what the user could click, with the user's rights, in the user's browser. What a source gives is what the application runs: whoever implements a source decides which recipes are approved, and checks where they come from — a signature, an approval. MentorAgent checks only that each recipe holds together, and leaves out with its reason, never silently, one that does not (MentorRecipeRejectionReasons).

A recipe is offered on the page of its MentorRecipeDefinition.Route only, as a UI action of that page: the action policies are asked about it with Kind = UI and the page's name, when it is offered and when it is called, and it runs with its own roles and its own confirmation. Its selectors never reach the model, which gives the values of its parameters only.

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

public interface IMentorRecipeSource

Terminal
dotnet add package Novior.MentorAgent

Task<MentorRecipeSourceResult> LoadAsync(MentorRecipeSourceContext context, CancellationToken ct = default)

The source's recipes for one session, and what it left out itself.