docs(tutorials): fix ToolContext, output_key and persistence claims - #2032
Open
GWeale wants to merge 1 commit into
Open
docs(tutorials): fix ToolContext, output_key and persistence claims#2032GWeale wants to merge 1 commit into
GWeale wants to merge 1 commit into
Conversation
✅ Deploy Preview for adk-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corrections to the tutorial, quickstart and grounding pages — the ones a new
user runs first. Verified against
google/adk-python@ main; all 34 Pythonblocks compile and all 3 JSON blocks parse.
docs/tutorials/agent-team.md
ToolContextmust be declared last in a tool signature. It does not:ADK matches the context parameter on its annotation type at any position
(
utils/context_utils.py:67-79,tools/function_tool.py:116). Proved withthe parameter first, middle, and renamed.
last_weather_reportviaoutput_key. It does not —agents/llm_agent.py:953-963early-returns whenevent.author != self.name.The page's own prose 60 lines later already said so.
integrations".
DatabaseSessionServiceandVertexAiSessionServicealreadyship.
-> InMemorySessionServicethat returns aSession; aconstant whose name and value disagreed;
pip install litellmunpinned whenADK requires
litellm>=1.84.docs/get-started/streaming/quickstart-streaming.md
Said Callback, LongRunningTool, ExampleTool and Shell agents "will be supported
in future versions of ADK Streaming". All four work on the live path today —
each verified individually. Only model callbacks are genuinely absent, since
_handle_*_model_callbackis reached only from the non-live_call_llm_async.The caveat now states that limitation instead.
docs/grounding/grounding_with_search.md
The documented
groundingChunks[].document{title,uri,id}shape does not exist —types.GroundingMetadata.model_validaterejects it (extra_forbidden). Forthis page's datastore case the real field is
retrievedContext. The correctedpayload round-trips; the old one fails validation. Also guards
len(grounding_chunks), which raisesTypeErrorwhen the field isNone.Smaller
docs/get-started/python.md— the project layout omitted the.gitignorethat
adk createwrites, and the prose did not mentionadk createisinteractive (it prompts for model and backend).
docs/evaluate/custom_metrics.md— prose namedcheck_final_response_matchandresponse_matchwhere the example definescheck_final_response_exact_match.