If you are writing about the purchase contract then: your contract is not with your Realtor, he is not a principal. You the buyer are a principal. Your contract is with the other principal in the transaction -
The agent is the professional who filled in the blanks on the CAR sales contract for you. The agent is an agent. You are the principal.
If there is a reason to get out of the contract with the seller that is covered by your inspection contingency during the contingency time period then your agent should either help you get out of the contract if that is what you must do. or help you to see if it makes sense to proceed with the deal. You may just have buyer jitters, cold feet,, buyers remorse. Humans are emotional, there is no shame in that. However, if you are wishing to cancel a $100,000 plus deal over some needed repair that represents a teeny tiny fraction of the value of the deal then you are being emotional. - That is okay. .
You are not Captain Spock, so it is ok that your emotion wants to be part of your real estate experience, just make sure that your logical side gets to play a part too.