How does an agent select the appropriate tool?

Technical