This tutorial is based on a TypeScript LangGraph agent.
Prerequisites
- Node.js: v18 or later.
- Toolprint: Install OneGrep CLI and login to your account:
- Blaxel CLI: Ensure you have Blaxel CLI installed.
- Login to Blaxel:
Installation
- Clone the repository and install dependencies:
- Environment Variables: Create a
.env
file with your configuration. You can begin by copying the sample file:
- Toolprint API key:
TOOLPRINT_API_KEY
- Toolprint URL:
TOOLPRINT_URL
Running the server locally
Start the development server with hot reloading:This command starts the server and enables hot reload so that changes to the source code are automatically reflected.
Testing your agent
You can test your agent using the chat interface:Deploying to Blaxel
When you are ready to deploy your agent:This command uses your code and the configuration files under the
.blaxel
directory to deploy your application.