The platform's parse_citations parser inspects raw provider responses to mark URLs as selected if they are explicitly referenced in final response annotations or citation blocks, categorising all other retrieved search sources as unselected.

sequenceDiagram
    autonumber
    actor Engine as Grounded Model
    participant Parser as parse_citations
    participant Store as Citation Records

    Engine->>Parser: Raw provider JSON (search results + final message)
    loop For each retrieved URL
        alt URL in message annotations/citations
            Parser->>Store: Save as Selected Citation
        else URL omitted from text
            Parser->>Store: Save as Unselected Citation
        end
    end