Choose the artifact a run should be represented by.
A FILE artifact wins over the payload artifact: the file is the deliverable the user asked for
(a .docx, a .pdf), while the payload artifact is a snapshot of the agent's internal state.
Callers surface this as a single "open the artifact" affordance, so a document-generating run
used to point at raw JSON. With several files, the first is the primary one.
Choose the artifact a run should be represented by.
A FILE artifact wins over the payload artifact: the file is the deliverable the user asked for (a .docx, a .pdf), while the payload artifact is a snapshot of the agent's internal state. Callers surface this as a single "open the artifact" affordance, so a document-generating run used to point at raw JSON. With several files, the first is the primary one.