← 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?
- A.Only the first chunk
- B.The system prompt
- C.Nothing; streaming has no final message
- 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 →