We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Either show some examples of using tools + side-effects, or create top-level method to help.
e.g. https://github.com/anthropics/anthropic-cookbook/blob/main/tool_use/extracting_structured_json.ipynb — basic idea is to define a "print" call and then explicitly request that the model use it. Then you parse the response, either parsing the json or erroring.
The text was updated successfully, but these errors were encountered:
Gemini and OpenAI have specific structured data modes, but Claude does not (so you have to (ab)use tool calling).
Gemini schema:
OpenAI schema:
items
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Either show some examples of using tools + side-effects, or create top-level method to help.
e.g. https://github.com/anthropics/anthropic-cookbook/blob/main/tool_use/extracting_structured_json.ipynb — basic idea is to define a "print" call and then explicitly request that the model use it. Then you parse the response, either parsing the json or erroring.
The text was updated successfully, but these errors were encountered: