Class AiPromptWizardStepPlan
Builds the wizard's dynamic step list: a fixed head (Skills, Instructions, Intents), one Configure page
per selected intent in AiPromptIntentKind canonical order regardless of selection order,
and a fixed tail (Review, Output). Pure and Unity-free so the whole flow shape is unit-testable without
an editor.
Inheritance
AiPromptWizardStepPlan
Assembly: Serenity.AiPromptBuilder.Editor.dll
Syntax
public static class AiPromptWizardStepPlan
Methods
Build(IReadOnlyList<AiPromptIntentKind>)
Declaration
public static IReadOnlyList<AiPromptWizardStep> Build(IReadOnlyList<AiPromptIntentKind> selectedIntents)
Parameters
Returns
IndexOf(IReadOnlyList<AiPromptWizardStep>, AiPromptWizardStepKind, AiPromptIntentKind?)
The index of the step matching kind (and, for
IntentConfigure, intentKind) in
plan, or -1 when no step matches — e.g. a Configure page whose intent was just
deselected.
Declaration
public static int IndexOf(IReadOnlyList<AiPromptWizardStep> plan, AiPromptWizardStepKind kind, AiPromptIntentKind? intentKind = null)
Parameters
Returns
Titles(IReadOnlyList<AiPromptWizardStep>)
Declaration
public static string[] Titles(IReadOnlyList<AiPromptWizardStep> plan)
Parameters
Returns