Quickstart
A simple example to get you started
1. Configure your project
Set up a new project and install the required dependencies:
You need to configure your tsconfig.json
file as follows for better compatibility:
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's required to use ts-node
with AXAR at this time. tsx
does not support experimental decorator features fully as of yet.
It should print something like this:
Last updated