Skip to content

docs: document Go tool execution and built-in helpers - #2455

Open
n1shanthb wants to merge 4 commits into
google:mainfrom
n1shanthb:docs/go-tool-behavior-2377
Open

n1shanthb wants to merge 4 commits into
google:mainfrom
n1shanthb:docs/go-tool-behavior-2377

Conversation

@n1shanthb

Copy link
Copy Markdown

Summary

Closes #2377 by addressing four gaps in the Go documentation:

  • Document concurrent tool execution, shared-state synchronization, and custom task runners using platform.WithTaskRunner.
  • Add a runnable AgentTool workaround with model- and API-specific compatibility guidance.
  • Replace the handwritten loop-exit tool with exitlooptool.New() and explain its SkipSummarization behavior.
  • Document few-shot examples using exampletool.New() with a runnable Go example.

Register both new examples for automated snippet validation and document the ADK Go v2.5.0+ runtime requirement for the updated loop example.

Validation

  • Strict MkDocs build, including Pagefind — passed.
  • Go formatting, snippet registration, and example compilation — passed.
  • Scripted behavioral checks against ADK Go v2.5.0, v2.6.0, and current main — passed.
  • Checks against pinned ADK Go v2.0.0 —Examples compile against the pinned ADK Go v2.0.0 dependency. The updated loop example explicitly requires v2.5.0+ to preserve saved state correctly.

@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit d49ed75
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/6ad763c59a9af431a0ebafaa
😎 Deploy Preview https://deploy-preview-2455--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.

@n1shanthb

Copy link
Copy Markdown
Author

Hi @karolpiotrowicz! Just following up on this PR when you have a chance. Happy to address any feedback or make adjustments to the documentation. Thanks!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Go tool docs omit concurrent tool calls, the built-in tool workaround and prebuilt tools

1 participant