Skip to content

[pull] main from google:main#394

Merged
pull[bot] merged 7 commits into
CrazyForks:mainfrom
google:main
Jul 2, 2026
Merged

[pull] main from google:main#394
pull[bot] merged 7 commits into
CrazyForks:mainfrom
google:main

Conversation

@pull

@pull pull Bot commented Jul 2, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

gezw and others added 7 commits July 1, 2026 15:26
Merge #5982

This ensures auth handling follows the same branch visibility semantics used by the rest of the invocation context.

PiperOrigin-RevId: 941326155
Co-authored-by: Xuan Yang <xygoogle@google.com>
PiperOrigin-RevId: 941350837
Co-authored-by: Xuan Yang <xygoogle@google.com>
PiperOrigin-RevId: 941353505
When ADK_TELEMETRY_SCHEMA_VERSION_OPT_IN resolves to 2, replace the legacy
top-level 'invocation' span with an entrypoint 'invoke_workflow {entrypoint}'
span (entrypoint = root agent or root node name), set is_entrypoint, and emit
the gen_ai.invoke_workflow.duration metric alongside it. Entrypoint status is
tracked via a contextvar so nested/agent-as-tool workflows report
is_entrypoint=false and the span is not double-emitted when the ADK entrypoint
is itself a workflow. Schema v1 is unchanged.

Co-authored-by: Max Ind <maxind@google.com>
PiperOrigin-RevId: 941359381
…ionConnectorTool

This change allows a credential key to be passed through the toolset and connector, enabling the ToolAuthHandler to use a specific key when looking up credentials in the tool context.

Fixes #4553

Co-authored-by: Xuan Yang <xygoogle@google.com>
PiperOrigin-RevId: 941375909
Merge #5235

`_determine_agent_language()` handled only 3 of the 4 agent structures that
`load_agent()` supports. When an agent is a flat module
(`agents_dir/my_agent.py`, with no subdirectory), `load_agent()` loads it
successfully but `_determine_agent_language()` raised `ValueError`.

This adds the missing flat-module branch so language detection is consistent
with all four supported load patterns:
- `{name}/agent.py`
- `{name}/__init__.py`
- `{name}/root_agent.yaml`
- `{name}.py` (flat module)

It also adds `__init__.py` to the recognized agent marker files listed in the
`adk web` / `adk api_server` AGENTS_DIR docstrings, and adds a
`TestDetermineAgentLanguage` suite covering all four patterns plus the
unrecognized-structure error case.

Co-authored-by: Haran Rajkumar <haranrk@google.com>
PiperOrigin-RevId: 941382778
…on names

Rename gen_ai.agent.invocation.duration to gen_ai.invoke_agent.duration and
gen_ai.tool.execution.duration to gen_ai.execute_tool.duration so the metric
names match the GenAI semantic-convention operation names (invoke_agent,
execute_tool) already used for the corresponding spans.

Co-authored-by: Max Ind <maxind@google.com>
PiperOrigin-RevId: 941394506
@pull pull Bot locked and limited conversation to collaborators Jul 2, 2026
@pull pull Bot added the ⤵️ pull label Jul 2, 2026
@pull pull Bot merged commit 77d5b5c into CrazyForks:main Jul 2, 2026
0 of 15 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants