From 90b9d81fc03ed28a80faf386ec0808fdd1ed8cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czhangning=E2=80=9D?= Date: Mon, 12 Jan 2026 21:12:10 +0800 Subject: [PATCH] chore: update .gitignore and dependency versions, optimize agent configuration - Add .adk directory to .gitignore - Update dependency versions for restaurant_ordering use case - Remove BuiltInPlanner and add model_name environment variable configuration --- .gitignore | 3 +++ 02-use-cases/beginner/restaurant_ordering/agent.py | 9 ++------- .../beginner/restaurant_ordering/requirements.txt | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index e633265..462c113 100644 --- a/.gitignore +++ b/.gitignore @@ -193,3 +193,6 @@ local_build.py docs/package.json docs/package-lock.json docs/node_modules/ + +# ADK +.adk/ \ No newline at end of file diff --git a/02-use-cases/beginner/restaurant_ordering/agent.py b/02-use-cases/beginner/restaurant_ordering/agent.py index d213e87..70d02c3 100644 --- a/02-use-cases/beginner/restaurant_ordering/agent.py +++ b/02-use-cases/beginner/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/02-use-cases/beginner/restaurant_ordering/requirements.txt b/02-use-cases/beginner/restaurant_ordering/requirements.txt index be0bd2d..f02c3cd 100644 --- a/02-use-cases/beginner/restaurant_ordering/requirements.txt +++ b/02-use-cases/beginner/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