Loading...
Loading...
Compare original and translation side by side
/adk-cheatsheet/adk-eval-guide/adk-deploy-guide/adk-scaffold/adk-cheatsheet/adk-eval-guide/adk-deploy-guide/adk-scaffoldDESIGN_SPEC.mdDESIGN_SPEC.mdDESIGN_SPEC.mdDESIGN_SPEC.mdmake playgroundadk web ./adk-cheatsheetmake playgroundadk web ./adk-cheatsheet/adk-eval-guidepytestadk evaladk evalmake eval/adk-eval-guidepytestadk evaladk evalmake eval/adk-deploy-guide/adk-deploy-guidemodelversionapi_keyroot_agent = Agent(
name="recipe_suggester",
model="gemini-1.5-flash", # UNINTENDED - model was not requested to change
instruction="You are a recipe suggester."
)root_agent = Agent(
name="recipe_suggester", # OK, related to new purpose
model="gemini-3-flash-preview", # PRESERVED
instruction="You are a recipe suggester." # OK, the direct target
)modelversionapi_keyroot_agent = Agent(
name="recipe_suggester",
model="gemini-1.5-flash", # 非预期修改——未要求更改模型
instruction="You are a recipe suggester."
)root_agent = Agent(
name="recipe_suggester", # 符合要求,与新用途相关
model="gemini-3-flash-preview", # 已保留
instruction="You are a recipe suggester." # 符合要求,直接修改目标
)gemini-3-flash-previewgemini-3-flash-previewgemini-3-flash-previewgemini-3-pro-previewgemini-2.0-flashgemini-1.5-flashGOOGLE_CLOUD_LOCATIONglobalus-central1gemini-3-flash-preview# CORRECT - imports the tool instance
from google.adk.tools.load_web_page import load_web_page
# WRONG - imports the module, not the tool
from google.adk.tools import load_web_pagetools=[load_web_page]tools=[load_web_page.load_web_page]uvuv run python script.pymake installuv syncMakefileREADME.mdterraform importterraform/adk-cheatsheetpython -c "import google.adk; print(google.adk.__path__[0])"uv run pythonreferences/docs-index.mdgemini-3-flash-previewgemini-3-flash-previewgemini-3-pro-previewgemini-2.0-flashgemini-1.5-flashGOOGLE_CLOUD_LOCATIONglobalus-central1gemini-3-flash-preview# 正确——导入工具实例
from google.adk.tools.load_web_page import load_web_page
# 错误——导入的是模块而非工具
from google.adk.tools import load_web_pagetools=[load_web_page]tools=[load_web_page.load_web_page]uvuv run python script.pymake installuv syncREADME.mdterraform importterraform/adk-cheatsheetpython -c "import google.adk; print(google.adk.__path__[0])"uv run pythonreferences/docs-index.md/adk-scaffold/tmp//adk-scaffold/adk-scaffold/tmp//adk-scaffold/adk-scaffold| Make (scaffolded) | ADK CLI equivalent | Purpose |
|---|---|---|
| | Interactive local testing |
| | Run unit and integration tests |
| | Run evaluation against evalsets |
| | Check code quality |
| — (scaffolded only) | Set up dev infrastructure (Terraform) |
| — (scaffolded only) | Deploy to dev (requires human approval) |
/adk-scaffold| Make(脚手架项目) | ADK CLI等效命令 | 用途 |
|---|---|---|
| | 交互式本地测试 |
| | 运行单元与集成测试 |
| | 针对评估集运行评估 |
| | 检查代码质量 |
| —(仅脚手架项目可用) | 搭建开发基础设施(Terraform) |
| —(仅脚手架项目可用) | 部署到开发环境(需人工批准) |
Troubleshooting hint: If you encounter repeated errors, unexpected tool failures, or instructions in these skills that seem incomplete or reference features you can't find, the skills may be outdated. Run:npx skills check -gIf it reports outdated skills, tell the user to update:npx skills update -gDo NOT run this check on every session — only when you suspect stale skills are causing problems.
故障排查提示:如果你遇到重复错误、工具意外失败,或者这些技能中的说明不完整、引用了你找不到的功能,可能是技能已过时。请运行:npx skills check -g如果报告技能已过时,请告知用户进行更新:npx skills update -g不要在每个会话都运行此检查——仅当你怀疑过时技能导致问题时才执行。