Quiz 9 Question 15 of 20

A developer notices that when using streaming with extended thinking enabled, the thinking content blocks appear before the text content blocks in the stream. The application needs to display the final answer to the user while optionally showing thinking to developers. What is the correct approach to handle thinking blocks in the stream?

Select an answer to reveal the explanation.

Motivation