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,19 @@
namespace AIStudio.Assistants;
/// <summary>
/// The text of the last run of an assistant and its result, which the assistant shows as a diff.
/// </summary>
/// <param name="Original">The text the assistant worked on.</param>
/// <param name="Changed">The result of the run.</param>
public readonly record struct AssistantTextDiff(string Original, string Changed)
{
/// <summary>
/// No diff, e.g., before the first run.
/// </summary>
public static readonly AssistantTextDiff NONE = new(string.Empty, string.Empty);
/// <summary>
/// Whether there is a diff to show: both texts hold more than white space.
/// </summary>
public bool IsShown => !string.IsNullOrWhiteSpace(this.Original) && !string.IsNullOrWhiteSpace(this.Changed);
}