parts

fun parts(attachments: List<Pair<String, Map<String, Any?>>>): List<AIMessagePart>

Decodes the AI steps among a message's attachments, in order. Attachments that are not AI steps (images, files and so on) are skipped.

Parameters

attachments

Each attachment's type and payload, in the message's order.