From 78b67028e57afa1cef9e52753dd59a6be932864f Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Thu, 23 Jul 2026 05:12:55 +0500 Subject: [PATCH 1/3] Update conditional-routing.py --- .../snippets/agents/workflow-agents/conditional-routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/snippets/agents/workflow-agents/conditional-routing.py b/examples/python/snippets/agents/workflow-agents/conditional-routing.py index 84705834c4..67c3d59669 100644 --- a/examples/python/snippets/agents/workflow-agents/conditional-routing.py +++ b/examples/python/snippets/agents/workflow-agents/conditional-routing.py @@ -48,9 +48,9 @@ def route_weekend(weekend_budget: WeekendBudget): if amount < 5: yield Event(route="too_low") elif amount < 100: - yield Event(route="cheap_ideas") + yield Event(route="value_ideas") else: - yield Event(route="fancy_ideas") + yield Event(route="premium_ideas") def handle_too_low(): From 12240e7082d3e6dbac80b8750bf9fad68b563a8e Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Thu, 23 Jul 2026 05:25:01 +0500 Subject: [PATCH 2/3] Update tools_and_agent.py --- examples/python/snippets/tools/auth/tools_and_agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/snippets/tools/auth/tools_and_agent.py b/examples/python/snippets/tools/auth/tools_and_agent.py index 08858f534f..5bafbfe9fe 100644 --- a/examples/python/snippets/tools/auth/tools_and_agent.py +++ b/examples/python/snippets/tools/auth/tools_and_agent.py @@ -33,7 +33,7 @@ auth_type=AuthCredentialTypes.OPEN_ID_CONNECT, oauth2=OAuth2Auth( client_id="CLIENT_ID", - client_secret="CIENT_SECRET", + client_secret="CLIENT_SECRET", ) ) @@ -61,7 +61,7 @@ model='gemini-2.0-flash', name='enterprise_assistant', instruction='Help user integrate with multiple enterprise systems, including retrieving user information which may require authentication.', - tools=userinfo_toolset.get_tools(), + tools=[userinfo_toolset], ) # --- Ready for Use --- From 60bbeabafa7ea855dde9adb048e07359a5765628 Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Thu, 23 Jul 2026 05:50:16 +0500 Subject: [PATCH 3/3] Update tools_and_agent.py --- .../python/snippets/tools/auth/tools_and_agent.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/python/snippets/tools/auth/tools_and_agent.py b/examples/python/snippets/tools/auth/tools_and_agent.py index 5bafbfe9fe..4307b6be2d 100644 --- a/examples/python/snippets/tools/auth/tools_and_agent.py +++ b/examples/python/snippets/tools/auth/tools_and_agent.py @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from google.adk.auth.auth_schemes import OpenIdConnectWithConfig