From 1699b090edc9e5b13c34f461c8e664187157c5c0 Mon Sep 17 00:00:00 2001 From: "Xiang (Sean) Zhou" Date: Tue, 20 Jan 2026 17:03:30 -0800 Subject: [PATCH] chore: Update the comments of request confirmation preprocessor Co-authored-by: Xiang (Sean) Zhou PiperOrigin-RevId: 858816547 --- src/google/adk/flows/llm_flows/request_confirmation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/google/adk/flows/llm_flows/request_confirmation.py b/src/google/adk/flows/llm_flows/request_confirmation.py index ac1806d8..f7b7f7f6 100644 --- a/src/google/adk/flows/llm_flows/request_confirmation.py +++ b/src/google/adk/flows/llm_flows/request_confirmation.py @@ -78,8 +78,9 @@ class _RequestConfirmationLlmRequestProcessor(BaseLlmRequestProcessor): and len(function_response.response.values()) == 1 and 'response' in function_response.response.keys() ): - # ADK web client will send a request that is always encapsulated in a - # 'response' key. + # ADK client must send a resuming run request with a function response + # that always encapsulate the confirmation result with a 'response' + # key tool_confirmation = ToolConfirmation.model_validate( json.loads(function_response.response['response']) )