When UE looks for its DCIs how does it differentiate UL one vs DL one?

Hi Experts.

When UE looks for its DCIs how does it differentiate UL one vs DL one?

Each DCI has different format and message size. If 2 formats have same size, there is aflag to differentiate

DCI 1 is for DL.
DCI 0 is for UL.