🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Chatbots and Streaming: all 10 questions

Quiz: Chatbots and Streaming · Question 8 of 10

What does stream.getfinalmessage() give you after streaming?

What does stream.get_final_message() give you after streaming?

  1. A.Only the first chunk
  2. B.The system prompt
  3. C.Nothing; streaming has no final message
  4. D.The complete message, including stop reason and token usage
Answer & explanation

Correct answer: The complete message, including stop reason and token usage

Text arrives in pieces; the full message is available at the end.

Can you get the rest right without peeking?

Take the timed Quiz: Chatbots and Streaming quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →