Skip to content

feat: advance SequentialAgent to later sub-agents after a HITL resume when resumability is enabled#1303

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_937835192
Jun 26, 2026
Merged

feat: advance SequentialAgent to later sub-agents after a HITL resume when resumability is enabled#1303
copybara-service[bot] merged 1 commit into
mainfrom
test_937835192

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 25, 2026

Copy link
Copy Markdown

feat: advance SequentialAgent to later sub-agents after a HITL resume when resumability is enabled

Gated behind App.resumabilityConfig (opt-in, off by default), mirroring Python
ADK v1's ResumabilityConfig.is_resumable. When enabled, a resumed function
response re-enters its call's top-most SequentialAgent ancestor and fast-forwards
to the paused sub-agent, so the sequence continues to later sub-agents (e.g. run
C after B's HITL tool) and pauses on a pending long-running call. When disabled,
behavior matches Python ADK v1 with resumability off.

The LLM flow and LoopAgent also pause on a pending long-running call when
resumable, mirroring Python ADK v1, so a resumed agent does not keep re-calling
the model (a runaway loop that burns tokens). ParallelAgent needs no change: each
branch pauses via the flow.

@copybara-service copybara-service Bot force-pushed the test_937835192 branch 9 times, most recently from 982ccf1 to 57dd63f Compare June 25, 2026 12:49
@copybara-service copybara-service Bot changed the title fix: advance workflow agents to later sub-agents after a HITL resume fix: advance SequentialAgent to later sub-agents after a HITL resume Jun 25, 2026
@copybara-service copybara-service Bot force-pushed the test_937835192 branch 5 times, most recently from 209632e to fbfa6c2 Compare June 26, 2026 08:56
@copybara-service copybara-service Bot changed the title fix: advance SequentialAgent to later sub-agents after a HITL resume feat: advance SequentialAgent to later sub-agents after a HITL resume when resumability is enabled Jun 26, 2026
… when resumability is enabled

Gated behind App.resumabilityConfig (opt-in, off by default), mirroring Python
ADK v1's ResumabilityConfig.is_resumable. When enabled, a resumed function
response re-enters its call's top-most SequentialAgent ancestor and fast-forwards
to the paused sub-agent, so the sequence continues to later sub-agents (e.g. run
C after B's HITL tool) and pauses on a pending long-running call. When disabled,
behavior matches Python ADK v1 with resumability off.

The LLM flow and LoopAgent also pause on a pending long-running call when
resumable, mirroring Python ADK v1, so a resumed agent does not keep re-calling
the model (a runaway loop that burns tokens). ParallelAgent needs no change: each
branch pauses via the flow.

PiperOrigin-RevId: 938479982
@copybara-service copybara-service Bot merged commit 407478b into main Jun 26, 2026
@copybara-service copybara-service Bot deleted the test_937835192 branch June 26, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant