high85%
Structured output fails when appending assistant response as JSON in multi-turn conversation
When using with_structured_output in a multi-turn conversation, appending the previous assistant response serialized via model_dump_json to the message history causes the second invocation to fail with ValueError: Structured Output response does not have a 'parsed' field nor a 'refusal' field.
