-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Termination Conditions within Agents #4307
Comments
Can you give an example of how/why the agent gets stuck in a loop? Is it when the LLM's response always contains a Would it be useful to have conditions such as "max_tool_calls"? i.e. we want the agent to use the tool once and only once. |
An agent can request for the conversation to be terminated by emitting a We could explore creating and/or conditions to nest conditions but given the ease of creating a new one and the slim logic of the conditions themselves I feel like this is overkill at the moment. |
The agent should give up control when it encounters issues like too many tool calls. In that case it should yield the control back to the team, either via a Then, from the team's orchestrator, e.g., the group chat manager, it makes a decision what to do with this message. A reasonable choice is to yield the control back to the application/user. This allows the application/user to have better control over individual agents' behavior, not just the team's. This logic of deciding to yield control back to the application/user should exist in the team's orchestrator. Currently this can be done via the agent returning a |
To fix the problem with Though I do think there is a separate issue of adding a notion of "resuming" an agent, and it is worth having. Could be just adding a |
What feature would you like to be added?
Add Termination Conditions to the Agent's themselves, rather than the team manager. This would enable you to terminate the tool calling of an agent when a certain condition is met.
Why is this needed?
As observed, sometimes Agent's can get stuck in a loop where it is constantly tool calling and never exits back to the team manager. This scenario would prevent this.
The text was updated successfully, but these errors were encountered: