mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-21 03:52:16 +00:00
45 lines
1.8 KiB
Plaintext
45 lines
1.8 KiB
Plaintext
@using AIStudio.Tools.ToolCallingSystem
|
|
@inherits SettingsPanelBase
|
|
|
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Build" HeaderText="@T("Tool Settings")">
|
|
<MudText Typo="Typo.body1" Class="mb-4">
|
|
@T("Configure global settings for each tool. Tool defaults for chat and assistants are configured in the corresponding feature settings.")
|
|
</MudText>
|
|
|
|
<MudTable Items="@this.items" Hover="@true" Dense="@true">
|
|
<HeaderContent>
|
|
<MudTh>@T("Icon")</MudTh>
|
|
<MudTh>@T("Name")</MudTh>
|
|
<MudTh>@T("Description")</MudTh>
|
|
<MudTh>@T("State")</MudTh>
|
|
<MudTh>@T("Settings")</MudTh>
|
|
</HeaderContent>
|
|
<RowTemplate>
|
|
<MudTd>
|
|
<MudIcon Icon="@context.Implementation.Icon" Color="Color.Info" />
|
|
</MudTd>
|
|
<MudTd>
|
|
<MudText Typo="Typo.body1">@context.Implementation.GetDisplayName()</MudText>
|
|
</MudTd>
|
|
<MudTd>
|
|
<MudText Typo="Typo.body2">@context.Implementation.GetDescription()</MudText>
|
|
</MudTd>
|
|
<MudTd>
|
|
@if (context.ConfigurationState.IsConfigured)
|
|
{
|
|
<MudIcon Icon="@Icons.Material.Filled.CheckCircle" Color="Color.Success" />
|
|
}
|
|
else
|
|
{
|
|
<MudTooltip Text="@this.GetConfigurationTooltip(context)">
|
|
<MudIcon Icon="@Icons.Material.Filled.Warning" Color="Color.Warning" />
|
|
</MudTooltip>
|
|
}
|
|
</MudTd>
|
|
<MudTd>
|
|
<MudIconButton Icon="@Icons.Material.Filled.Settings" OnClick="@(async () => await this.OpenSettings(context.Definition.Id))" />
|
|
</MudTd>
|
|
</RowTemplate>
|
|
</MudTable>
|
|
</ExpansionPanel>
|