2026-04-09 13:37:53 +00:00
|
|
|
@using AIStudio.Tools
|
|
|
|
|
@using AIStudio.Tools.ToolCallingSystem
|
|
|
|
|
@inherits MSGComponentBase
|
|
|
|
|
|
|
|
|
|
@if (this.availableTools.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
@if (this.Component is not Components.CHAT && this.IncludeVisibilityToggle)
|
|
|
|
|
{
|
|
|
|
|
<ConfigurationOption OptionDescription="@T("Show tool selection in this assistant?")" LabelOn="@T("Tool selection is visible")" LabelOff="@T("Tool selection is hidden")" State="@(() => this.SettingsManager.IsToolSelectionVisible(this.Component))" StateUpdate="@(value => this.SettingsManager.SetToolSelectionVisibility(this.Component, value))" />
|
|
|
|
|
}
|
2026-04-13 08:58:43 +00:00
|
|
|
<ConfigurationMultiSelect TData="string" OptionDescription="@this.OptionTitle" SelectedValues="@this.GetSelectedValues" Data="@this.availableTools" SelectionUpdate="@this.UpdateSelection" OptionHelp="@this.OptionHelp" Disabled="@(() => this.AreDefaultToolsDisabled)" EmptySelectionText="@T("No tools selected.")" SingleSelectionText="@T("You have selected 1 tool.")" MultipleSelectionText="@T("You have selected {0} tools.")" />
|
2026-04-09 13:37:53 +00:00
|
|
|
}
|