Added whole documents to the Translation, Grammar & Spelling, and Rewrite & Improve assistants (#1179)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Sabrina-devopsandThorsten Sommer authored and GitHub committed 2026-11-28 20:27:23 +01:00
1 parent f7666861f1
commit 918572c158
150 files changed
+12850 -302

No files matched your search

@@ -0,0 +1,32 @@
using Microsoft.AspNetCore.Components;
namespace AIStudio.Components;
/// <summary>
/// The button next to the settings of an assistant, which switches to another of the modes it offers, e.g., from
/// translating a document to translating a text.
/// </summary>
/// <remarks>
/// Every assistant with modes shows the same icon here, so that users recognize the button; its tooltip names
/// where it leads.
/// </remarks>
public partial class AssistantModeSwitch : ComponentBase
{
/// <summary>
/// The tooltip of the button, e.g., "Switch to text translation".
/// </summary>
[Parameter, EditorRequired]
public string Tooltip { get; set; } = string.Empty;
/// <summary>
/// Whether the button is disabled, e.g., while the assistant works.
/// </summary>
[Parameter]
public bool Disabled { get; set; }
/// <summary>
/// Called when the user clicks the button.
/// </summary>
[Parameter]
public EventCallback OnSwitch { get; set; }
}