How many reasoning steps do AI agents need for optimal performance