Skip to content

Add support for non-objects (List<>, Arrray, string, etc) in Structured Output (mixed with Middleware) #31

@rwjdk

Description

@rwjdk

Without middleware, the following *.RunAsync<> variants works:

  • .RunAsync(...)
  • .RunAsync<List>(...)
  • .RunAsync<Movie[]>

Above is a Trick done by Microsoft.Extensions.AI (on-the-fly wrapper object) as OpenAI itself does not support it.

But if you apply middleware, these do not work anymore, as MEAI can't be used, and the normal ResponseFormat method needs to be used.


It would be nice if we could do the same Trick as MEAI in AgentFrameworkToolkit, as the Agent Framework Team that the do not wish to "fix this" 🙁

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions