From ee743bd19a8134129111fc4769ec24e40a611982 Mon Sep 17 00:00:00 2001 From: "Xiang (Sean) Zhou" Date: Tue, 9 Dec 2025 14:24:44 -0800 Subject: [PATCH 1/2] chore: Update component definition for triaging agent Context: many issues related to local mult-agent system is tagged with a2a Co-authored-by: Xiang (Sean) Zhou PiperOrigin-RevId: 842397159 --- contributing/samples/adk_triaging_agent/agent.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/contributing/samples/adk_triaging_agent/agent.py b/contributing/samples/adk_triaging_agent/agent.py index ea26e51443..59cfb399ab 100644 --- a/contributing/samples/adk_triaging_agent/agent.py +++ b/contributing/samples/adk_triaging_agent/agent.py @@ -58,13 +58,16 @@ - "tracing": Telemetry, observability, structured logs, or spans. - "core": Core ADK runtime (Agent definitions, Runner, planners, thinking config, CLI commands, GlobalInstructionPlugin, CPU usage, or - general orchestration). Default to "core" when the topic is about ADK - behavior and no other label is a better fit. + general orchestration including agent transfer for multi-agents system). + Default to "core" when the topic is about ADK behavior and no other + label is a better fit. - "agent engine": Vertex AI Agent Engine deployment or sandbox topics only (e.g., `.agent_engine_config.json`, `ae_ignore`, Agent Engine sandbox, `agent_engine_id`). If the issue does not explicitly mention Agent Engine concepts, do not use this label—choose "core" instead. - - "a2a": Agent-to-agent workflows, coordination logic, or A2A protocol. + - "a2a": A2A protocol, running agent as a2a agent with "--a2a" option for + remote agent to talk with. Talking to remote agent via RemoteA2aAgent. + NOT including those local multi-agent systems. - "bq": BigQuery integration or general issues related to BigQuery. - "workflow": Workflow agents and workflow execution. - "auth": Authentication or authorization issues. From 4f54660d6de54ddde0fec6e09fdd68890ce657ca Mon Sep 17 00:00:00 2001 From: Google Team Member Date: Tue, 9 Dec 2025 14:47:57 -0800 Subject: [PATCH 2/2] fix: Update the code to work with either 1 event or more than 1 events Update the code to work with either 1 event or more than 1 events. PiperOrigin-RevId: 842406345 --- src/google/adk/agents/llm_agent.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/google/adk/agents/llm_agent.py b/src/google/adk/agents/llm_agent.py index 005d073cc7..5abaef589f 100644 --- a/src/google/adk/agents/llm_agent.py +++ b/src/google/adk/agents/llm_agent.py @@ -469,10 +469,7 @@ async def _run_async_impl( if ctx.is_resumable: events = ctx._get_events(current_invocation=True, current_branch=True) - if events and ( - ctx.should_pause_invocation(events[-1]) - or ctx.should_pause_invocation(events[-2]) - ): + if events and any(ctx.should_pause_invocation(e) for e in events[-2:]): return # Only yield an end state if the last event is no longer a long running # tool call.