The most basic pergola will have beams going across it that are placed relatively close together. These will provide moderate shade and may be just enough for lower summer temperatures.
Retractable shade: There are many options and many price points that will allow you to enjoy the sun on some days and to protect yourself from it when it’s just too much. Some retractable shades are remote controlled while others are manual, so you’ll have to search a bit to find which fits your preference and budget. If you live in an area with extreme heat this may be the perfect option for you!