/agent-runner

python scaffold for running agents via api and background jobs

Primary LanguagePython

Setup

redis-server
  • Install dependencies
poetry install

Config

  • Copy agent_runner/example_config.py to agent_runner/config.py for the agent configuration
  • Copy .env.example to .env for secrets configuration
  • Copy bot_config_example.json to bot_config.json for discord bot configuration
  • Modify each as desired

Running

Run API Server:

poetry run start

Run Celery Task runner:

poetry run celery -A agent_runner worker --loglevel=INFO

Run Celery Beat (Triggers tasks on the task runner based on beat config):

poetry run celery -A agent_runner beat

Run Discord Bot:

poetry run bot