Thank you for your interest in contributing to the vLLM Agentic API. This guide covers everything you need to get started.
-
Fork and clone the repository:
git clone https://github.com/vllm-project/agentic-api.git cd agentic-api -
Install prerequisites:
- Rust toolchain (rustup).
- uv for docs environment and dependency setup.
- pre-commit for local hook execution.
-
Build and fetch dependencies:
cargo build
-
Install pre-commit hooks:
pre-commit install
cargo testcargo clippy --all-targets -- -D warningscargo fmtAll linting and formatting checks are also run automatically via pre-commit hooks on each commit.
Build docs locally:
uv venv
uv pip install -r docs/requirements.txt
uv run mkdocs serve- Branch from
main. - Write tests for new functionality.
- Ensure all pre-commit hooks pass before pushing.
- Sign off your commits (
git commit -s). - Use the PR template, which includes two required sections:
- Summary -- a concise description of what the PR does and why.
- Test Plan -- how the changes were tested.
Code style is enforced by rustfmt and clippy via pre-commit. Key settings:
- Maximum line length: 120 characters.
- Rust edition: 2024.
unsafecode is forbidden.
Do not worry about manually formatting code -- the pre-commit hooks will handle it.
Use the issue templates provided on the GitHub Issues page. Choose the template that best matches your report (bug report, feature request, etc.).
This project follows a Code of Conduct. Please review CODE_OF_CONDUCT.md for details on expected behavior.