3131from .auth_tool import AuthConfig
3232from .auth_tool import AuthToolArguments
3333
34- # Prefix used by toolset auth credential IDs.
35- # Auth requests with this prefix are for toolset authentication (before tool
36- # listing) and don't require resuming a function call.
37- TOOLSET_AUTH_CREDENTIAL_ID_PREFIX = '_adk_toolset_auth_'
38-
3934
4035async def _store_auth_and_collect_resume_targets (
4136 events : list [Event ],
@@ -50,7 +45,7 @@ async def _store_auth_and_collect_resume_targets(
5045 ``AuthToolArguments`` args, merges ``credential_key`` into the
5146 corresponding auth response, stores credentials via ``AuthHandler``,
5247 and returns the set of original function call IDs that should be
53- re-executed (excluding toolset auth) .
48+ re-executed.
5449
5550 Args:
5651 events: Session events to scan.
@@ -96,8 +91,7 @@ async def _store_auth_and_collect_resume_targets(
9691 state = state
9792 )
9893
99- # Step 3: Collect original function call IDs to resume, skipping
100- # toolset auth entries which don't map to a resumable function call.
94+ # Step 3: Collect original function call IDs to resume.
10195 tools_to_resume : set [str ] = set ()
10296 for fc_id in auth_fc_ids :
10397 requested_auth_config = requested_auth_config_by_id .get (fc_id )
@@ -115,10 +109,6 @@ async def _store_auth_and_collect_resume_targets(
115109 and function_call .name == REQUEST_EUC_FUNCTION_CALL_NAME
116110 ):
117111 args = AuthToolArguments .model_validate (function_call .args )
118- if args .function_call_id .startswith (
119- TOOLSET_AUTH_CREDENTIAL_ID_PREFIX
120- ):
121- continue
122112 tools_to_resume .add (args .function_call_id )
123113
124114 return tools_to_resume
0 commit comments