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

Revamp AgentRejectAction and allow ManagerAgent to handle rejection #1735

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

li-boxuan
Copy link
Collaborator

@li-boxuan li-boxuan commented May 12, 2024

#1615 introduced a new action type called AgentRejectAction, but was accidentally removed in #1626, likely due to merge conflict resolution. This PR adds reject action handling back.

This PR also:

  1. Add ManagerAgent to integration testing for existing tests
  2. Refine schema of Reject action
  3. Prompt ManagerAgent to handle rejection from delegated agents
  4. Add a new test that demonstrates rejection action

TODO:

  • Properly check rejection test result

Copy link

codecov bot commented May 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@00c0eda). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1735   +/-   ##
=======================================
  Coverage        ?   58.47%           
=======================================
  Files           ?       99           
  Lines           ?     4058           
  Branches        ?        0           
=======================================
  Hits            ?     2373           
  Misses          ?     1685           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

yufansong
yufansong previously approved these changes May 12, 2024
@yufansong yufansong dismissed their stale review May 12, 2024 08:06

PR still WIP

@li-boxuan li-boxuan changed the title Fix AgentRejectAction handling Revamp AgentRejectAction and allow ManagerAgent to handle rejection May 13, 2024
@li-boxuan
Copy link
Collaborator Author

li-boxuan commented May 18, 2024

Blocked by #1897

li-boxuan added a commit that referenced this pull request May 29, 2024
This PR fixes #1897. In addition, this PR fixes and tweaks a few micro-agents.

For the first time, I am able to use ManagerAgent to complete test_write_simple_script and test_edits tasks in integration tests, so this PR also adds ManagerAgent as part of integration tests. test_write_simple_script involves delegation to CoderAgent while test_edits involves delegation to TypoFixerAgent.

Also for the first time, I am able to use DelegateAgent to complete test_write_simple_script and test_edits tasks in integration tests, so this PR also adds DelegateAgent as part of integration tests. It involves delegation to StudyRepoForTaskAgent, CoderAgent and VerifierAgent.

This PR is a blocker for #1735 and likely #1945.
@neubig
Copy link
Contributor

neubig commented May 31, 2024

Hi @li-boxuan , I'm just going through the backlog, you're still working on and interested in this right? It seems that #1910 was a step in the right direction.

@li-boxuan
Copy link
Collaborator Author

@neubig Yep I am working on it. Was busy with some benchmark work earlier but I am back on track with this now.

@li-boxuan
Copy link
Collaborator Author

Have to put this on hold again. Need to focus on wrapping up evaluations and paper.

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.

None yet

3 participants