- Node.js (v18 or higher)
- npm (comes with Node.js)
- OpenAI API key
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Set your OpenAI API key:
export OPENAI_API_KEY='your_api_key'
-
Run the examples with
npx ts-node <example-file>.ts:npx ts-node examples/simple-agent.ts