Skip to content

docs(integrations): fix nonexistent pip extras and stale ADK imports - #2019

Merged
joefernandez merged 12 commits into
google:mainfrom
GWeale:docs-audit-integrations
Nov 9, 2026
Merged

joefernandez merged 12 commits into
google:mainfrom
GWeale:docs-audit-integrations

Conversation

@GWeale

@GWeale GWeale commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

The integrations pages are partner-authored, so this slice deliberately touches only the places where those pages use ADK's own API surface — install extras, import paths, constructor arguments — and leaves the partner content alone.

Changes

  • docs/integrations/bigquery-agent-analytics.md, docs/integrations/express-mode.md, docs/integrations/gke-code-executor.md — installed extras that do not exist (google-adk[bigquery], google-adk[vertexai], google-adk[gke]); now [gcp], [gcp] and [extensions] respectively.
  • docs/integrations/bigquery.md, docs/integrations/bigtable.md, docs/integrations/spanner.md — no install step at all, so the samples fail on a base google-adk; each page now opens with a short Installation section for pip install "google-adk[gcp]".
  • docs/integrations/bigquery.md — every snippet imported from google.adk.tools.bigquery, which does not resolve; now google.adk.integrations.bigquery.
  • docs/integrations/gke-code-executor.md — CodeExecutionInput imported from google.adk.code_executors, which does not export it; now google.adk.code_executors.code_execution_utils.
  • docs/integrations/spanner.md — the RAG sample constructed SpannerCredentialsConfig() with no arguments, but it requires credentials, an external access token key, or a client ID and secret; now passes ADC credentials, with the google.auth import the snippet was missing.
  • docs/integrations/code-execution.md — described a built_in_code_execution tool; it is the BuiltInCodeExecutor code executor, set on the agent's code_executor field rather than in tools.
  • docs/integrations/environment-toolset.md — max_output_chars was listed as a LocalEnvironment parameter (and misspelled max_output chars); it is an EnvironmentToolset constructor parameter and is now documented there.
  • docs/integrations/google-search.md — claimed google_search works only with Gemini 2 models; now just Gemini models.

How this was produced

Part of a page-by-page audit of the Python docs against the google/adk-python v2.5.0 source: every import resolved against a real 2.5.0 install, every constructor kwarg checked against model_fields / inspect.signature, every documented default read off the field. A second independent pass re-derived each claim from source rather than trusting the finding, and a third conformed the new wording to the surrounding pages. mkdocs build --strict is clean.

Only Python tabs and language-neutral prose were touched — this audit had no ground truth for the Go / Java / TypeScript SDKs.

Split out of a larger audit branch so each area can be reviewed on its own.

@netlify

netlify Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit 7e7edf1
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/6af24dd7d52622e38601e866
😎 Deploy Preview https://deploy-preview-2019--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@GWeale
GWeale force-pushed the docs-audit-integrations branch from ace77a3 to 944c483 Compare August 7, 2026 20:29
@zyantw

zyantw commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Left additional edits. Ready for your review.


Technical report

Structural and Information Architecture Review

  • Review Score: 100 / 100
  • Overall assessment: 🟢 Low Risk
  • Summary reasoning: All 9 modified files are existing integration documentation pages under docs/integrations/ (status: modified). No pages are added, removed, or renamed, so no mkdocs.yml nav: or redirect_maps updates are needed. Adding ## Installation sections to bigquery.md, bigtable.md, and spanner.md (plus ## Use with agent in bigtable.md) standardizes the section hierarchy across the Google Cloud database toolset pages. Moving max_output_chars from the LocalEnvironment parameter list to the EnvironmentToolset section in environment-toolset.md places the option under the constructor that accepts it, and updating /sessions/memory.md#memory-bank to /sessions/memory/#memory-bank in express-mode.md fixes a broken internal link.
  • Recommended action: No concerns, approve. No structural or information architecture changes are required.
  • Number of lines changed: M (81 lines changed: +66 additions, -15 deletions)
  • Number of files changed: 9

Technical Accuracy Review

  • Review Score: 99 / 100
  • Overall assessment: 🟢 Low Risk
  • Summary reasoning: All changes across the 9 integration pages were verified against the latest official release of google/adk-python (v2.11.0) and google/adk-java. Every update fixes a genuine install, import, or runtime issue: replacing nonexistent google-adk[gke] with google-adk[extensions] and documenting pip install "google-adk[gcp]" for BigQuery, Bigtable, and Spanner (verified in pyproject.toml); migrating deprecated google.adk.tools.bigquery imports to google.adk.integrations.bigquery in bigquery-agent-analytics.md; documenting BuiltInCodeExecutor (Python) alongside BuiltInCodeExecutionTool (Java) in code-execution.md; moving max_output_chars from LocalEnvironment to EnvironmentToolset in environment-toolset.md; passing required session_service, invocation_id, and session fields to InvocationContext in gke-code-executor.md; broadening google_search compatibility from Gemini 2 models to Gemini models in google-search.md; and passing credentials from google.auth.default() to SpannerCredentialsConfig(credentials=credentials) in spanner.md. One minor shell-portability item remains on line 76 of gke-code-executor.md.
  • Recommended action: Approve with these specific changes. Optionally quote "google-adk[extensions]" in gke-code-executor.md so the command succeeds in zsh without globbing errors.

Product Messaging Review

  • Review Score: 100 / 100

@zyantw
zyantw requested a review from joefernandez October 12, 2026 20:43
State keys prefixed with `temp:` are automatically redacted to `[REDACTED]`
in the logged `state_delta`. See [Built-in
redaction](#built-in-redaction) for details.
in the logged `state_delta` (Python and Java). See [Built-in

@joefernandez joefernandez Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Don't add language specific details unless it is critical for implementation.

Suggested change
in the logged `state_delta` (Python and Java). See [Built-in
in the logged `state_delta`. See [Built-in

@joefernandez joefernandez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved with some edits.

@joefernandez
joefernandez enabled auto-merge (squash) November 9, 2026 22:49
@joefernandez
joefernandez merged commit ba6f5f8 into google:main Nov 9, 2026
8 of 11 checks passed
haiyuan-eng-google added a commit to haiyuan-eng-google/adk-docs that referenced this pull request Nov 11, 2026
- Preserve google.adk.integrations.bigquery Python imports from ba6f5f8
  (google#2019) and resolve the STATE_DELTA Built-in redaction
  note conflict while keeping both Python and Go temp: state-key behavior.
- Sync Go plugin v1.0.0 documentation with recent google/adk-go merges:
  trimmed-prefix GCSPathPrefix checks (google/adk-go#2018) and response
  summary / function-name redaction and length bounds (google/adk-go#2246),
  including how Python column-level max_content_length truncation compares.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants