Write a book using Autonomous Agents
Please do not use this to attempt to write in the style of another author or to write fiction. This tool was created to write documentaiton for information technology tools. Use at your own risk.
This is assuming you have Python installed on your computer and you are using an IDE such as VS Code or Cursor.
I use Mistral for most of my AI services. If you pull this repo into Cursor, you can ask the built-in AI (vibe code) to change it to use OpenAI or another provdier.
🏕️ Setup the virtual envrionment.
python3 -m venv .venv
source .venv/bin/activate🛠️ Install the dependancies
pip install mistralai
pip install PyYAML
pip install ebooklib
export MISTRAL_API_KEY=""Make sure to enter your Mistral API Key
There is a file named commissioning.yaml where you define everything you want out of the agents. Be detailed but if you overly define the chapters it will be a little weird. Please. be. as. explcit. as. possible. with. your. expectations.
Call the make_book.py with the commisioning.yaml to start.
python make_book.py --commission commissioning.yamlYou will find a new directory named "output" that will hold all the files generated for you.
This has taken about 5 miuntes for me to write 16,000 words using the mistral-small small langauge model.