Skip to content

Conversation

@sultanfariz
Copy link

What
Added skip_summarization=True to the exit_loop tool in the LoopAgent documentation example.

Why
Without skip_summarization=True, the exit_loop tool causes an infinite loop because the agent tries to summarize the tool call result before escalating. This creates a cycle where the loop never actually exits.
This fix ensures the loop terminates immediately when exit_loop is called, which is the expected behavior for breaking out of a LoopAgent iteration.

Related Issue
Fixes infinite loop issue #2988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant