You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
I'm running a task with multiple agents using a moderated turn strategy. Some models get stuck in a loop, repeatedly making the same LLM call. More often, they keep making tool calls instead of ending their turn when they need more information.
I'd like to set a per-turn limit on LLM calls for each agent. Once this threshold is reached, the agent should end its turn and pass control back to the moderator agent.
I've tried max_llm_calls and max_agent_turns, but these stop the entire run rather than just enforcing a per-turn limit. Is there a built-in way to handle this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running a task with multiple agents using a moderated turn strategy. Some models get stuck in a loop, repeatedly making the same LLM call. More often, they keep making tool calls instead of ending their turn when they need more information.
I'd like to set a per-turn limit on LLM calls for each agent. Once this threshold is reached, the agent should end its turn and pass control back to the moderator agent.
I've tried max_llm_calls and max_agent_turns, but these stop the entire run rather than just enforcing a per-turn limit. Is there a built-in way to handle this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions