mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: Update the comments of request confirmation preprocessor
Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com> PiperOrigin-RevId: 858816547
This commit is contained in:
committed by
Copybara-Service
parent
2367901ec5
commit
1699b090ed
@@ -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'])
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user