Issue running the tutorial agent-team
- Dominant language
- Shell
- Stars
- 1.5k
- Forks
- 1.3k
- Avg merge
- 7d 1h
- Merged PRs (30d)
- 34
Description
You probably got bigger fish to fry, but I wanted to bring this to your attention. Potentially, there are others struggling with getting started.
I think it is just about the setup of the tutorial. I think more detailed instructions would go a long way. I'd suggest a fix, but am stuck, sorry.
There are two lines that appear to cause issues with the intro. This line appears to not do anything and causes an error:
https://github.com/google/adk-docs/blob/39fc5c52c049b8f9623447ea3dbfa98fc7ec856e/docs/tutorials/agent-team.md?plain=1#299
To the main issue:
https://github.com/google/adk-docs/blob/39fc5c52c049b8f9623447ea3dbfa98fc7ec856e/docs/tutorials/agent-team.md?plain=1#L404
I set up the agent-team in a subdirectory:
```
agent-project/
|____ agent_team/
| | __ __init__.py
| | __ .env
| | __ agent.py # this is where I put the code from the tutorial
|__ venv
```
I wanted to run the code in one single `agent.py` file. I set VSCode up to take the `agent-project/` as the root directory (i.e. where the `venv/` is). I uncommented the lines, run the program and get:
```
An error occurred: Session not found: session_001. The runner is configured with app name "weather_tutorial_app", but the root agent was loaded from "/~/my-name/VisualStudioProjects/agent-project/venv/lib/python3.13/site-packages/google/adk/agents", which implies app name "agents". Ensure the runner app_name matches that directory or pass app_name explicitly when constructing the runner. The mismatch prevents the runner from locating the session.
```
Sorry for not providing a fix. Have you got any idea how to remedy it? If so, I'd love for you to point me in the right direction, then I'll be happy to suggest a fix.
I absolutely love what you've built! Thank you.
Contributor guide
Assessment
This issue has not been assessed yet.