How to Improve AI Agent Performance with Real-Time Evaluation Metrics