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

Agent loop v2: Planning & Task Management (part 2) #5077

Merged
merged 31 commits into from
Aug 19, 2023
Merged

Conversation

Pwuts
Copy link
Member

@Pwuts Pwuts commented Jul 29, 2023

Background

The so-called agent loop of Auto-GPT currently lacks structural planning and task management. This impedes its long-term performance and also hampers the implementation of retrieval augmentation (see #3536).

Changes & other to-do's

Part 1 - Refactoring (#4799):

  • Rename module agent -> agents
  • Check out LangChain's "Plan and execute" tools (docs, code)
  • Refactor Agent into BaseAgent and Agent with sensible structure

Part 2 - Planning & Task Management (#5077):

  • Add planner agent (WIP)
  • Add executor agent (potential solution: specialize existing Agent implenmentation into an executor agent)
  • Evaluate & tweak

Parts / building blocks

The scope and diff of this PR can be magically reduced by merging the PRs below:

@netlify
Copy link

netlify bot commented Jul 29, 2023

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit fb8205e
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/64e0d85ebffde9000809fea1

@Auto-GPT-Bot
Copy link
Contributor

You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged.

@Pwuts Pwuts added this to the v0.4.7 Release milestone Jul 29, 2023
@codecov
Copy link

codecov bot commented Jul 29, 2023

Codecov Report

Patch coverage: 41.61% and project coverage change: -0.77% ⚠️

Comparison is base (4dd75ca) 51.93% compared to head (fb8205e) 51.16%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5077      +/-   ##
==========================================
- Coverage   51.93%   51.16%   -0.77%     
==========================================
  Files         117      122       +5     
  Lines        4987     5302     +315     
  Branches      671      724      +53     
==========================================
+ Hits         2590     2713     +123     
- Misses       2199     2387     +188     
- Partials      198      202       +4     
Files Changed Coverage Δ
autogpt/agents/planning_agent.py 0.00% <0.00%> (ø)
autogpt/commands/__init__.py 100.00% <ø> (ø)
autogpt/prompts/generator.py 95.45% <ø> (ø)
autogpt/commands/web_selenium.py 55.46% <27.27%> (-0.19%) ⬇️
autogpt/agents/agent.py 47.97% <35.93%> (-2.03%) ⬇️
autogpt/app/main.py 41.99% <36.00%> (-1.45%) ⬇️
autogpt/agents/base.py 72.38% <50.00%> (+0.63%) ⬆️
autogpt/commands/execute_code.py 75.92% <55.55%> (+1.61%) ⬆️
autogpt/models/agent_actions.py 65.15% <65.15%> (ø)
autogpt/models/context_item.py 74.50% <74.50%> (ø)
... and 8 more

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

@github-actions github-actions bot added size/xl and removed size/l labels Jul 29, 2023
@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@Auto-GPT-Bot
Copy link
Contributor

You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions github-actions bot added size/l and removed size/xl labels Jul 30, 2023
@github-actions
Copy link
Contributor

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@lc0rp lc0rp modified the milestones: v0.4.7 Release, v0.4.8 Aug 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Aug 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@Pwuts Pwuts marked this pull request as ready for review August 19, 2023 14:59
@Pwuts
Copy link
Member Author

Pwuts commented Aug 19, 2023

This has been tested to considerably improve the performance of Auto-GPT on the benchmark, and it contains a number of building blocks for further improvements.

@Auto-GPT-Bot
Copy link
Contributor

You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged.

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

Successfully merging this pull request may close these issues.

3 participants