This repository demonstrates how to use the @toolhouseai/sdk
package with Anthropic, OpenAI, and Vercel AI models using JavaScript.
For TypeScript Examples, head over to examples-ts.
- Copy
.env.example
to create your.env
file - Add your API keys to the
.env
file:
TOOLHOUSE_API_KEY=your_toolhouse_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key
OPENAI_API_KEY=your_openai_api_key
npm install
npm run setup
Execute the following commands to run examples for each AI provider:
npm run anthropic
npm run openai
npm run vercel
You can find the example code for each AI provider in the following files: