2026-07-15 12:53:30 +02:00
|
|
|
using AIStudio.Chat;
|
2026-11-28 11:52:17 +01:00
|
|
|
using AIStudio.Tools.Imports;
|
2026-07-15 12:53:30 +02:00
|
|
|
|
|
|
|
|
namespace AIStudio.Tools.Media;
|
|
|
|
|
|
|
|
|
|
/// <summary>Pending media results waiting for one concrete UI target.</summary>
|
|
|
|
|
public sealed record MediaImportDelivery
|
|
|
|
|
{
|
2026-11-28 11:52:17 +01:00
|
|
|
public required ImportTarget Target { get; init; }
|
2026-07-15 12:53:30 +02:00
|
|
|
|
|
|
|
|
public IReadOnlyList<FileAttachment> Attachments { get; init; } = [];
|
|
|
|
|
|
|
|
|
|
public string? Text { get; init; }
|
|
|
|
|
|
|
|
|
|
public bool IsEmpty => this.Attachments.Count is 0 && this.Text is null;
|
|
|
|
|
}
|