From 21cad62d06a91a33e11ca00a53866ff721a6ce71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czhangning=E2=80=9D?= Date: Tue, 13 Jan 2026 17:29:19 +0800 Subject: [PATCH] chore: dependency versions, optimize agent configuration - Update dependency versions for restaurant_ordering use case - Remove BuiltInPlanner and add model_name environment variable configuration --- python/02-use-cases/08_restaurant_ordering/agent.py | 9 ++------- .../02-use-cases/08_restaurant_ordering/requirements.txt | 6 +++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/python/02-use-cases/08_restaurant_ordering/agent.py b/python/02-use-cases/08_restaurant_ordering/agent.py index d213e87..70d02c3 100644 --- a/python/02-use-cases/08_restaurant_ordering/agent.py +++ b/python/02-use-cases/08_restaurant_ordering/agent.py @@ -11,7 +11,7 @@ # 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 import logging # Deploy the agent as AgentkitAgentServerApp into the agentkit platform @@ -21,7 +21,6 @@ from google.adk.apps import App from google.adk.apps.app import EventsCompactionConfig from google.adk.models.llm_request import LlmRequest -from google.adk.planners.built_in_planner import BuiltInPlanner from google.adk.plugins.base_plugin import BasePlugin from google.adk.plugins.context_filter_plugin import ContextFilterPlugin from google.adk.plugins.save_files_as_artifacts_plugin import ( @@ -83,6 +82,7 @@ async def summarize_order(tool_context: ToolContext = None) -> str: order_agent = Agent( name="restaurant_ordering_agent", + model_name=os.getenv("MODEL_AGENT_NAME", "deepseek-v3-2-251201"), description=("An agent that takes customer orders at a restaurant."), instruction=f""" You are a friendly and efficient order-taking assistant for a restaurant. @@ -99,11 +99,6 @@ async def summarize_order(tool_context: ToolContext = None) -> str: **Rules:** - Do NOT provide recipes or cooking instructions. """, - planner=BuiltInPlanner( - thinking_config=types.ThinkingConfig( - include_thoughts=True, - ), - ), generate_content_config=types.GenerateContentConfig( safety_settings=[ types.SafetySetting( diff --git a/python/02-use-cases/08_restaurant_ordering/requirements.txt b/python/02-use-cases/08_restaurant_ordering/requirements.txt index be0bd2d..f02c3cd 100644 --- a/python/02-use-cases/08_restaurant_ordering/requirements.txt +++ b/python/02-use-cases/08_restaurant_ordering/requirements.txt @@ -1,3 +1,3 @@ -veadk-python==0.2.29 -agentkit-sdk-python==0.1.15 -google-adk==1.18.0 \ No newline at end of file +veadk-python==0.5.4 +agentkit-sdk-python==0.3.3 +google-adk==1.21.0 \ No newline at end of file