Our SAP Agent is compatible with SAP Basis. The Automation Engine has no compatibility with SAP HANA, which I presume you mean the database.Our SAP Agent is not concerned about which database SAP is running on.
Our AE does not interact directly with underlying sap s4/hana and does not have any insight into /upgrading SAP S4/ Hana . You can check our compatibility matrix (shared earlier) for AE compatibility with SAP agent.
Here's the link to our matrix again:
If the agent version you are trying to run is compatible, you can check our product documentation for related upgrade information . Here a direct link to the Upgrade section of the documentation :