|
| 1 | +# GitHub Docs Agent Sample |
| 2 | + |
| 3 | +This sample demonstrates how to use the GitHub Docs Agent to automate documentation tasks within a GitHub repository. The agent is designed to analyze code and create documentation based on specific user requests. |
| 4 | + |
| 5 | +## Folder Structure |
| 6 | + |
| 7 | +- `.env.example`: Example environment variables file. |
| 8 | +- `agent.mermaid`: Diagram file for visualizing the agent's workflow. |
| 9 | +- `langgraph.json`: Configuration file for language graph settings. |
| 10 | +- `main.py`: Main script containing the agent's logic. |
| 11 | +- `pyproject.toml`: Python project configuration file. |
| 12 | +- `uipath.json`: Configuration file for UiPath settings. |
| 13 | +- `uv.lock`: Lock file for dependencies. |
| 14 | + |
| 15 | +## Setup Instructions |
| 16 | + |
| 17 | +1. **Clone the Repository**: Clone the `uipath-mcp-python` repository to your local machine. |
| 18 | + |
| 19 | + ```bash |
| 20 | + git clone https://github.com/UiPath/uipath-mcp-python.git |
| 21 | + ``` |
| 22 | + |
| 23 | +2. **Navigate to the Sample Directory**: Change your working directory to the `github-docs-agent` sample. |
| 24 | + |
| 25 | + ```bash |
| 26 | + cd uipath-mcp-python/samples/github-docs-agent |
| 27 | + ``` |
| 28 | + |
| 29 | +3. **Install Dependencies**: Use the following command to install the necessary Python dependencies. |
| 30 | + |
| 31 | + ```bash |
| 32 | + pip install -r requirements.txt |
| 33 | + ``` |
| 34 | + |
| 35 | +4. **Configure Environment Variables**: Copy the `.env.example` to `.env` and fill in the required environment variables. |
| 36 | + |
| 37 | + ```bash |
| 38 | + cp .env.example .env |
| 39 | + ``` |
| 40 | + |
| 41 | +5. **Run the Agent**: Execute the main script to start the agent. |
| 42 | + |
| 43 | + ```bash |
| 44 | + python main.py |
| 45 | + ``` |
| 46 | + |
| 47 | +## Usage |
| 48 | + |
| 49 | +The GitHub Docs Agent listens for specific documentation requests in GitHub issues and automatically generates the required documentation. It uses the `main.py` script to process these requests and update the repository accordingly. |
| 50 | + |
| 51 | +## Expected Outcomes |
| 52 | + |
| 53 | +- Automated documentation generation based on GitHub issues. |
| 54 | +- Updated documentation files within the repository. |
| 55 | +- Improved documentation consistency and quality. |
| 56 | + |
| 57 | +## Additional Information |
| 58 | + |
| 59 | +For more details on configuring and extending the agent, refer to the `pyproject.toml` and `uipath.json` files. |
0 commit comments