partsFromJson
Decodes the AI steps among a message's attachments, with each payload as JSON text, in order. Attachments that are not AI steps are skipped, and a payload that is not a JSON object reads as empty.
Parameters
attachments
Each attachment's type and payload as JSON text, in the message's order.