(a) delivery by the town board or its agent, servant, official or employee against whom the legal action or proceeding was commenced to the attorney general or an assistant attorney general at an office of the department of law in the state, the original or a copy of any summons, complaint, process, notice, demand, or pleading within thirty days after such document is served upon the town board or such other party; and
(b) the full cooperation of the town board or such other party against whom the action or proceeding was commenced in the defense of such action or proceeding and in defense of any action or proceeding against the state based upon the same act or omission, and in the prosecution of any appeal.