maxSteps in agent network
Is there are a way of increasing the number of
maxSteps for the subagents of an agent network? I've set maxSteps in defaultGenerateOptions and defaultStreamOptions for all the agents in the network, and also in the request:
but this only works for the supervisor of the network (scenarioCoordinatorAgent in my implementation), and subagents stop abruptly after exceeing default value for maxSteps (5)
I am not sure if this is a bug or that I can't find the right way of setting this up. Sorry if this landed in the wrong channel!4 Replies
š Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10866
š If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly.
š Thank you for helping us improve Mastra!
Found a workaround by using legacy
defaultVNextOptions
I am on this version:
Hi Bernardo that is the solution in 0.x versions. In 1.0 we have it properly in default options
But yes in a network, max steps applies to the routing agent!
Understood! thanks for the reply š