Read Web Page is now opened automatically when the confluence tool is selected

This commit is contained in:
Peer Hogeterp committed 2026-09-23 11:32:25 +02:00
1 parent 5c867a9b23
commit 243dc34a34
8 files changed
+35 -6

No files matched your search

@@ -1,6 +1,7 @@
using System.Globalization;
using AIStudio.Dialogs;
using AIStudio.Tools.PluginSystem.Assistants;
using AIStudio.Tools.ToolCallingSystem;
using Microsoft.AspNetCore.Components;
using DialogOptions = AIStudio.Dialogs.DialogOptions;
@@ -30,7 +31,9 @@ public partial class AssistantPluginSecurityCard : MSGComponentBase
/// should see that beforehand, which is why the count sits in the header next to the audit
/// level and the tools themselves are named in the details.
/// </remarks>
private IReadOnlyList<string> PluginToolIds => this.Plugin?.AssistantToolIds ?? this.Plugin?.ChatLaunchConfiguration?.ToolIds ?? [];
private IReadOnlyList<string> PluginToolIds => ToolSelectionRules.NormalizeSelection(this.Plugin?.AssistantToolIds ?? this.Plugin?.ChatLaunchConfiguration?.ToolIds ?? [])
.OrderBy(x => x, StringComparer.Ordinal)
.ToList();
private CultureInfo currentCultureInfo = CultureInfo.InvariantCulture;
private bool showSecurityCard;
@@ -49,6 +49,12 @@ public partial class ToolSelectionField : MSGComponentBase
private List<ConfigurationSelectData<string>> availableTools = [];
protected override void OnParametersSet()
{
this.SelectedToolIds = ToolSelectionRules.NormalizeSelection(this.SelectedToolIds);
base.OnParametersSet();
}
protected override async Task OnInitializedAsync()
{
this.availableTools = (await this.ToolRegistry.GetCatalogAsync(this.Component))
@@ -80,4 +86,4 @@ public partial class ToolSelectionField : MSGComponentBase
break;
}
}
}
}