Skip to content

Commit 1699b09

Browse files
seanzhougooglecopybara-github
authored andcommitted
chore: Update the comments of request confirmation preprocessor
Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com> PiperOrigin-RevId: 858816547
1 parent 2367901 commit 1699b09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/google/adk/flows/llm_flows/request_confirmation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ async def run_async(
7878
and len(function_response.response.values()) == 1
7979
and 'response' in function_response.response.keys()
8080
):
81-
# ADK web client will send a request that is always encapsulated in a
82-
# 'response' key.
81+
# ADK client must send a resuming run request with a function response
82+
# that always encapsulate the confirmation result with a 'response'
83+
# key
8384
tool_confirmation = ToolConfirmation.model_validate(
8485
json.loads(function_response.response['response'])
8586
)

0 commit comments

Comments
 (0)