flink-agents icon indicating copy to clipboard operation
flink-agents copied to clipboard

[Feature] Support making use of the native capabilities of models for structure output.

Open wenjin272 opened this issue 2 months ago • 4 comments

Search before asking

  • [x] I searched in the issues and found nothing similar.

Description

Currently, when configured output_schema, the react agent directly prompt the model to use a specific format, and use an output parser to extract the structured response from the raw model output. This is the only way for models which don't support tool calling or json mode.

For models support tool calling or json mode, we can makes use of these capabilities to generate structured output.

See https://python.langchain.com/docs/how_to/structured_output/ for details.

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

wenjin272 avatar Oct 20 '25 09:10 wenjin272