@goat-sdk/adapter-vercel-ai
TypeScript icon, indicating that this package has built-in type declarations

0.2.10 • Public • Published

Vercel AI SDK Adapter for GOAT

Integrate the more than +200 onchain tools of GOAT with Vercel AI SDK.

Installation

npm install @goat-sdk/adapter-vercel-ai
yarn add @goat-sdk/adapter-vercel-ai
pnpm add @goat-sdk/adapter-vercel-ai

Usage

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",
});


Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i @goat-sdk/adapter-vercel-ai

Homepage

ohmygoat.dev

Weekly Downloads

1,669

Version

0.2.10

License

MIT

Unpacked Size

3.89 kB

Total Files

6

Last publish

Collaborators

  • aigustin
  • mpaella