This type of agreement has no legal value and far from real life,an article from www.advocatekhoj.com:-----------
Marriage in India is considered a sacred institution. However, not every marriage is meant to last. Though in India, divorce is not an easy option and is looked upon as social stigma to our values, you cannot carry the burden of a failed marriage throughout your life for the sake of societal issues. By analyzing the pros and cons of divorcing, you should resolutely state your decision. However, taking a decision won’t solve your problem. Divorce is a complex issue - morally, socially and legally. You should not step into this whirlpool without planning or strategies.
In India family and society gives too many advice but the couple should instead turn to a professional for advice. A professional’s help has credibility and he/she has experience in dealing with numerous cases like yours. You should always go through a counselor, no matter what. If the counselor thinks that the reasons for divorce are immature and both parties do not understand what it takes to succeed in a marriage, then reconsidering and re-evaluating your decision and incase if the divorce is inevitable as understood by a professional then his/her opinion will weigh in your favor during legal proceedings of court.