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