"""Enhanced agent decision making.""" # Improved decision logic