From 6e344a230a1d6006fea654a2d5dcd706c1e58663 Mon Sep 17 00:00:00 2001 From: winter-street Date: Fri, 18 Sep 2026 19:18:14 +0800 Subject: [PATCH] docs(a2a): fix to_a2a import so the task mode sample runs `docs/guides/agents/remote_a2a_agent/task.md` imported `to_a2a` from `google.adk.a2a`, which binds no names, so the sample raised ImportError before reaching the agent. Import it from `google.adk.a2a.utils.agent_to_a2a`, where it is defined and which the other five guides already use. --- docs/guides/agents/remote_a2a_agent/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/agents/remote_a2a_agent/task.md b/docs/guides/agents/remote_a2a_agent/task.md index c8e06deafc7..c04485f4115 100644 --- a/docs/guides/agents/remote_a2a_agent/task.md +++ b/docs/guides/agents/remote_a2a_agent/task.md @@ -102,7 +102,7 @@ coordinator: #### Remote Server Definition (`remote_agent.py`) ```python -from google.adk.a2a import to_a2a +from google.adk.a2a.utils.agent_to_a2a import to_a2a from google.adk.agents import LlmAgent # Define the remote agent with mode="task" (automatically injects finish_task)