This is a Next.js project bootstrapped with create-next-app.
First, create a .env file and fill your ANTHROPIC_API_KEY:
.env
ANTHROPIC_API_KEY=***********Then:
# install deps
npm install
# run the dev server
npm run devOpen http://localhost:3000 with your browser to see the result.
- Agent code is within
lib/app.ts - Custom tools:
lib.tools.ts - Rendering code:
lib/render.tsx
Play with the code! break it, change it, explore :) Got questions? Talk to me.