from google.adk.agents import Agent from google.adk.runners import InMemoryRunner from google.adk.tools import google_search from google.genai import types
# 定義Agent名稱,模型與該用什麼工具做什麼 root_agent = Agent( name="helpful_assistant", model="gemini-2.5-flash-lite", description="A simple agent that can answer general questions.", instruction="You are a helpful assistant. Use Google Search for current info or if unsure.", tools=[google_search], )