← Quiz: Structured Outputs: all 10 questions
Quiz: Structured Outputs · Question 3 of 10
What does response.parsedoutput contain when using messages.parse with a Pydantic model?
What does response.parsed_output contain when using messages.parse with a Pydantic model?
- A.Raw text
- B.A validated instance of your Pydantic class
- C.A list of tokens
- D.The HTTP headers
Answer & explanation
Correct answer: A validated instance of your Pydantic class
You can use c.name, c.cgpa directly.
Can you get the rest right without peeking?
Take the timed Quiz: Structured Outputs quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →