Skip to content

docs(examples): standardize sampling and agents READMEs and docstrings - #1752

Merged
rafvasq merged 8 commits into
generative-computing:mainfrom
rafvasq:docs/sampling-agents-catalog-standardize
Nov 2, 2026
Merged

rafvasq merged 8 commits into
generative-computing:mainfrom
rafvasq:docs/sampling-agents-catalog-standardize

Conversation

@rafvasq

@rafvasq rafvasq commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request

Issue

Towards #1746

Docstrings

  • Kept the original titles and descriptions. Added docstrings to those which had none.
  • Added Prerequisites: and Usage: blocks.
  • Clarified sandbox behaviour in examples.

READMEs

  • New sampling/README.md: defines a preset, links to requirements/, and has an ## Examples table.
  • agents/README.md: a short description and an ## Examples table.

Other fixes

  • react_using_mellea.py: documented the langchain-community and ddgs dependencies.
  • Fixed function docstrings in python_plotting_preset.py that described sandboxed execution while passing use_sandbox=False.

Testing

  • Tests added to the respective file if code was changed
  • New code has 100% coverage if code was added
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

Attribution

  • AI coding assistants used

Adding a new component, requirement, sampling strategy, or tool?

If your PR adds or modifies one of the types below, check the matching box. A checklist of type-specific review items will be posted as a comment.

  • Component
  • Requirement
  • Sampling Strategy
  • Tool

NOTE: Please ensure you have an issue that has been acknowledged by a core contributor and routed you to open a pull request against this repository. Otherwise, please open an issue before continuing with this pull request.

…talog

- Add navigation README for docs/examples/sampling/
- Standardize header docstrings in sampling and agent scripts
- Index react_using_mellea.py in docs/examples/agents/README.md
- Register sampling/, requirements/, and audio_text_models/ in docs/docs/examples/index.md

Assisted-by: IBM Bob
Signed-off-by: Rafael Vasquez <[email protected]>
@rafvasq
rafvasq requested a review from a team as a code owner October 20, 2026 17:52
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 20, 2026

@planetf1 planetf1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useful docs-only change: it makes sampling/ and the stdlib react() example discoverable, and the READMEs and index rows match the source. I ran both sampling examples against Ollama and they run. Three non-blocking points below, plus one follow-up suggestion.

Separately, not for this PR: presets.py:220 tells users to run uv sync --extra plotting, but no such extra exists in pyproject.toml.

Comment thread docs/examples/sampling/README.md Resolved
Comment thread docs/examples/sampling/README.md Resolved
Comment thread docs/examples/sampling/README.md Resolved
…ings Assisted-by: IBM Bob

Signed-off-by: Rafael Vasquez <[email protected]>
Comment thread docs/examples/agents/README.md Resolved
@rafvasq
rafvasq requested a review from planetf1 October 28, 2026 21:01
Signed-off-by: Rafael Vasquez <[email protected]>
…ndbox image

Signed-off-by: Rafael Vasquez <[email protected]>
Assisted-by: IBM Bob

@planetf1 planetf1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All threads resolved — model tags, the duplicate sampling/ row, prerequisites blocks, and the sandbox docstring all check out (I confirmed the default llm-sandbox image installs matplotlib from its Dockerfile). Thanks for the iterations.

@rafvasq
rafvasq enabled auto-merge November 2, 2026 17:18
@rafvasq
rafvasq added this pull request to the merge queue Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 2, 2026
@rafvasq
rafvasq added this pull request to the merge queue Nov 2, 2026
Merged via the queue into generative-computing:main with commit 3a869c3 Nov 2, 2026
16 of 18 checks passed
@rafvasq
rafvasq deleted the docs/sampling-agents-catalog-standardize branch November 2, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants