render

fun MessagePart.render(): String?

Renders a single part, or null if it carries no textual information.

Non-text payloads are dropped rather than rendered, and each drop is logged: this is on the per-call trajectory path (see MiniSWE's SweBenchProcessor), so throwing would take down a run over a rendering detail, but a silent drop would make a truncated trajectory look complete.