How to Implement Tool Calling in an AI Agent With Python