agentstack-ui processes message parts and metadata for display.
Process message metadata
Trajectory and citation metadata are stored in message metadata, not in parts. Use the UI extensions to extract them and render UI sections.Process message parts
Text and file parts are in themessage.parts array. Map them to your UI components.
Resolve file URLs
Files can arrive as a platform URL or inline base64 bytes. Convert them to something the UI can render.Artifacts
Artifact updates arrive asartifact-update events and contain their own parts. Process them the same way as message parts.