Thank you for your interest in contributing to OpenAGI! We appreciate your efforts in helping us make human-like agents accessible to everyone. This guide outlines the steps to start contributing effectively.
To contribute to OpenAGI, you need to fork the repository and clone it locally. Follow these steps:
- Navigate to the OpenAGI repository.
- Click the Fork button in the top-right corner to create a personal copy of the repository.
- Clone the repository to your local machine:
git clone https://github.com/your-username/openagi.git
cd openagi
Once you have cloned the repository, set up a development environment to work on the code. Follow the instructions below to create and activate a virtual environment.
- Setup a virtual environment.
# For Mac users
python3 -m venv venv
source venv/bin/activate
# For Windows users
python -m venv venv
venv/scripts/activate
- Install the openagi
pip install openagi
or
git clone https://github.com/your-username/openagi.git
pip install -e .
Before making any changes to the codebase, follow these steps:
git checkout main
git checkout -b feature-branch-name
Make your changes in the relevant directories (e.g., src, docs, cookbook, etc.). Be sure to follow the coding guidelines and maintain consistency with the project’s code style.
Before submitting your changes, it is crucial to ensure that your modifications work as expected. Follow these steps to test your changes locally:
- Run the necessary tests or manually check the functionality you have worked on.
- Ensure that no other features are broken due to your changes.
Once you have tested your changes and everything is working correctly, submit your contribution by following these steps:
# Stage your changes:
git add .
# Commit your changes with a meaningful commit message:
git commit -m "Brief description of the changes made"
# Push your changes to your forked repository:
git push origin feature-branch-name
- Navigate to the OpenAGI repository on GitHub.
- Click the Pull Requests tab, then click New Pull Request.
- Select the branch you pushed from the dropdown menu.
- Add a title and a detailed description of your changes.
- Click Submit Pull Request.