🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Raw text
  2. B.A validated instance of your Pydantic class
  3. C.A list of tokens
  4. 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 →