Integrate the more than +200 onchain tools of GOAT with Vercel AI SDK.
npm install @goat-sdk/adapter-vercel-ai
yarn add @goat-sdk/adapter-vercel-ai
pnpm add @goat-sdk/adapter-vercel-ai
See a full working example here.
import { getOnChainTools } from "@goat-sdk/adapter-vercel-ai";
const tools = await getOnChainTools({
wallet: // your wallet
plugins: // your plugins
});
const result = await generateText({
model: openai("gpt-4o-mini"),
tools: tools,
prompt: "Your prompt here",
});