@using AIStudio.Chat @(this.Title) @(this.Description) @if (this.Body is not null) { @(this.Body) } @if (this.ShowDedicatedProgress && this.isProcessing) { }
@if (this.ShowResult && this.resultingContentBlock is not null) { }
@if (!this.FooterButtons.Any(x => x.Type is ButtonTypes.SEND_TO)) { @foreach (var assistant in Enum.GetValues().OrderBy(n => n.Name().Length)) { if (assistant is Components.NONE || this.Component == assistant) continue; @assistant.Name() } } @foreach (var button in this.FooterButtons) { switch (button) { case ButtonData buttonData when !string.IsNullOrWhiteSpace(buttonData.Tooltip): @buttonData.Text break; case ButtonData buttonData: @buttonData.Text break; case SendToButton sendToButton: @foreach (var assistant in Enum.GetValues().OrderBy(n => n.Name().Length)) { if(assistant is Components.NONE || sendToButton.Self == assistant) continue; @assistant.Name() } break; } } Copy result Reset @if (this.AllowProfiles && this.ShowProfileSelection) { }