Skip to content

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

Closed as not planned
@r0bin-zheng

Description

@r0bin-zheng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDKstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions