Reference documentation and best practices for using the Anthropic Claude API for text generation, tool use, and streaming