mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 15:01:37 +00:00
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
|
|
@attribute [Route(Routes.ASSISTANT_DYNAMIC)]
|
||
|
|
@using AIStudio.Tools.PluginSystem.Assistants.DataModel
|
||
|
|
@inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogDynamic>
|
||
|
|
|
||
|
|
@foreach (var component in this.RootComponent!.Children)
|
||
|
|
{
|
||
|
|
@switch (component.Type)
|
||
|
|
{
|
||
|
|
case AssistantUiCompontentType.TEXT_AREA:
|
||
|
|
if (component is AssistantTextArea textArea)
|
||
|
|
{
|
||
|
|
<MudTextField T="string" @bind-Text="@this.inputText" Label="@textArea.Label" AdornmentIcon="@Icons.Material.Filled.DocumentScanner" Adornment="Adornment.Start" Variant="Variant.Outlined" Lines="6" AutoGrow="@true" MaxLines="12" Class="mb-3"/>
|
||
|
|
}
|
||
|
|
break;
|
||
|
|
|
||
|
|
case AssistantUiCompontentType.PROVIDER_SELECTION:
|
||
|
|
if (component is AssistantProviderSelection providerSelection)
|
||
|
|
{
|
||
|
|
<ProviderSelection @bind-ProviderSettings="@this.providerSettings" ValidateProvider="@this.ValidatingProvider"/>
|
||
|
|
}
|
||
|
|
break;
|
||
|
|
|
||
|
|
default:
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|