What is the primary user experience issue addressed by using streaming in a chat interface?	The delay between sending a user message and receiving a full response (which can take 10-30 seconds).
What is the purpose of the initial response received from Claude when streaming begins?	It serves as a signal that Claude has received the request and is about to start generating text, but it contains no actual text content.
What is the fundamental unit of data received during a streaming response?	An event, specifically a "raw content block delta," which contains a chunk of the generated text.
How does streaming improve the user experience?	It allows the user to see text appear chunk by chunk in the chat interface as it is being generated.
When using the client messages function, what keyword argument enables streaming?	Setting `stream=True`.
What is the recommended way to handle streaming responses using the Anthropic SDK?	Using the `with client_messages.stream:` context manager.
When iterating over `stream.text` within the recommended streaming method, what does the variable `text` contain?	Only the actual text content of the generated chunk, simplifying data extraction.
What is the benefit of using the `with client_messages.stream:` method over manually checking event types?	It automatically yields only the text content, eliminating the need for complex event type checks.
After a streaming response has completed, what method can be used to retrieve the entire assembled message?	`stream.get_final_message()`.
Why is retrieving the final message useful after streaming?	To store the complete conversation record in a database or perform final processing.
