Awesome Reviewers

Reviewer · Documentation

Accurate documentation examples

Code snippets and prose in docs/guides must be verified to actually work and must not hide implicit assumptions. Before merging a doc change: 1. Use public, stable import paths rather than private/internal modules. If a class is only reachable via an internal submodule (e.g. `swarms.structs.planner_worker_swarm`) because the top-level re-export is missing,...

Instruction

Code snippets and prose in docs/guides must be verified to actually work and must not hide implicit assumptions. Before merging a doc change:

  1. Use public, stable import paths rather than private/internal modules. If a class is only reachable via an internal submodule (e.g. swarms.structs.planner_worker_swarm) because the top-level re-export is missing, either fix the export or add a note that the path is temporary/internal so users aren’t pinned to it.
  2. Make every example self-contained and correct for the exact configuration shown. If behavior depends on a parameter (e.g. output_type changing whether workflow.run() returns a list of messages vs. a string), either set that parameter explicitly in the snippet or state which setting the example assumes, so copy-pasted code doesn’t raise runtime errors (e.g. TypeError from iterating a string).
  3. Call out non-obvious requirements inline. If a feature only works when a flag is set (e.g. streaming_on=True is required for streaming_callback to fire), add a short comment explaining why, instead of leaving readers to debug it themselves:
    # Agents must set streaming_on=True for streaming_callback to fire
    agent = Agent(..., streaming_on=True)
    
  4. Validate that markup renders as intended in the target doc tool. For MkDocs, bullet lists need a blank line between consecutive items or they won’t render as a list.

Treat documentation examples with the same rigor as production code: they should run as-is, reflect the current public API, and explain any configuration they rely on.</description> </invoke>