DOC: inaccurate description in the structured output conceptual guide #7577
Labels
auto:documentation
Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
Checklist
Issue with current documentation:
Hi team,
I’m working on understanding how structured output is implemented without relying on the withStructuredOutput method, in order to better grasp the underlying process.
In my attempt to implement this via tool calling, I ran into an issue when trying to bind a Zod schema directly to bindTools (following the documentation). An exception is thrown because the schema doesn’t implement the necessary tool interface.
It seems the documentation example should explicitly show how to create a tool from the schema before passing it to bindTools, as this step appears to be missing..
docs
Idea or request for content:
No response
The text was updated successfully, but these errors were encountered: