AI-Studio/app/MindWork AI Studio/Tools/Media/MediaImportDelivery.cs

15 lines
433 B
C#
Raw Normal View History

using AIStudio.Chat;
namespace AIStudio.Tools.Media;
/// <summary>Pending media results waiting for one concrete UI target.</summary>
public sealed record MediaImportDelivery
{
public required MediaImportTarget Target { get; init; }
public IReadOnlyList<FileAttachment> Attachments { get; init; } = [];
public string? Text { get; init; }
public bool IsEmpty => this.Attachments.Count is 0 && this.Text is null;
}