Structured output based on JSON Schema #2342
Answered
by
moonbox3
sebastian-velten
asked this question in
Q&A
-
|
Hello everyone, I'm currently migrating from AutoGen and I'm wondering how I can get structured output from my agent based on a given JSON Schema, like I did in the past: The JSON Schema is known only at runtime, so it is not possible to model a pydantic class, representing the schema in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
moonbox3
Nov 24, 2025
Replies: 1 comment 3 replies
-
|
Hi @sebastian-velten thanks for your question. I just tested this, and notice we need to make a small change to support passing in a JSON schema for response format. That was completed in #2362. You can find a sample on how to do this here. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
sebastian-velten
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @sebastian-velten thanks for your question. I just tested this, and notice we need to make a small change to support passing in a JSON schema for response format. That was completed in #2362. You can find a sample on how to do this here.