There are two ways you can upgrade agent as follows:
To do the Agent version upgrade settings
Choose the Auto Update (Latest) to auto update the Agent when ever the latest release version is available.
or
Choose the preferred version and the same version will get upgraded in the agent.
Click Save.