AutoGPT
AutoGPT copied to clipboard
Fix list_agents to not call it self.
Background
list_agents is calling itself and encountering infinite recursion.
Changes
Make list_agents return a list of the agents manager.
Documentation
Test Plan
I added a unit test to test that list_agents works.
PR Quality Checklist
- [x ] My pull request is atomic and focuses on a single change.
- [x ] I have thoroughly tested my changes with multiple different prompts.
- [x ] I have considered potential risks and mitigations for my changes.
- [x ] I have documented my changes clearly and comprehensively.
- [x ] I have not snuck in any "extra" small tweaks changes
@gersh There are conflicts now