Included a settings icon to every assistant that lets you edit the settings (#327)

This commit is contained in:
Peer Schütt authored and GitHub committed 2025-03-12 11:31:01 +01:00
1 parent 8a23b54e56
commit 200964422d
98 files changed
+685 -411

No files matched your search

@@ -1,5 +1,5 @@
@attribute [Route(Routes.ASSISTANT_EMAIL)]
@inherits AssistantBaseCore
@inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogWritingEMails>
<MudTextSwitch Label="Is there a history, a previous conversation?" @bind-Value="@this.provideHistory" LabelOn="Yes, I provide the previous conversation" LabelOff="No, I don't provide a previous conversation" />
@if (this.provideHistory)
@@ -1,10 +1,12 @@
using System.Text;
using AIStudio.Chat;
using AIStudio.Components.Settings;
using AIStudio.Dialogs.Settings;
namespace AIStudio.Assistants.EMail;
public partial class AssistantEMail : AssistantBaseCore
public partial class AssistantEMail : AssistantBaseCore<SettingsDialogWritingEMails>
{
public override Tools.Components Component => Tools.Components.EMAIL_ASSISTANT;
@@ -27,7 +29,7 @@ public partial class AssistantEMail : AssistantBaseCore
protected override string SubmitText => "Create email";
protected override Func<Task> SubmitAction => this.CreateMail;
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
{
SystemPrompt = SystemPrompts.DEFAULT,