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. 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.