Replies: 1 comment
-
|
To cap the number of iterations in a LoopAgent you should set the max_turns parameter directly when instantiating your LoopAgent. For example: loop_agent = LoopAgent( This will limit the number of turns (iterations) the LoopAgent performs. Regarding propagation to sub-agents: max_turns controls the outer loop (the LoopAgent itself) and does not automatically propagate a max_turns limit to sub-agents. Hope that helps |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a multi-agent pipeline with LoopAgent and want to cap the
number of iterations. What's the correct way to set max_turns and does it
propagate to sub-agents?
Using ADK Python 0.4.0, Vertex AI backend.
Beta Was this translation helpful? Give feedback.
All reactions