A binary output to deliver as a platform file: either a generated MediaOutput or a file the
agent inlined as a data: URI. fileName, when present, wins over any derived name.
Deliberately not Pick<MediaOutput, ...>: MediaOutput.modality is MediaModality
('Image' | 'Audio' | 'Video'), and a file attachment is none of those.
A binary output to deliver as a platform file: either a generated
MediaOutputor a file the agent inlined as adata:URI.fileName, when present, wins over any derived name.Deliberately not
Pick<MediaOutput, ...>:MediaOutput.modalityisMediaModality('Image' | 'Audio' | 'Video'), and a file attachment is none of those.