adk-unit-guide
Skill22k starsChanged 4 months agoApache-2.0View on GitHub
Writes a hands-on developer guide for one ADK code unit — a minimal runnable example, how it works, a configuration-option table, advanced uses, limitations, and links to related samples — to `docs/guides/{topic}/{unit}/index.md`, then lists it in the index at `docs/guides/README.md`. Its reader is a developer calling the unit from their own application, at more depth than the published adk.dev documentation carries. Use when asked to "write a unit guide for {class}", "document how to use {feature}", "add a guide for {file}", or after shipping a user-facing class, node, or plugin. Don't use for internals documentation aimed at someone changing or extending the unit — that is a design document under `docs/design/` (use `adk-unit-design`). Don't use to write a runnable sample under `contributing/samples/` (use `adk-sample-creator`).
Trending
Less talk lately.about the whole repository
Who's talking about google/adk-python
- @tiangolo.com“Google's AI Agent Developer Toolkit uses @fastapi.tiangolo.com 😎 github.com/google/adk-p...”Bluesky · Apr 12, 2025 · 14 likes
- @stephanjanssen.be“Google just open sourced a Python Agent Development Kit @ github.com/google/adk-p... Native Streaming and …”Bluesky · Apr 9, 2025 · 12 likes
- googleapis/python-genai“Feature Request: Support user identity/credentials for VertexAISearch grounding”GitHub · Oct 28, 2025 · 10 reactions
- google/adk-go“When is the plan to support the Claude model?”GitHub · Nov 7, 2025 · 9 reactions
- google-gemini/computer-use-preview“ComputerUseToolset: safety_decision for click_at requires safety_acknowledgement even after user confirms …”GitHub · Dec 5, 2025 · 7 reactions
The biggest 5 of 63 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 63
Talked about on GitHub, Bluesky and Hacker News (63 times).
On GitHub · 50
- Oct 28, 2025Feature Request: Support user identity/credentials for VertexAISearch grounding — googleapis/python-genai10 reactions · 5 comments
- Nov 7, 2025When is the plan to support the Claude model? — google/adk-go9 reactions · 15 comments
- Dec 5, 2025ComputerUseToolset: safety_decision for click_at requires safety_acknowledgement even after user confirms in ADK UI — google-gemini/computer-use-preview7 reactions
- Jun 10, 2025Add an example of LongRunningFunctionTool — google/adk-recipes6 reactions · 4 comments
- Jun 6, 2025Add copy button in ADK Web UI chat response — google/adk-web6 reactions · 3 comments
45 more on GitHub
- Nov 18, 2025Gemini API rejects MCP tool schemas with $defs references — google-gemini/gemini-cli5 reactions · 8 comments
- May 21, 2025Documentation for using the MCP tool is partially outdated for v1.0.0 — google/adk-docs4 reactions · 1 comment
- Aug 14, 2026[Feature]: model/openaimodel: support image/file input (genai InlineData/FileData parts) — google/adk-go3 reactions · 7 comments
- Oct 23, 2025RFC: Context Caching Support for Java ADK — google/adk-java3 reactions · 3 comments
- May 26, 2025Documentation for MCPToolset use has not been updated after 1.0.0 release — google/adk-docs3 reactions · 8 comments
- Apr 10, 2025[feature request] Support Google Agent Development Kit (ADK) — Arize-ai/openinference3 reactions · 6 comments
- Jun 24, 2026chore(deps): bump the pip group across 2 directories with 6 updates — CaffeeLake/AP22 reactions
- May 17, 2026chore(deps): bump the pip group across 5 directories with 2 updates — billlzzz10/adk-samples2 reactions · 4 comments
- May 17, 2026chore(deps): bump the pip group across 6 directories with 1 update — billlzzz10/adk-samples2 reactions · 4 comments
- May 17, 2026chore(deps): bump the pip group across 6 directories with 2 updates — billlzzz10/adk-samples2 reactions · 4 comments
- May 13, 2026chore(deps): bump the pip group across 3 directories with 4 updates — HarleyCoops/adk-python2 reactions · 1 comment
- May 5, 2026chore(deps): bump the pip group across 7 directories with 2 updates — billlzzz10/adk-samples2 reactions · 4 comments
- May 4, 2026chore(deps): bump the pip group across 8 directories with 2 updates — billlzzz10/adk-samples2 reactions · 4 comments
- Apr 26, 2026chore(deps): bump the uv group across 46 directories with 2 updates — billlzzz10/adk-samples2 reactions · 5 comments
- Apr 26, 2026chore(deps): bump the uv group across 47 directories with 2 updates — billlzzz10/adk-samples2 reactions · 4 comments
- Apr 24, 2026chore(deps): bump the uv group across 38 directories with 2 updates — billlzzz10/adk-samples2 reactions · 4 comments
- Apr 24, 2026chore(deps): bump the uv group across 39 directories with 2 updates — billlzzz10/adk-samples2 reactions · 5 comments
- Apr 24, 2026chore(deps): bump the uv group across 36 directories with 2 updates — billlzzz10/adk-samples2 reactions · 5 comments
- Apr 24, 2026chore(deps): bump the pip group across 10 directories with 7 updates — billlzzz10/adk-samples2 reactions · 3 comments
- Apr 24, 2026chore(deps): bump the pip group across 10 directories with 1 update — billlzzz10/adk-samples2 reactions · 4 comments
- Apr 24, 2026chore(deps): bump the pip group across 7 directories with 7 updates — billlzzz10/adk-samples2 reactions · 4 comments
- Apr 14, 2026Bump google-adk from 1.1.1 to 1.28.1 in /adk-gradio-example — cicero-im/adk-gradio2 reactions · 2 comments
- Apr 14, 2026Bump google-adk from 0.1.0 to 1.28.1 in /advanced_ai_agents/multi_agent_apps/ai_financial_coach_agent — cicero-im/awesome-llm-apps2 reactions · 2 comments
- Mar 13, 2026Feature request: Google ADK integration plugin similar to LangChain — livekit/agents2 reactions
- Jan 29, 2026ASGI shutdown error with active SSE connections - StreamableHTTPSessionManager cancels task group without graceful stream termination — PrefectHQ/fastmcp2 reactions
- Dec 27, 2025[Feature] Contribute to support bifrost in ADK — maximhq/bifrost2 reactions · 3 comments
- Nov 30, 2025Feature Request: Support dynamic per-request headers in MCPTools for multi-tenant applications — agno-agi/agno2 reactions · 9 comments
- Oct 20, 2025Expose max_llm_calls to ADK web — google/adk-web2 reactions
- Aug 20, 2025Claude in Vertex AI does not support URL-based image ingestion — langchain-ai/langchain-google2 reactions · 4 comments
- May 3, 2025Help with GKE deployment with istio enabled — google/adk-web2 reactions · 1 comment
- Oct 28, 2026docs: fix 5 broken internal anchor links and 1 dead external link — google-gemini/gemini-cli1 reaction · 3 comments
- Oct 16, 2026chore(deps): bump google-adk from 2.9.2 to 2.12.0 — cgj8702-org/hannibal-hub-agents1 reaction · 2 comments
- Oct 15, 2026fix(agenttool): preserve code output in sub-agent results — google/adk-go1 reaction · 1 comment
- Oct 15, 2026docs(agents): explain opt-in sharing of sibling final answers — google/adk-docs1 reaction · 1 comment
- Sep 11, 2026build(deps): bump google-adk from 2.4.0 to 2.8.0 — cgj8702-org/hannibal-hub-agents1 reaction
- Aug 25, 2026fix(google_adk): support google-adk 2.7.0+ tool dispatch changes [MLOS-864] — DataDog/dd-trace-py1 reaction · 6 comments
- Jul 17, 2026Update google-adk requirement from >=1.31.1 to >=2.5.0 — xenm/map-me-search1 reaction · 3 comments
- Jul 8, 2026Update google-adk requirement from >=1.31.1 to >=2.4.0 — xenm/map-me-search1 reaction · 4 comments
- Jun 18, 2026Update google-adk requirement from >=1.31.1 to >=2.3.0 — xenm/map-me-search1 reaction · 4 comments
- Jun 5, 2026Update google-adk requirement from >=1.31.1 to >=2.2.0 — xenm/map-me-search1 reaction · 4 comments
- May 22, 2026fix(ollama): remap tool role to tool_responses for Gemma models — BerriAI/litellm1 reaction · 5 comments
- Apr 14, 2026chore(deps): bump the pip group across 2 directories with 2 updates — Activ8-AI/compose-for-agents1 reaction · 1 comment
- Apr 9, 2026Update deployment docs to avoid relying on internal get_fast_api_app — google/adk-docs1 reaction · 1 comment
- Mar 17, 2026Add progressive SSE to streaming aggregator and parallel function call execution — google/adk-go1 reaction · 2 comments
- Jun 12, 2025Hackathon related `google-adk` issues and pull requests — pivlab/manufold1 reaction · 10 comments
On Bluesky · 11
- Apr 12, 2025Google's AI Agent Developer Toolkit uses @fastapi.tiangolo.com 😎 github.com/google/adk-p... — @tiangolo.com14 likes and reposts
- Apr 9, 2025Google just open sourced a Python Agent Development Kit @ github.com/google/adk-p... Native Streaming and #MCP support out of the box 👀… — @stephanjanssen.be12 likes and reposts
- Apr 16, 2025adk-python An open-source, code-first Python toolkit by Google for building, evaluating, and deploying sophisticated AI agents with… — @pythonhub.dev3 likes and reposts
- Oct 30, 2025🧠 Google Agent Development Kit (ADK) kini mendukung file llms.txt & llms-full.txt untuk meningkatkan “vibe coding” dengan AI agents! 🚀 🔗… — @its-me-rhk.bsky.social2 likes and reposts
- Feb 28, 2026https://github.com/google/adk-python — @tom-doerr.bsky.social1 likes and repost
6 more on Bluesky
- Aug 8, 2025📦 google / adk-python ⭐ 11,687 (+78) 🗒 Python An open-source, code-first Python toolkit for building, evaluating, and deploying… — @github-trending.bsky.social1 likes and repost
- Jun 2, 2025잠시 관심을 놓고있던 사이에 google adk 가 stable 이 됐었네 github.com/google/adk-p... — @oenomel.bsky.social1 likes and repost
- Apr 9, 2025github.com/google/adk-python — @php.2.hyzsui.com1 likes and repost
- May 10, 2026Repo → https://github.com/openai/openai-agents-python 3. google/adk-python Google's Agent Development Kit. The official toolkit for… — @adityamitra.bsky.social0 likes and reposts · 1 reply
- Jun 26, 2025Google ADK (agent developlemt toolkit) github.com/google/adk-p... — @ineumann.fr0 likes and reposts · 1 reply
- May 30, 2025🍦 Try the ice cream agent: goo.gle/ice-cream-agent 💻 Check out the code: goo.gle/ice-cream-agent-code ADK Docs:… — @alokpattani.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Apr 9, 2025Agent Development Kit (ADK) from Google6 points · 3 comments
- Apr 11, 2025Google ADK1 point · 1 comment
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- adk-agent-builderSkill
- adk-architectureSkill
- adk-debugSkill
- adk-gitSkill
- adk-reviewSkill
- adk-sample-creatorSkill
- adk-setupSkill
- adk-styleSkill
- adk-unit-designSkill
- adk-verify-snippetsSkill
- calc-skillSkill
- text-skillSkill
- weather-skillSkill
- calc-skillSkill
- text-skillSkill
- weather-skillSkill
- code-review-skillSkill
- weather-skillSkill
- bigquery-ai-mlSkill
- bigquery-graphSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Write to help the reader understand, not to instruct them from above.
- Distinctive: line 47
Every heading has at least one sentence under it before the next heading, and every code block has a sentence introducing what it does.
- Very specific: line 110
Use named files instead of index.md only when one source file has genuinely separate usage modes — docs/guides/agents/llm_agent/ holds …
- Distinctive: line 114
Update an existing guide in place, keeping the existing wording wherever the code has not changed, so the diff shows only what the change …
- Distinctive: line 146
Write a reason a reviewer can check against the code, because the tag becomes the only record of why the guide is absent:
- Very specific: line 186
Keep the google.adk import lines, because the import path is the single most error-prone thing a reader copies.
- Very specific: line 193
Do not set model= on a sample agent — guides stay model-agnostic, and no guide in docs/guides/ currently pins a model.
- Distinctive: line 209
Follow references/guide-template.md section by section.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ADK code unit guide
A unit guide is granular usage documentation for one code unit, deeper than what ships on adk.dev — so detail that would bloat the published documentation has somewhere to live. The reader wants to call the unit from an application, so lead with working code.
Unit guides focus on public APIs and caller-visible behavior. Do not discuss internal implementation details (such as private methods, internal state mechanisms, or unexported helpers).
Voice
Write to help the reader understand, not to instruct them from above.
- Give the reason, not only the rule. Whenever the guide states a constraint, a default, or a recommendation, say why it is that way. A reader who knows the reason can handle the case the guide did not anticipate.
- Do not decide for the reader. Phrasings such as "most applications never need this" or "you will rarely" tell people what they want. State the trade-off and let them choose.
- Explain at the caller's level. Explaining what happens is required; explaining the machinery that makes it happen is not. If an explanation needs a private symbol to make sense, it is pitched at the wrong layer.
- Length follows understanding. Brevity is not the goal. Where a reader would have a follow-up question, answer it. Where the sentence already lands, leave it.
- Problem before syntax. Say what the reader is trying to do, then show the code.
- Every heading has at least one sentence under it before the next heading, and every code block has a sentence introducing what it does.
Sentence-level rules, following the Google developer documentation style guide:
present tense, no contractions, no parentheticals (use commas), no bare "This"
as a subject, no e.g. or etc., no superlatives, sentence case in headings,
and no heading deeper than H3.
What the difference looks like
From the BaseNode guide. Before:
Most applications never subclass
BaseNode, so the sections that follow cover the settings first.
That decides for the reader and gives them nothing to check their own case against. After:
You usually configure a node rather than subclass one, because the settings below cover what most graphs need. Subclassing earns its keep when you want behavior the settings cannot express, and that case is at the end.
Same length, same facts. The second one names the reason, so a reader can tell which of the two situations is theirs.
A second pair, from the JoinNode guide. Before:
Here three tasks run in parallel on the same input, and a
JoinNodecollects their results.
That opens in speech rather than documentation, and it drops the name of the pattern the reader would search for. After:
This example builds a fan-out/fan-in workflow. Three tasks run in parallel on the same input, and a
JoinNodeaggregates their results so that a final node can present all three together.
Inputs
Require the source file, or a class or method named inside it. Also read, when
they exist: its unit tests (they give you an example to adapt) and its design
document at docs/design/{topic}/{unit}/index.md.
Analyse before writing
- Purpose and intended use of the unit.
- Which classes depend on it, and which it depends on.
- Configuration options the unit itself introduces, ignoring inherited ones.
- Known limitations.
- Exclude internal implementation details such as private methods and attributes, internal helper functions, private execution state, or internal data structures.
Where the guide goes
Mirror the source path under docs/guides/, one directory per unit, guide named
index.md. Drop the leading underscore of a private module:
| Source | Guide |
src/google/adk/workflow/_function_node.py | docs/guides/workflow/function_node/index.md |
src/google/adk/plugins/reflect_retry_tool_plugin.py | docs/guides/plugins/reflect_retry_tool_plugin/index.md |
Use named files instead of index.md only when one source file has genuinely
separate usage modes — docs/guides/agents/llm_agent/ holds single_turn.md
and task.md for that reason.
Update an existing guide in place, keeping the existing wording wherever the code has not changed, so the diff shows only what the change actually altered.
Then add the guide to docs/guides/README.md under the right category heading,
as * [Title](path/index.md) - one-line summary. That index is the only table
of contents; a guide missing from it is unreachable.
When a guide is not required
scripts/check_new_py_files.py enforces this convention on the Python files a
change adds under src/google/adk/. Some it passes over without asking, and
the rest you can waive, so work out which case you are in before writing a
guide the rule does not ask for.
Three subtrees sit outside the rule, because nothing in them is published:
src/google/adk/internal/, src/google/adk/platform/internal/, and
src/google/adk/v1/.
Elsewhere a file is exempt on one of two grounds. It carries no unit of its
own, which covers __init__.py and any path with a cli/ or utils/
component. Or it holds declarations that belong in the guide of whatever uses
them rather than in a guide of their own, which covers any filename ending
_utils.py, _helper.py, _helpers.py, _types.py, _errors.py,
_exceptions.py, or _constants.py.
Everything else needs a guide or a waiver. A waiver is a NO_UNIT_GUIDE= or
SKIP_UNIT_GUIDE= tag carrying the reason, and the two names behave
identically. It waives the unit guide requirement alone; the _ prefix rule
shares the same hook and the same error report, and has no waiver at all. One
tag waives every file the change adds, not the one its reason names, so a
change adding several needs a reason that covers all of them.
Write a reason a reviewer can check against the code, because the tag becomes the only record of why the guide is absent:
NO_UNIT_GUIDE=_model_call is internal to the LLM flow; no __init__.py re-exports it.Where to put the waiver
The tag reaches the check through a commit message or through the environment, and which one applies depends on whether the commit exists yet.
Once the commit exists, its message carries the tag. Continuous integration
reads the messages of the commits a pull request contains, so a waiver a
contributor writes there satisfies the check that gates the pull request. Start
the tag at the left margin with no space before the =, because the check
matches at the start of a line. An indented tag, or one inside a list item, is
not found, and nothing reports the miss.
The environment carries the tag for a commit that does not exist yet:
NO_UNIT_GUIDE='internal to the LLM flow' git commit ...Reach for that form when the pre-commit hook stops you. A pre-commit hook runs before git records your message anywhere, and the check declines to read the previous commit's message in its place, so the environment is the channel left open. Quote the reason: an unquoted one ends at the first space, and the shell takes the next word for the command to run, so no commit happens at all. Write the tag into the message as well, so the reason survives in the history rather than only in the shell that ran the commit.
A tag carrying no reason waives nothing, in either channel. The reason is the only record of the decision, so a waiver without one leaves nothing to review.
Code examples
- One minimal example under "Get started", with enough of the surrounding classes to show where the call belongs. Start from a unit test if one exists.
- Keep the
google.adkimport lines, because the import path is the single most error-prone thing a reader copies. Omit unrelated standard-library imports andasyncio.run(main())runner boilerplate, which add nothing about the unit. - Show what a developer would actually write. An example that only demonstrates
the shape of an interface, or that drives a service the reader would normally
reach through
Runner, does not belong in a guide. - Do not set
model=on a sample agent — guides stay model-agnostic, and no guide indocs/guides/currently pins a model. - For workflow nodes, show the logic as a plain Python function rather than a
BaseNodesubclass, unless the use case genuinely requires the subclass. - Wrap a function as a node with the
@nodedecorator rather thanFunctionNodedirectly, except when demonstratingFunctionNodeconfiguration itself.
Link related samples
Link samples by repo-relative path from the guide, not by GitHub URL:
[Node Output](../../../../contributing/samples/workflows/node_output/agent.py).
Confirm the file exists before linking it.
Structure
Follow references/guide-template.md section by section.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

