Assistant send result (#75)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-08-18 12:32:18 +02:00
1 parent ea0ead58f8
commit 909fbe89bb
36 files changed
+400 -63

No files matched your search

@@ -1,4 +1,4 @@
@page "/assistant/agenda"
@attribute [Route(Path.ASSISTANT_AGENDA)]
@using AIStudio.Tools
@inherits AssistantBaseCore
@@ -93,6 +93,14 @@ public partial class AssistantAgenda : AssistantBaseCore
- Mary Jane: Work package 3
""";
protected override IReadOnlyList<IButtonData> FooterButtons =>
[
new SendToButton
{
Self = SendToAssistant.AGENDA_ASSISTANT,
},
];
private string inputTopic = string.Empty;
private string inputName = string.Empty;
private string inputContent = string.Empty;
@@ -145,6 +153,10 @@ public partial class AssistantAgenda : AssistantBaseCore
this.providerSettings = this.SettingsManager.ConfigurationData.Providers.FirstOrDefault(x => x.Id == this.SettingsManager.ConfigurationData.Agenda.PreselectedProvider);
}
var deferredContent = MessageBus.INSTANCE.CheckDeferredMessages<string>(Event.SEND_TO_AGENDA_ASSISTANT).FirstOrDefault();
if (deferredContent is not null)
this.inputContent = deferredContent;
await base.OnInitializedAsync();
}