Skip to content

parse a schedule in natural language to a cron schedule using agentic solution

License

Notifications You must be signed in to change notification settings

hulio-ai/cron-agent

Repository files navigation

cron-agent

Convert a schedule in natural language to a cron schedule using agentic programming.

The Cron Agent is built on Pydantic AI.

Setup

Set up the project

  1. Clone the clone-agent repository

  2. Install uv

  3. Create venv and install dependencies

cd cron-agent
uv sync
  1. Activate the virtual environment
source .venv/bin/activate

Configure API keys

  1. Create .env file with your API keys

OPENAI_API_KEY=...

ANTHROPIC_API_KEY=...

  1. Run the following command to load the API keys
set -a; source .env; set +a

Try it out

Convert a schedule in natural language to a cron schedule

python main.py

Testing

The following script will test two cron agents using LLMs from Anthropic and OpenAI.

PYTHONPATH=. pytest -vs tests/test_cron_agent.py

About

parse a schedule in natural language to a cron schedule using agentic solution

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages