Task Success Rate (TSR) is a key performance metric used to evaluate the effectiveness of a certain process…