Use structured generation via outlines to create .ics files based on text descriptions / emails.
Note: Currently only supports CLI, with manual text input (or copy/paste)
Just a side project for me so not providing multi-OS support. I'm working on an Apple Silicon-based Mac. Requires an OpenAI API key but easily customizable to work with different models.
Recommended installation with poetry:
- Clone this repo
- Install poetry following these instructions.
- In the repo's root directory, run
poetry install
- Add the "event" command to your path:
echo "export PATH=$PATH:<path-to-repo>/cli/" >> ~/.zshrc
- If using an OpenAI model (default) Define your OpenAI API key (OPENAI_API_KEY) as an environment variable:
echo "export OPENAI_API_KEY=<your-key-here>" >> ~/.zshrc
- Run
source ~/.zshrc
On the command line, run
event "<text describing event>"
The program will generate a corresponding .ics file and open it using your default calendar app.