-
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: 10 comments 10 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.
-
Could somebody please explain the difference between
|
Beta Was this translation helpful? Give feedback.
-
will |
Beta Was this translation helpful? Give feedback.
-
whenever i add |
Beta Was this translation helpful? Give feedback.
-
Having support for tools in We're building an agentic application that makes many tools available to users. We also have follow up prompts that are being generated based on previous messages, which tools were used and also what tools are available. While we've previously used |
Beta Was this translation helpful? Give feedback.
-
Would love to be able to use tools with generateObject too. |
Beta Was this translation helpful? Give feedback.
-
me too generateObject and tool calling getting a bit stuck here. what is the recommended aproach for both generate object and tool calling? experimental_output doesnt seem to work for me. |
Beta Was this translation helpful? Give feedback.
-
Actually using generateText() (supporting tool calling) with experimental_output now.Working pretty well, especially with gpt-4.1.It’s almost not working at all for gpt-*-mini models tho.Le 17 sept. 2025 à 09:58, Pushkar Yadav ***@***.***> a écrit :
you can use one experimental approach, on generate text pass something like "provide output in this structure only <json_output_starts>{your schema}</json_output_ends>" and when whole output comes you can parse manually..
if still doesn't full-fill use another generate object after that with a low cost model that has to generate structured info from the results generated above.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
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