Skip to content

How do I use tools with generateObject? #1395

Answered by lgrammel
LehuyH asked this question in Help
Discussion options

You must be logged in to vote

We have added a experimental_output feature to generateText 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

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@LehuyH
Comment options

@matovu-farid
Comment options

@JClackett
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@izharikov
Comment options

Answer selected by lgrammel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants