Skip to content

Does the formatted output (Agent.output_type) require model support? #664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
r0bin-zheng opened this issue May 8, 2025 · 3 comments
Closed
Labels
question Question about using the SDK stale

Comments

@r0bin-zheng
Copy link

Please read this first

  • Have you read the docs?Agents SDK docs YES
  • Have you searched for related issues? Others may have had similar requests YES

Question

Describe your question. Provide details if available.

Does the formatted output (Agent.output_type) require model support? I noticed that when using deepseek-v3 and claude3.7-sonnet to run the repository's example, the output_type configuration doesn't seem to take effect. The framework checks if the response is JSON, but there's no actual change in the model's output format. Ideally, after configuring Agent.output_type, I would expect the model to directly output in the specified format type, rather than just adding post-response validation.

@r0bin-zheng r0bin-zheng added the question Question about using the SDK label May 8, 2025
@pakrym-oai
Copy link
Contributor

Yes, the structured output requires model support (like in https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses)

Copy link

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label May 16, 2025
Copy link

This issue was closed because it has been inactive for 3 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about using the SDK stale
Projects
None yet
Development

No branches or pull requests

2 participants