Skip to content

Files

Latest commit

bd43384 · May 5, 2025

History

History

dbagent

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 16, 2025
May 5, 2025
May 5, 2025
Apr 16, 2025
Mar 13, 2025
Mar 8, 2025
May 5, 2025
Apr 16, 2025
Apr 9, 2025
Apr 16, 2025
Feb 17, 2025
Feb 17, 2025
Mar 14, 2025
Apr 16, 2025
Apr 16, 2025
Apr 14, 2025
Feb 17, 2025
Feb 17, 2025
Feb 17, 2025
Apr 14, 2025
May 5, 2025
Feb 17, 2025
Feb 26, 2025
Feb 17, 2025
Mar 14, 2025

Xata Agent

The Xata Agent is primarily a Next.js + Vercel AI SDK app.

Development

Install nvm, then run nvm use to install and use the Node version from .nvrmc.

If you do not have pnpm installed run:

npm install -g pnpm@^10

Install dependencies:

pnpm install

Start postgres via the docker-compose file:

docker compose up postgres

create the .env.local file and edit it to add the LLM credentials:

cp .env.example .env.local
vim .env.local

Initialize the database:

pnpm run db:migrate

Run the app:

pnpm run dev

In a separate terminal, run the scheduler. This is a simple script that calls the /api/priv/schedule-tick endpoint every 10s. This is only required if you want to schedule tasks.

pnpm run dev-scheduler

Run via Docker compose

Create the .env.local file and edit it to add the LLM credentials:

cp .env.example .env.local
vim .env.local

Run the app:

docker compose up

Run the evals

Create the .env.eval file and edit it to add the LLM credentials:

cp .env.eval.example .env.eval
vim .env.eval

Update you .env.local file to contain: EVAL=true

Ensure you have docker installed and run: pnpm run eval