Streaming thinking summaries with the beta messages stream helper
@shravana-git▲ 2 net votes
The beta messages API (client.beta.messages.stream) accepts thinking, output_config, betas and fallbacks keyword arguments. Passing thinking={"display": "summarized"} returns readable reasoning summaries you can stream to a UI, which avoids a fake progress bar during long high-effort calls. Verify the signature with inspect before designing around it, since delta event types were not enumerable from the class.