Thank you for your interest in contributing! This document provides guidelines for contributing to this project.
- Report bugs: Open an issue describing the bug and how to reproduce it
- Suggest features: Open an issue describing the feature and why it would be useful
- Submit pull requests: Fix bugs, add features, or improve documentation
- Improve documentation: Help make the docs clearer and more comprehensive
-
Fork and clone the repository:
git clone https://github.com/YOUR_USERNAME/langchain-agent-python.git cd langchain-agent-python -
Install dependencies:
cd agent && pip install -r requirements.txt cd ../mcp && pip install -r requirements.txt
-
Set up local environment:
cp .env.example .env.local # Edit .env.local with your Azure OpenAI details -
Test locally:
# Terminal 1 cd mcp && python mcp_server.py # Terminal 2 cd agent && python agent.py
- Follow PEP 8 for Python code
- Use type hints where applicable
- Add docstrings to all functions and classes
- Keep functions focused and modular
- Follow Azure Bicep best practices
- Use parameters for values that might change
- Add metadata descriptions to all resources
- Follow the existing naming conventions
- Local testing: Ensure both agent and MCP server run without errors
- Azure deployment: Test with
azd upto verify infrastructure changes - Documentation: Update README.md if adding new features
-
Create a new branch for your changes:
git checkout -b feature/my-new-feature
-
Make your changes and commit:
git add . git commit -m "Add: description of your changes"
-
Push to your fork:
git push origin feature/my-new-feature
-
Open a pull request on GitHub with:
- Clear title describing the change
- Description of what changed and why
- Any related issue numbers
- Maintainers will review your PR and may request changes
- Address feedback by pushing new commits to your branch
- Once approved, a maintainer will merge your PR
Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
Open an issue or see SUPPORT.md for help.
Thank you for contributing! 🎉