there are default names for the caps and roundings/fillets.
Apply the material you want for the cap on the sweep and in the Selection text box of the material’s Tag put C1, C2, R1, R2. Only one of them at a time… C1 and C2 are for the caps and the R’s for the roundings if they’re on.