mirror of
https://github.com/crewAIInc/crewAI-examples.git
synced 2026-04-23 03:00:08 -04:00
AI Crew for Reviewing Markdown Syntax
Introduction
This project is an example using the CrewAI framework to automate the process reviewing a markdown file for syntax issues. A general assistant leverages a custom tool to get a list of markdown linting errors. It then summarizes those errors into a list of changes to make to the document.
Running the Script
This example uses the OpenAI API to call a model. This can be through a locally hosted solution like LM Studio, or the Open AI API endpoint with your API key.
- Configure Environment: Rename
.env.exampleto.envand set up the environment variables the model, endpoint url, and api key. - Install Dependencies: Run
poetry install --no-root. - Execute the Script: Run
python main.py README.mdto see a list of recommended changes to this document.
Details & Explanation
- Running the Script: Execute
python main.py <path to markdown file>. The script will leverage the CrewAI framework to process the specified file and return a list of changes.
License
This project is released under the MIT License.