Skip to content

ValueError: {agent} not found in agent tree. #2164

@adt5-uiuc

Description

@adt5-uiuc

Describe the solution you'd like
I'm trying to make my agents create other agents. I'm working around the workflow to that purpose, but sometimes they try to address other agents before they're created and I get a ValueError exception, because the agent is not in the tree yet.

Since this is code that is run deep within ADK, how I can catch those exceptions and handle them?

Additional context
OS: Mac OS 15.4.1
Python version(python -V): 1.13.2
ADK version(pip show google-adk): 1.6.1

Metadata

Metadata

Labels

core[Component] This issue is related to the core interface and implementation

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions