adding a data source settings button

This commit is contained in:
Nils Kruthoff 2026-09-15 14:17:37 +02:00
parent 9fd35176a8
commit 1823ea30b2
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C

View File

@ -1,5 +1,6 @@
@attribute [Route(Routes.ASSISTANT_DYNAMIC)]
@using AIStudio.Agents.AssistantAudit
@using AIStudio.Settings.DataModel
@using AIStudio.Tools.PluginSystem.Assistants.DataModel
@using AIStudio.Tools.PluginSystem.Assistants.DataModel.Layout
@inherits AssistantBaseCore<AIStudio.Dialogs.Settings.NoSettingsPanel>
@ -61,6 +62,14 @@ else
</MudTooltip>
: null;
private protected override RenderFragment? FooterActions => PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager)
? @<DataSourceSelection LLMProvider="@this.ProviderSettings"
DataSourceOptions="@this.dataSourceOptions"
DataSourceOptionsChanged="@this.DataSourceOptionsChanged"
DataSourcesAISelected="@(this.ChatThread?.AISelectedDataSources ?? [])"
PopoverTriggerMode="PopoverTriggerMode.ICON" />
: null;
private RenderFragment RenderSwitch(AssistantSwitch assistantSwitch) => @<MudSwitch T="bool"
Value="@this.assistantState.Booleans[assistantSwitch.Name]"
ValueChanged="@(value => this.ExecuteSwitchChangedAsync(assistantSwitch, value))"