Quickstart
A simple example to get you started
1. Configure your project
Set up a new project and install the required dependencies:
mkdir axar-demo
cd axar-demo
npm init -y
npm i @axarai/axar ts-node typescript
npx tsc --init{
"compilerOptions": {
"strict": true,
"module": "CommonJS",
"target": "es2020",
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
}
}2. Write your first agent
Create a new file text-agent.ts and add the following code:
3. Run the agent
Add your OpenAI API key and run your code.
It should print something like this:
Last updated