Skip to content

Commit db975df

Browse files
wuliang229copybara-github
authored andcommitted
chore: prevent triggering of _load_from_yaml_config in AgentLoader
PiperOrigin-RevId: 789502695
1 parent 0ccbf6f commit db975df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ def _perform_load(self, agent_name: str) -> BaseAgent:
178178
if root_agent := self._load_from_submodule(agent_name):
179179
return root_agent
180180

181-
if root_agent := self._load_from_yaml_config(agent_name):
181+
if os.getenv("ADK_ALLOW_WIP_FEATURES") and (
182+
root_agent := self._load_from_yaml_config(agent_name)
183+
):
182184
return root_agent
183185

184186
# If no root_agent was found by any pattern

0 commit comments

Comments
 (0)