Reviewer · Documentation
Consistent, explained doc examples
When editing documentation, ensure code examples, surrounding prose, and other references to the same API stay fully consistent and self-explanatory. Specifically:
When editing documentation, ensure code examples, surrounding prose, and other references to the same API stay fully consistent and self-explanatory. Specifically:
- If you change a code snippet, update any descriptive text that depends on it (e.g., don’t leave a sentence claiming “runs for many loops” if the example no longer shows a loop parameter). Either keep the parameter in the example or rewrite the prose to match reality.
- If an example relies on an implicit convention (e.g., positional ordering like
agents=[pro, con, judge]to signal “last item is the judge”), add a short note explaining the rule so readers don’t break it by reordering or renaming things. - Avoid documenting internal/private import paths (e.g.,
swarms.structs.planner_worker_swarm) as if they were the stable public API unless that’s genuinely the only option. If using a private path as a workaround, call it out as temporary and keep other references (such as tables listing supported types) consistent with it. - Follow the formatting rules of the documentation renderer: e.g., Markdown bullet lists need blank lines between items for MkDocs to render them correctly—don’t stack bullets line-after-line without spacing.
Before submitting a documentation change, re-read the full section (prose + code + related tables) to confirm it still reads correctly end-to-end and renders as intended.</description> </invoke>