mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 22:29:07 +00:00
27 lines
1.9 KiB
Plaintext
27 lines
1.9 KiB
Plaintext
@attribute [Route(Routes.ASSISTANT_CODING)]
|
|
@inherits AssistantBaseCore
|
|
|
|
<MudExpansionPanels Class="mb-3">
|
|
@for (var contextIndex = 0; contextIndex < this.codingContexts.Count; contextIndex++)
|
|
{
|
|
var codingContext = this.codingContexts[contextIndex];
|
|
var index = contextIndex;
|
|
<ExpansionPanel HeaderText="@codingContext.Id" HeaderIcon="@Icons.Material.Filled.Code" ShowEndButton="@true" EndButtonColor="Color.Error" EndButtonIcon="@Icons.Material.Filled.Delete" EndButtonTooltip="Delete context" EndButtonClickAsync="@(() => this.DeleteContext(index))">
|
|
<CodingContextItem @bind-CodingContext="@codingContext"/>
|
|
</ExpansionPanel>
|
|
}
|
|
</MudExpansionPanels>
|
|
<MudButton Variant="Variant.Filled" OnClick="() => this.AddCodingContext()" Class="mb-3">
|
|
Add context
|
|
</MudButton>
|
|
|
|
<MudStack Row="@false" Class="mb-3">
|
|
<MudTextSwitch Label="Do you want to provide compiler messages?" @bind-Value="@this.provideCompilerMessages" LabelOn="Yes, provide compiler messages" LabelOff="No, there are no compiler messages" />
|
|
@if (this.provideCompilerMessages)
|
|
{
|
|
<MudTextField T="string" @bind-Text="@this.compilerMessages" Validation="@this.ValidatingCompilerMessages" AdornmentIcon="@Icons.Material.Filled.Error" Adornment="Adornment.Start" Label="Compiler messages" Variant="Variant.Outlined" Lines="6" AutoGrow="@true" MaxLines="12" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
|
|
}
|
|
</MudStack>
|
|
|
|
<MudTextField T="string" @bind-Text="@this.questions" Validation="@this.ValidateQuestions" AdornmentIcon="@Icons.Material.Filled.QuestionMark" Adornment="Adornment.Start" Label="Your question(s)" Variant="Variant.Outlined" Lines="6" AutoGrow="@true" MaxLines="12" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
|
|
<ProviderSelection @bind-ProviderSettings="@this.providerSettings" ValidateProvider="@this.ValidatingProvider"/> |