Skip to content

Commit 493e59c

Browse files
committed
feat: add .yml file extension support for agent file watcher
Add .yml extension to the watched file extensions in AgentChangeEventHandler.on_modified() alongside .py and .yaml files. Fixes #3834
1 parent 143ad44 commit 493e59c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
self.current_app_name_ref = current_app_name_ref
3939

4040
def on_modified(self, event):
41-
if not (event.src_path.endswith(".py") or event.src_path.endswith(".yaml")):
41+
if not event.src_path.endswith((".py", ".yaml", ".yml")):
4242
return
4343
logger.info("Change detected in agents directory: %s", event.src_path)
4444
self.agent_loader.remove_agent_from_cache(self.current_app_name_ref.value)

0 commit comments

Comments
 (0)