AutoGPT
AutoGPT copied to clipboard
Fix call to `plugin.post_planning`
Background
Expected 1 positional argument
Pylance: reportGeneralTypeIssues
Signature
(method) def post_planning(
self: Self@AutoGPTPluginTemplate,
response: str
) -> str
Changes
Before
plugin.post_planning(self, assistant_reply_json)
# equivalent to
type(plugin).post_planning(plugin, self, assistant_reply_json)`
# types: AutoGPTPluginTemplate, Agent, str
After
plugin.post_planning(assistant_reply_json)
# equivalent to
type(plugin).post_planning(plugin, assistant_reply_json)
# types: AutoGPTPluginTemplate, str
Documentation
Test Plan
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 4, 2023 2:40am |
Codecov Report
Patch and project coverage have no change.
Comparison is base (
a48f26c) 60.96% compared to head (c899ac2) 60.96%.
Additional details and impacted files
@@ Coverage Diff @@
## master #3414 +/- ##
=======================================
Coverage 60.96% 60.96%
=======================================
Files 72 72
Lines 3302 3302
Branches 542 542
=======================================
Hits 2013 2013
Misses 1151 1151
Partials 138 138
| Impacted Files | Coverage Δ | |
|---|---|---|
| autogpt/agent/agent.py | 48.63% <0.00%> (ø) |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Please fill out the description of the PR
this looks like a simple fix for a legit bug