🔥 3-day streak
Claude Certified Associate (Foundations)107 / 150
Question 107 of 150

A developer is building a chat feature that streams Claude's responses to the user in real time. After the stream completes, they need to log the exact number of input and output tokens consumed so they can track per-conversation cost. Where in the streaming flow should they look to get this final token usage?

Reviewed for accuracy · Report an issueNext question