@ai-sdk/openai
package. See here for a list of supported model providers.
getVercelAITools
function. This function takes an AgentKit instance and returns an object containing the tools for the AgentKit agent. This object can then be passed to AI SDK.
Here’s a snippet of code that shows how to use the getVercelAITools
function to get the tools for the AgentKit agent.
debug: true
in the options for getVercelAITools
to see more detailed logsmaxSteps
parameter to limit the number of tool calls the model can make