Decode an AIPromptRun.Messages field (a JSON string) into role/content pairs. Handles both the bare-array shape and the { messages: [...] } wrapper (same two shapes ParseMessagesData handles).
{ messages: [...] }
Decode an AIPromptRun.Messages field (a JSON string) into role/content pairs. Handles both the bare-array shape and the
{ messages: [...] }wrapper (same two shapes ParseMessagesData handles).