Skip to content

.NET: Agent Framework - Structured Output prevent tool calls for many providers #6467

@kacisse

Description

@kacisse

hey,

I need help, I'm facing a very strange behavior. I'm expecting a json response Format (structured output) through AgentRunOptions.ResponseFormat. It works perfectly for some Gemini models (3.1 flash lite, 2.5 flash lite for ex) but fail for literally all Chinese ones
deepseek v4 pro and flash
mimo pro
minimax 3
etc...

Gemini models call successfully the tools and return the structured output. The failing ones above mostly return an empty structured output right away !

I'm using a ChatclientAgent with Openrouter.

Is that a bug from Agent Framework or a model behavior ? Hard to believe so many models fail at a basic task. Important to note that of course if structured output is not used, all modes are able to call multi turn tools successfully. It's only for structured output.

thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions