AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Added default actions functionality

Open CatsMeow492 opened this issue 2 years ago • 19 comments

Fixes #236 Related to #150

Background

This pull request introduces a new functionality to the Agent class, allowing a default number of authorizations to be set for the start_interaction_loop() method. During our work, we also addressed an issue with next_action_count, which was being treated as a string instead of an integer, causing a TypeError when attempting to decrement its value.

Changes

  • Implemented a new default_authorisation_count parameter in the Agent class.
  • Updated the __init__ method of the Agent class to cast next_action_count to an integer.
  • Ensured that default_authorisation_count is also cast to an integer when updating next_action_count.

Documentation

The changes made in this pull request have been documented through in-code comments and this PR message.

Test Plan

  • Run the application with various inputs to ensure the TypeError does not occur anymore.
  • Verify that next_action_count is correctly updated and decremented as intended during the interaction loop.
  • Test the new default_authorisation_count functionality to ensure it works as intended.

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

CatsMeow492 avatar Apr 17 '23 00:04 CatsMeow492

@CatsMeow492 CI is red

nponeccop avatar Apr 17 '23 01:04 nponeccop

@nponeccop CI green :)

CatsMeow492 avatar Apr 17 '23 01:04 CatsMeow492

CI is red

nponeccop avatar Apr 17 '23 09:04 nponeccop

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

github-actions[bot] avatar Apr 18 '23 06:04 github-actions[bot]

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

github-actions[bot] avatar Apr 18 '23 13:04 github-actions[bot]

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

github-actions[bot] avatar Apr 18 '23 20:04 github-actions[bot]

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

github-actions[bot] avatar Apr 19 '23 21:04 github-actions[bot]

༼ つ ◕_ ◕ ༽つ GIVE MERGE ༼ つ ◕_ ◕ ༽つ

CatsMeow492 avatar Apr 19 '23 21:04 CatsMeow492

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

github-actions[bot] avatar Apr 19 '23 23:04 github-actions[bot]

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

github-actions[bot] avatar Apr 20 '23 12:04 github-actions[bot]

༼ つ ◕_ ◕ ༽つ ⊂(◕_ ◕ ⊂) ⊂༼ ◕_ ◕ ༽つ WHERE MERGE?

CatsMeow492 avatar Apr 20 '23 19:04 CatsMeow492

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

github-actions[bot] avatar Apr 22 '23 12:04 github-actions[bot]

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

github-actions[bot] avatar Apr 22 '23 19:04 github-actions[bot]

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

github-actions[bot] avatar Apr 22 '23 23:04 github-actions[bot]

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

github-actions[bot] avatar Apr 24 '23 14:04 github-actions[bot]

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

github-actions[bot] avatar Apr 25 '23 05:04 github-actions[bot]

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

github-actions[bot] avatar Apr 25 '23 15:04 github-actions[bot]

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

github-actions[bot] avatar May 02 '23 00:05 github-actions[bot]

This is a mass message from the AutoGPT core team. Our apologies for the ongoing delay in processing PRs. This is because we are re-architecting the AutoGPT core!

For more details (and for infor on joining our Discord), please refer to: https://github.com/Significant-Gravitas/Auto-GPT/wiki/Architecting

p-i- avatar May 05 '23 00:05 p-i-

This is an interesting but multi-faceted PR, some of which would be better as a plugin and some of which has improperly resolved conflicts such as .env.template. We would be happy to have your contributions, but please submit unrelated changes separately. :)

Pwuts avatar Jun 15 '23 00:06 Pwuts