How to adjust how many angles AI can navigate on and build the navigation mesh depending on it?

Hello everyone,

I want my AI not to move on the ground whose slope is larger than 45 degrees. Is there any parameter to adjust it and build the navigation mesh depending on it?