-
https://sdk.vercel.ai/docs/ai-core/tools says:
But how do I pass tools to generateObject? There doesn't seem to be an option for it |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I hope this behavior can be improved in the future, especially for providers like OpenAI. These providers offer built-in tool support along with object generation which could be useful when switching to vercel's sdk. |
Beta Was this translation helpful? Give feedback.
-
We have added a |
Beta Was this translation helpful? Give feedback.
We have added a
experimental_output
feature togenerateText
that allows you to create structured information while calling (openai) tools.https://sdk.vercel.ai/docs/ai-sdk-core/generating-structured-data#structured-output-with-generatetext