Skip to content

forthright-engineer/write-book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

write-book

Write a book using Autonomous Agents

❕ Notice

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.

Setup

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

Commission

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.

Run

Call the make_book.py with the commisioning.yaml to start.

python make_book.py --commission commissioning.yaml

Outputs

You will find a new directory named "output" that will hold all the files generated for you.

Additional Notes

This has taken about 5 miuntes for me to write 16,000 words using the mistral-small small langauge model.

About

A collection of agents to autonomously write a book based on a commissioning file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages