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,16 @@
using AIStudio.Tools.DocumentSegments;
namespace AIStudio.Assistants;
/// <summary>
/// A document an assistant worked on, e.g., translated, which the user may save as often as they like.
/// </summary>
/// <remarks>
/// Only the new texts are kept, never the new file: saving writes them into a copy of the source,
/// which the format reads again then.
/// </remarks>
/// <param name="SourcePath">The document the assistant worked on.</param>
/// <param name="Results">What became of its segments.</param>
/// <param name="LanguageTag">The IETF tag of the language of the new texts, e.g., "de-DE"; empty to leave the marks of the language as they are.</param>
/// <param name="Label">What sets the new document apart, e.g., its target language, for the user and for the suggested file name.</param>
public sealed record EditedDocument(string SourcePath, SegmentResults Results, string LanguageTag, string Label);