Skip to content
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

Fix list_agents to return string instead of JSON object #1471

Merged
merged 5 commits into from
Apr 15, 2023

Conversation

gersh
Copy link
Contributor

@gersh gersh commented Apr 15, 2023

Background

list_agents was calling itself and encountering infinite recursion. Now, that has been fixed, but it is still returning a JSON array instead of a string, which I believe is a bug.

Changes

Make list_agents return a string with info on the user agents.

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

nponeccop
nponeccop previously approved these changes Apr 15, 2023
harrymunro
harrymunro previously approved these changes Apr 15, 2023
@gersh gersh dismissed stale reviews from harrymunro and nponeccop via aaa538e April 15, 2023 07:43
@nponeccop
Copy link
Contributor

@gersh There are conflicts now

Stefben46
Stefben46 previously approved these changes Apr 15, 2023
@gersh gersh changed the title Fix list_agents to not call it self. Fix list_agents to return string instead of JSON object Apr 15, 2023
@richbeales richbeales merged commit e0590e0 into Significant-Gravitas:master Apr 15, 2023
@nponeccop nponeccop mentioned this pull request Apr 15, 2023
1 task
sindlinger pushed a commit to Orgsindlinger/Auto-GPT-WebUI that referenced this pull request Sep 25, 2024
Fix list_agents to return string instead of JSON object
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.

5 participants