Commit 32500f4
committed
Add disallowTransferToParent check to parent agent transfer condition
Only allow transfer to parent agent when both conditions are met:
- Parent agent exists (agent.parentAgent() != null)
- Transfer to parent is allowed (!agent.disallowTransferToParent())
This prevents unwanted transfers to parent agents when explicitly disabled.
Aligns Java implementation with Python version for consistency.1 parent 9e3723b commit 32500f4
File tree
1 file changed
+1
-1
lines changed- core/src/main/java/com/google/adk/flows/llmflows
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments