mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 23:31:36 +00:00
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:
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);
|
||||
}
|
||||
Reference in new issue
Block a user