All the Specialized bikes do this and I'm pretty sure most of the others do too. You can set what Eco, Trail and Turbo are with the amount of power and how much it responds to your input.
View attachment 422354
You just slide the power setting to where you want it.
Almost all pedal assist ebikes have a torque sensor in them, and they can detect how much input you are putting in. You can set it up with minimal assistance unless you put a lot of effort in and it will increase the motor power accordingly.
It's a pretty neat feature.