Tell the agent that your purchase is subject to satisfactory building and pest inspection and subject to finance as well..
Then contact your solicitor/conveyancer. If your offer is accepted, your conveyancer/solicitor will make sure these clauses are in the sales contract.
As long as they are in the contract, you have an "out" if you need/want it.
regards
Luvvit.