From 3828e2ad967e0dc1403e63db602e2033fa2c1b6f Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 31 Dec 2024 19:31:00 +0100 Subject: [PATCH] Added possibility to show the entire chat thread --- .../Assistants/AssistantBase.razor | 13 ++++++++++++- .../Assistants/AssistantBase.razor.cs | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Assistants/AssistantBase.razor b/app/MindWork AI Studio/Assistants/AssistantBase.razor index 42ce9033..5387d8ee 100644 --- a/app/MindWork AI Studio/Assistants/AssistantBase.razor +++ b/app/MindWork AI Studio/Assistants/AssistantBase.razor @@ -35,11 +35,22 @@
- @if (this.ShowResult && this.resultingContentBlock is not null) + @if (this.ShowResult && !this.ShowEntireChatThread && this.resultingContentBlock is not null) { } + @if(this.ShowResult && this.ShowEntireChatThread && this.chatThread is not null) + { + foreach (var block in this.chatThread.Blocks.OrderBy(n => n.Time)) + { + @if (!block.HideFromUser) + { + + } + } + } +
diff --git a/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs b/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs index 32177a55..e4f155e7 100644 --- a/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs +++ b/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs @@ -71,6 +71,8 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver private protected virtual RenderFragment? Body => null; protected virtual bool ShowResult => true; + + protected virtual bool ShowEntireChatThread => false; protected virtual bool AllowProfiles => true;