You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
chore: When processing pending tool confirmation requests, only look at events in the same branch
PiperOrigin-RevId: 816387687
This commit is contained in:
committed by
Copybara-Service
parent
636def3687
commit
db41f54e7b
@@ -48,7 +48,8 @@ class _RequestConfirmationLlmRequestProcessor(BaseLlmRequestProcessor):
|
||||
|
||||
agent = invocation_context.agent
|
||||
|
||||
events = invocation_context.session.events
|
||||
# Only look at events in the current branch.
|
||||
events = invocation_context._get_events(current_branch=True)
|
||||
if not events:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user