We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 679d543 commit 8fc6128Copy full SHA for 8fc6128
src/google/adk/agents/llm_agent.py
@@ -469,10 +469,7 @@ async def _run_async_impl(
469
470
if ctx.is_resumable:
471
events = ctx._get_events(current_invocation=True, current_branch=True)
472
- if events and (
473
- ctx.should_pause_invocation(events[-1])
474
- or ctx.should_pause_invocation(events[-2])
475
- ):
+ if any(ctx.should_pause_invocation(e) for e in events[-2:]):
476
return
477
# Only yield an end state if the last event is no longer a long running
478
# tool call.
0 commit comments