mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-21 16:12:15 +00:00
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
@using AIStudio.Tools.ToolCallingSystem
|
|
@inherits SettingsPanelBase
|
|
|
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Build" HeaderText="@T("Tools")">
|
|
<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("Tool")</MudTh>
|
|
<MudTh>@T("State")</MudTh>
|
|
<MudTh>@T("Actions")</MudTh>
|
|
</HeaderContent>
|
|
<RowTemplate>
|
|
<MudTd>
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2">
|
|
<MudIcon Icon="@context.Definition.Icon" />
|
|
<MudText Typo="Typo.body1">@context.Definition.DisplayName</MudText>
|
|
</MudStack>
|
|
</MudTd>
|
|
<MudTd>
|
|
@(context.ConfigurationState.IsConfigured ? T("Configured") : T("Configuration required"))
|
|
</MudTd>
|
|
<MudTd>
|
|
<MudIconButton Icon="@Icons.Material.Filled.Settings" OnClick="@(async () => await this.OpenSettings(context.Definition.Id))" />
|
|
</MudTd>
|
|
</RowTemplate>
|
|
</MudTable>
|
|
</ExpansionPanel>
|