how would I make the A.I turn based on it's locomotion?

No, I don’t mean smooth turning, I want it to not instantly turn into another direction at all but instead have it turn by walking to the left or the right smoothly