AI-Studio/app/MindWork AI Studio/Assistants/AssistantBaseCore.cs

19 lines
555 B
C#
Raw Normal View History

2024-07-14 19:46:17 +00:00
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Rendering;
2024-08-21 06:30:01 +00:00
namespace AIStudio.Assistants;
2024-07-14 19:46:17 +00:00
//
// See https://stackoverflow.com/a/77300384/2258393 for why this class is necessary
2024-07-14 19:46:17 +00:00
//
public abstract class AssistantBaseCore : AssistantBase
{
private protected sealed override RenderFragment Body => this.BuildRenderTree;
// Allow content to be provided by a .razor file but without
// overriding the content of the base class
protected new virtual void BuildRenderTree(RenderTreeBuilder builder)
{
}
}