You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+
## [0.4.0] - 2026-06-10
6
+
- Scaffolded Python templates now use **ADK 2.0 GA**. New `adk`, `adk_a2a`, and `agentic_rag` projects pin `google-adk[gcp]>=2.0.0,<3.0.0`; the `[gcp]` extra restores the OpenTelemetry GCP exporters and bundles the BigQuery client, so the separate `[bigquery-analytics]` extra is no longer needed. Cloud SQL sessions on Cloud Run and GKE keep working under 2.0. The bundled ADK coding skill and its reference docs were refreshed for 2.0.
7
+
-https://github.com/google/agents-cli/issues/24
8
+
- Agent Runtime deploys no longer overwrite a user-supplied `AGENT_VERSION` (or `NUM_WORKERS`) passed via `--update-env-vars`, matching Cloud Run behavior. The "version not found" warning now names the `pyproject.toml` field to set.
9
+
- Fixed a stale `deployment/terraform/dev/` path in the Cloud Trace observability guide so it matches the current `single-project` terraform layout.
10
+
5
11
## [0.3.1] - 2026-06-04
6
12
-`eval generate` now works on ADK 2.x projects that use built-in tools such as `VertexAiSearchTool`. Raised the `google-cloud-aiplatform` floor to 1.156.0, which carries the SDK fix.
Copy file name to clipboardExpand all lines: skills/google-agents-cli-adk-code/SKILL.md
+12-66Lines changed: 12 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ description: >
12
12
metadata:
13
13
author: Google
14
14
license: Apache-2.0
15
-
version: 0.3.1
15
+
version: 0.4.0
16
16
requires:
17
17
bins:
18
18
- agents-cli
@@ -36,87 +36,33 @@ Do NOT write agent code until a project is scaffolded.
36
36
37
37
## Quick Reference — Most Common Patterns
38
38
39
-
### Agent Creation
40
-
41
39
```python
42
40
from google.adk.agents import Agent
43
41
44
-
root_agent = Agent(
45
-
name="my_agent",
46
-
model="gemini-flash-latest",
47
-
instruction="You are a helpful assistant that ...",
48
-
tools=[my_tool],
49
-
)
50
-
```
51
-
52
-
> **NEVER change an existing agent's `model=` value unless the user explicitly asks.** If a Gemini model returns a 404, it's almost always a `GOOGLE_CLOUD_LOCATION` issue — run the listing command to verify availability before changing anything. For model docs, fetch `https://adk.dev/agents/models/google-gemini/index.md`.
> **The Workflow API is experimental, pre-GA (ADK 2.0).** Do NOT recommend it by default.
108
-
>
109
-
> **Before suggesting workflow patterns**, explain the following to the user and ask if they want to proceed:
110
-
>
111
-
> 1.**What it is**: ADK 2.0 introduces a graph-based Workflow API — nodes (functions, LLM agents, tools) connected by edges with conditional routing, fan-out/fan-in parallelism, and human-in-the-loop interrupts.
112
-
> 2.**When it helps**: Complex multi-step pipelines needing deterministic control flow, parallel processing of list items, structured approval gates, or retry logic — cases where SequentialAgent/ParallelAgent/LoopAgent feel limiting.
113
-
> 3.**Risks**: Pre-GA — APIs may change before GA. Requires `google-adk >= 2.0.0` and **Python >= 3.11**. Incompatible with Live Streaming. Scaffolded projects need `pyproject.toml` changes before upgrade — see the reference file for step-by-step instructions.
114
-
>
115
-
> **Only read `references/adk-2.0.md` after the user explicitly opts in.** If they decline or are unsure, use the standard ADK 1.x orchestration patterns from `references/adk-python.md` (SequentialAgent, ParallelAgent, LoopAgent, BaseAgent).
56
+
## References
116
57
117
-
## ADK Documentation
58
+
The first two are cheatsheets for common patterns; for broad or deep knowledge, go to the source (docs index or installed package).
118
59
119
-
For the ADK docs index (titles and URLs for fetching documentation pages), use `curl https://adk.dev/llms.txt`.
|`references/adk-workflows.md`| Graph-based Workflow API (ADK 2.0): nodes, edges, fan-out/fan-in, HITL, parallel processing. Use when you need explicit graph topology. |
64
+
|`curl https://adk.dev/llms.txt`| Docs index (every page title + URL). Fetch it, then `WebFetch` the specific page for anything beyond the cheatsheets. |
65
+
| Installed ADK package | Exact signatures and symbols — inspect the source (see "Inspecting ADK Source Code" in `references/adk-python.md`). |
Copy file name to clipboardExpand all lines: skills/google-agents-cli-adk-code/references/adk-python.md
+55-13Lines changed: 55 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,8 @@ Rules:
136
136
137
137
Workflow agents provide deterministic control flow without LLM orchestration.
138
138
139
+
> These are `BaseAgent`-family composites (`SequentialAgent`, `ParallelAgent`, `LoopAgent`). For the new graph-based Workflow API introduced in ADK 2.0, see `references/adk-workflows.md`.
140
+
139
141
### SequentialAgent
140
142
141
143
Executes sub-agents in order. State changes propagate to subsequent agents.
@@ -229,6 +231,25 @@ For a production LoopAgent with EscalationChecker, BuiltInPlanner, and grounding
229
231
)
230
232
```
231
233
234
+
4. **Task Delegation (ADK2.0)**: Set `mode` on a sub-agent for structured, schema-typed delegation — the coordinator gets a `request_task_{name}` tool; the sub-agent returns typed output via the auto-injected `finish_task` tool.
Modes: `task` (multi-turn, structured I/O) · `single_turn` (autonomous, no user turn). Sub-agents need a `description`; default I/O schemas (`goal`/`background`in, `result` out) are used if none set. Disabled inside graph `Workflow`s.
-**Let the model ask:** add the built-in`request_input` tool (`from google.adk.tools import request_input`) to `tools=` — the model calls it when it needs clarification.
443
+
-**Approval gate inside a tool:**`tool_context.request_confirmation(hint="Approve this transfer?")`, or`FunctionTool(fn, require_confirmation=...)` (above).
444
+
-**Custom long-running tool:** wrap a function with`LongRunningFunctionTool(fn)` to pause until an external result arrives.
445
+
446
+
The user's reply is read from `ctx.resume_inputs` (available on `ToolContext` and `CallbackContext`). Inside graph workflows the same mechanism is node-based — see `adk-workflows.md` §7.
0 commit comments