Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 2.2 KB

CONTRIBUTING.md

File metadata and controls

43 lines (27 loc) · 2.2 KB

Contributing

Thank you for helping. Small, focused pull requests are easiest to review.

Before you start

  • For a bug, open an issue with the smallest code that shows it, the model name, and the full error.
  • For a new feature, open an issue first. This SDK stays small on purpose: it speaks two request formats, and anything that needs provider translation belongs in a gateway.

Making a change

  1. Set up as in DEVELOPMENT.md.
  2. Add a test against the fake provider in tests/fake_provider.py.
  3. Run pytest, ruff check . and ruff format --check ..
  4. If you changed the public API on purpose, run python scripts/surface.py --write and explain why in the pull request.
  5. Add a line to CHANGELOG.md under "Unreleased" if users will notice the change.
  6. Sign off every commit with git commit -s.

Sign-off

Every commit needs a Signed-off-by: Your Name <you@example.com> line, with your real name. It certifies the Developer Certificate of Origin: you wrote the change, or have the right to submit it under this project's license. CI checks every commit in a pull request for this line. git commit -s adds the line.

Using AI tools

You may use AI tools to help write code, tests and docs, as Agent Router allows. You must:

  • understand every change you submit;
  • answer review questions and revise the code yourself;
  • say in the pull request that an AI tool was used;
  • make sure the tool adds no license terms beyond the Apache License 2.0;
  • remove comments that only help the tool and do not help a reader.

Adding a provider

A provider is one row in local_gateway.PROVIDERS: the aigw schema it speaks, its address, and the environment variables for its key. The SDK never calls it directly; the local gateway does. Add a test, a row in the providers table in docs/usage.md, and a line in the changelog.

Code of conduct

This project follows the LF Projects Code of Conduct, as an Agentic AI Foundation project.

License

By contributing, you agree that your contribution is licensed under the Apache License 2.0.