Skip to content

Commit fe1fc75

Browse files
GWealecopybara-github
authored andcommitted
chore: Improve hint message in agent loader
PiperOrigin-RevId: 822216833
1 parent dc4975d commit fe1fc75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/google/adk/cli/utils/agent_loader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ def _perform_load(self, agent_name: str) -> Union[BaseAgent, App]:
241241
or agents_path.joinpath("root_agent.yaml").is_file()
242242
):
243243
hint = (
244-
"\n\nHINT: It looks like you might be running 'adk web' from inside"
245-
" an agent directory. Try running 'adk web .' from the parent"
246-
" directory that contains your agent folder, not from within the"
247-
" agent folder itself."
244+
"\n\nHINT: It looks like this command might be running from inside an"
245+
" agent directory. Run it from the parent directory that contains"
246+
" your agent folder (for example the project root) so the loader can"
247+
" locate your agents."
248248
)
249249

250250
raise ValueError(

0 commit comments

Comments
 (0)