-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
Tools with Generate Object #1803
Comments
|
Makes sense, my current workaround is a simple chain, first |
Can you give an example of this? |
You could throw an error with providers which use tool calling and enable it for natively support json mode |
How can I use tool calling along with My structured output requires some lookups to generate its data, how can I work around this for now? |
@michaeloliverx you can just do the lookups before calling |
The queries to lookup need to be inferred by the LLM itself then I would like a chain of thought structured output back. AFAIK structured-outputs and tool calling is supported in "pure" openai SDK usage? https://platform.openai.com/docs/guides/structured-outputs/examples?lang=node.js |
Not quite the same but you can use the "Agents with Structured Answers" approach: https://sdk.vercel.ai/docs/ai-sdk-core/agents#structured-answers |
Feature Description
Generating structured data is very helpful, would be great if tool calling was supported.
Use Case
Providing a output schema and having access to external tools
Additional context
No response
The text was updated successfully, but these errors were encountered: