Commit Graph

2312 Commits

Author SHA1 Message Date
Reinier van der Leer
092afbce62 Complete context integration & add close_context_item command 2023-08-23 01:01:52 +02:00
Reinier van der Leer
b0405ac8ee Add Context segment to prompt 2023-08-23 00:59:17 +02:00
Reinier van der Leer
380e92596e Merge branch 'master' into file-context 2023-08-22 23:42:20 +02:00
Reinier van der Leer
2d400ed167 Fix "user-friendly" logging 2023-08-22 23:41:52 +02:00
Reinier van der Leer
2a8cc4816e Enable open_file and open_folder 2023-08-22 23:31:16 +02:00
Reinier van der Leer
cef5e6535e Minor refactor in PromptGenerator to fix trailing list items 2023-08-22 23:18:11 +02:00
Reinier van der Leer
f4658cfff3 Merge branch 'master' into file-context 2023-08-22 23:04:02 +02:00
Reinier van der Leer
eb5976d56b Clean up logging output 2023-08-22 23:02:28 +02:00
Reinier van der Leer
2520ec6e08 Generate system prompt based on agent state
* Rename PromptConfig to AIDirectives

* Make PromptGenerator primarily responsible for generating prompt instead of AIConfig

* Refactor PromptGenerator

* Add `available` attribute to `Command` class, to determine availability based on `Agent` state
2023-08-22 22:57:41 +02:00
Reinier van der Leer
4e64519a26 Migrate to mixins for Context and Workspace features 2023-08-22 22:52:26 +02:00
Reinier van der Leer
26d9f46da4 Merge branch 'master' into file-context 2023-08-22 07:31:21 +02:00
Reinier van der Leer
4e761b49f3 Clean up logging 2023-08-22 07:29:56 +02:00
Reinier van der Leer
cadc8c5b61 WIP: add file context functionality 2023-08-19 23:42:54 +02:00
Reinier van der Leer
3fe2246468 Agent loop v2: Prompting improvements & WIP planning (#5077)
* Add categories to command registry

* Fix tests

* Clean up prompt generation

* Rename Performance Evaluations to Best Practices
* Move specification of response format from system prompt to Agent.construct_base_prompt
* Clean up PromptGenerator class

* Add debug logging to AIConfig autogeneration

* Clarify prompting and add support for multiple thought processes to Agent

* WIP: PlanningAgent

* Disable message history by default on BaseAgent

* Add CommandOutput and ThoughtProcessOutput type aliases

* Fix interrupts in main.py

* Use custom exceptions and clean up exception/error handling

* Remove duplicate agent_history.py

* Update PlanningAgent from upstream

* WIP: Support for dynamic in-prompt context

* WIP: response formats for PlanningAgent three-stage cycle

* Remove browsing overlay & separate browsing from extraction code

* Fix human feedback

* Fix tests

* Include history in Agent prompt generation

* Code improvements in agent.py

* Add ask_user command and revise system prompt
2023-08-19 17:44:50 +02:00
Nicholas Tindle
4dd75ca083 Add Citation.cff (#5130) 2023-08-17 21:03:11 -05:00
Luke
bed480925a Sync release into master (#5118) 2023-08-17 10:37:26 -04:00
Luke
f26ccda097 Bulleting update & version bump (#5112)
* Bulleting update & version bump

* Bulletin.md updates

* Format bulletin

* Added info about new documentation theme.

---------

Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
2023-08-11 14:44:27 +02:00
Luke
3a2d08fb41 Pass TestSearch benchmark consistently (Add browse_website TOKENS_TO_TRIGGER_SUMMARY) (#5092)
* Added SUMMARIZATION_TRIGGER_LENGTH
browse_website won't summarize content that's shorter
than SUMMARIZATION_TRIGGER_LENGTH.
It defaults to 250 characters, which is approximately 50 tokens.

* Refactor BrowserOptions

* Use tokens instead of length
to trigger summarization

* Bugfix

* fix: Always return links even if not summarizing
feat: Increase the number of links returned from 5 to 20

---------

Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
Co-authored-by: James Collins <collijk@uw.edu>
2023-08-01 11:48:13 -07:00
James Collins
a593c32727 Move more app files to app package (#5036)
Co-authored-by: Nicholas Tindle <nick@ntindle.com>
2023-08-01 13:48:20 -04:00
Luke
7cd407b7b4 Use modern material theme for docs (#5035)
* Use modern material theme for docs

* Update mkdocs.yml

Added search plugin

Co-authored-by: James Collins <collijk@uw.edu>

* Updating mkdocs material theme config per recommendations to enable all markdown options

* Updated highlight extension settings
and codeblocks throughout the docs to align with mkdocs-material recommendations.

codehilite is deprecated in favor of the highlight extension:
https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#highlight

---------

Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
Co-authored-by: James Collins <collijk@uw.edu>
Co-authored-by: Nicholas Tindle <nick@ntindle.com>
2023-08-01 10:17:33 -07:00
merwanehamadi
fc6255296a Add information on how to improve Auto-GPT with agbenchmark (#5056)
* Add information on how to improve Auto-GPT with agbenchmark

* Update introduction.md

* Update docs/challenges/introduction.md

Co-authored-by: Reinier van der Leer <reinier.vanderleer@agpt.co>

* Update introduction.md

---------

Co-authored-by: James Collins <collijk@uw.edu>
Co-authored-by: Reinier van der Leer <reinier.vanderleer@agpt.co>
2023-08-01 09:13:37 -07:00
Cyrus
c8914ebb66 slips of the pen (bloopers) in autogpt/core part of the repo (#5045)
* fix omitted "()" in __str__(self) in core/ability/base.py

* put back async keyword in the base class

* Remove extra () in OpenAISettings class in
autogpt/core/resourece/model_providers/openai.py

---------

Co-authored-by: James Collins <collijk@uw.edu>
Co-authored-by: Nicholas Tindle <nick@ntindle.com>
2023-08-01 08:39:19 -07:00
Luke
ad18f77e25 fix: Nonetype error from command_name.startswith() (#5079)
Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
Co-authored-by: James Collins <collijk@uw.edu>
2023-08-01 01:47:32 -04:00
Reinier van der Leer
3651d22147 Verify model compatibility if OPENAI_FUNCTIONS is set (#5075)
Co-authored-by: Luke <2609441+lc0rp@users.noreply.github.com>
2023-07-31 11:43:41 -04:00
Reinier van der Leer
b7f1df3e1d Fix execute_shell_popen 2023-07-31 01:21:09 +02:00
Auto-GPT-Bot
f528b9a995 Update cassette submodule 2023-07-30 18:55:25 +00:00
Luke
c1567c22f5 Do not load disabled commands (faster exec & benchmark runs) (#5078)
* Use modern material theme for docs

* Do not load disabled commands

* black .

---------

Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
2023-07-30 20:51:50 +02:00
Reinier van der Leer
c9bf2ee48d Add categories to command registry (#5063)
* Add categories to command registry

* Fix tests
2023-07-29 13:38:25 -07:00
Auto-GPT-Bot
2dcaa07470 Update cassette submodule 2023-07-29 17:59:06 +00:00
merwanehamadi
45c9566298 Remove append to file (#5051)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-07-29 10:55:19 -07:00
Auto-GPT-Bot
cdafee02fc Update cassette submodule 2023-07-29 17:10:41 +00:00
Reinier van der Leer
2eb346e06e Improve prompting and prompt generation infrastructure (#5076)
* Clean up prompt generation

* Rename Performance Evaluations to Best Practices
* Move specification of response format from system prompt to Agent.construct_base_prompt
* Clean up PromptGenerator class

* Add debug logging to AIConfig autogeneration

* Clarify prompting and add support for multiple thought processes to Agent
2023-07-29 10:06:47 -07:00
Luke
c8d9b69ee2 Sync release v0.4.6 with patches back into master (#5065) 2023-07-28 14:43:21 +02:00
Reinier van der Leer
f87b01620d Merge branch 'master' into release-v0.4.6-sync-to-master 2023-07-27 01:01:42 +02:00
Reinier van der Leer
ce86a5e697 Fix workspace crash 2023-07-27 00:28:55 +02:00
Reinier van der Leer
1607b74126 Merge branch 'stable' into release-v0.4.6 2023-07-26 23:39:31 +02:00
Reinier van der Leer
7dffd1a4b7 Update bulletin and version numbers 2023-07-26 23:36:56 +02:00
Reinier van der Leer
ddb7efa593 Move misplaced log_cycle statements 2023-07-25 18:08:50 +02:00
Auto-GPT-Bot
a56dc479e5 Update cassette submodule 2023-07-24 17:56:56 +00:00
Swifty
c148140d75 Remove delete file (#5050) 2023-07-24 19:51:23 +02:00
Luke
71e7424baf Workdir path fixes and docs updates (#5042)
* Use modern material theme for docs

* Further file path fixes, and doc updates to specify when relative paths are expected

* fix: lint

* Remove unwated changes

* Remove comments

---------

Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
Co-authored-by: Reinier van der Leer <reinier.vanderleer@agpt.co>
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-07-24 19:34:52 +02:00
Merwane Hamadi
b6d9c3ab03 Remove delete file
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-07-24 10:15:25 -07:00
Swifty
bf8f586984 Change workspace location (#5048) 2023-07-24 18:43:54 +02:00
Merwane Hamadi
d1e5ab04a8 Change workspace location 2023-07-24 09:15:31 -07:00
Tomas Valenta
abed282db3 Fix runtime error in the API (#5047)
* Add API via agent-protocol

* Fix linter formatting errors

* Fix API runtime errors; Improve API initialization

* Fix formatting linter erorrs
2023-07-24 08:34:24 -07:00
merwanehamadi
60d0f5edac Fix workspace crashing (#5041)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-07-23 21:28:12 -07:00
Tomas Valenta
7b4cd8c86a Add API via agent-protocol SDK (#5044)
* Add API via agent-protocol

* Fix linter formatting errors
2023-07-23 20:57:47 -07:00
merwanehamadi
4ada7d1784 Integrate Auto-GPT with Auto-GPT-Benchmarks (#4987)
* WIP

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>

* WIP

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>

* Update config for benchmark changes (#4883)

* Add Helicone

* Add reports, consolidate, update benchmark files (#4941)

* updating config

* add reports, consolidate, update benchmark files

* Update benchmarks.py

* Change entrypath and add __init__.py

* Remove Helicone integration because we now have proxy at the system level

* Support more regression tests

* Fix Auto-GPT/benchmark integration

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>

* Remove cutoff

* Install agbenchmark and make continuous mode dynamic

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>

---------

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
Co-authored-by: Silen Naihin <silen.naihin@gmail.com>
2023-07-22 14:58:46 -07:00
NeonN3mesis
e0bcde178e Update memory.md with more warnings about memory being disabled (#5008)
Co-authored-by: Luke <2609441+lc0rp@users.noreply.github.com>
2023-07-22 02:37:36 -04:00
eyalk11
295473551f Gracefully handle plugin loading failure (#4994)
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-07-22 01:42:41 -04:00