Typically segment type can be defined for the BGP prefix as it can be seen on the following figure:
So, you can define single segment type per as-path (either seq or set). Is there a way to define both segments in the same attribute for the same BGP prefix such as: