AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Fix list_agents to not call it self.

Open gersh opened this issue 1 year ago • 1 comments

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 avatar Apr 15 '23 04:04 gersh

@gersh There are conflicts now

nponeccop avatar Apr 15 '23 13:04 nponeccop