Install the Python SDK, classify user input and tool output, and handle blocks with synchronous or asynchronous clients.