agents-cli
agents-cli copied to clipboard
Update adk-samples references and python/agents discovery paths for google/adk-recipes restructure
Description
Following the rename and restructure of https://github.com/google/adk-samples to https://github.com/google/adk-recipes (where Python agents moved from python/agents/* to core/python/* and contrib/python/*, plus plugins/*), google-agents-cli (v1.10.0) has broken template discovery paths in scaffold as well as stale adk-samples references across bundled skills.
Steps to Reproduce
- Run
agents-cli create my-agentinteractively and choose option2. google/adk-samples (Browse community agents), OR runagents-cli create my-agent --agent adk@deep-search. - Inspect
skills/google-agents-cli-adk-code/references/samples.mdandadk-python.md.
Expected vs. Actual Behavior
- Expected:
discover_adk_agents()andparse_agent_spec()insrc/google/agents/cli/scaffold/utils/remote_template.pyshould recognizegoogle/adk-recipes(alongsidegoogle/adk-samplesfor backwards compatibility) and resolvecore/python/*andcontrib/python/*directories instead of the removedpython/agents/*path.- Bundled skills should reference
https://github.com/google/adk-recipes(/tmp/adk-recipes) and document thecore/,contrib/, andplugins/tiers.
- Actual:
discover_adk_agents()(remote_template.py:633) checksrepo_path / "python" / "agents", which no longer exists after thegoogle/adk-recipesredirect, resulting inNo agents found in adk-samples repository.parse_agent_spec()(remote_template.py:76-83, 117, 136) hardcodestemplate_path=f"python/agents/{sample_name}"andrepo == "adk-samples".- Skill files still reference
https://github.com/google/adk-samples:skills/google-agents-cli-adk-code/references/samples.md(lines 3, 16–18, 45, 99)skills/google-agents-cli-adk-code/references/adk-python.md(lines 415, 615, 981)skills/google-agents-cli-deploy/SKILL.md(line 182)skills/google-agents-cli-deploy/references/agent-runtime.md(line 153)src/google/agents/cli/data/_recipe.py(line 26)
Environment
agents-cliversion:1.10.0
Thanks for flagging this. The functionality should be fixed by today's 1.11.0 release. The skills work as-is since there's a redirect, but they'll be cleaned up in the future.
Fixed in v1.12.0