Skip to content

fix: Fix ADK Runner race condition for sequential tool execution#1234

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_921989444
Open

fix: Fix ADK Runner race condition for sequential tool execution#1234
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_921989444

Conversation

@copybara-service
Copy link
Copy Markdown

fix: Fix ADK Runner race condition for sequential tool execution

Persist agent events to the session synchronously within each LLM step in
BaseLlmFlow.run(), so the next step does not start before the previous
step's events have been appended. Both BaseLlmFlow.run() and Runner skip
the duplicate appendEvent for events already present in the session (by
id), so events emitted by a transferred sub-agent are appended exactly
once.

Persist agent events to the session synchronously within each LLM step in
BaseLlmFlow.run(), so the next step does not start before the previous
step's events have been appended. Both BaseLlmFlow.run() and Runner skip
the duplicate appendEvent for events already present in the session (by
id), so events emitted by a transferred sub-agent are appended exactly
once.

PiperOrigin-RevId: 921989444
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